diff --git a/Cargo.lock b/Cargo.lock index cc13b1d..9c411c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "althea_proto" -version = "0.8.0" +version = "0.9.0" dependencies = [ "cosmos-sdk-proto-althea", "prost", @@ -36,6 +36,55 @@ dependencies = [ "tonic", ] +[[package]] +name = "anstream" +version = "0.6.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" + +[[package]] +name = "anstyle-parse" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +dependencies = [ + "windows-sys 0.52.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +dependencies = [ + "anstyle", + "windows-sys 0.52.0", +] + [[package]] name = "anyhow" version = "1.0.89" @@ -75,6 +124,12 @@ dependencies = [ "syn", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "autocfg" version = "1.4.0" @@ -83,18 +138,17 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "axum" -version = "0.6.20" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" +checksum = "504e3947307ac8326a5437504c517c4b56716c9d98fac0028c2acc7ca47d70ae" dependencies = [ "async-trait", "axum-core", - "bitflags 1.3.2", "bytes", "futures-util", "http", "http-body", - "hyper", + "http-body-util", "itoa", "matchit", "memchr", @@ -103,25 +157,28 @@ dependencies = [ "pin-project-lite", "rustversion", "serde", - "sync_wrapper", - "tower", + "sync_wrapper 1.0.1", + "tower 0.5.1", "tower-layer", "tower-service", ] [[package]] name = "axum-core" -version = "0.3.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" +checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" dependencies = [ "async-trait", "bytes", "futures-util", "http", "http-body", + "http-body-util", "mime", + "pin-project-lite", "rustversion", + "sync_wrapper 1.0.1", "tower-layer", "tower-service", ] @@ -143,15 +200,9 @@ dependencies = [ [[package]] name = "base64" -version = "0.21.7" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitflags" @@ -171,15 +222,39 @@ version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +[[package]] +name = "cc" +version = "1.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938" +dependencies = [ + "shlex", +] + [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cmake" +version = "0.1.51" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" +dependencies = [ + "cc", +] + +[[package]] +name = "colorchoice" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" + [[package]] name = "cosmos-sdk-proto-althea" -version = "0.17.0" +version = "0.18.0" dependencies = [ "prost", "prost-types", @@ -192,17 +267,27 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +[[package]] +name = "env_filter" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" +dependencies = [ + "log", + "regex", +] + [[package]] name = "env_logger" -version = "0.10.2" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" dependencies = [ + "anstream", + "anstyle", + "env_filter", "humantime", - "is-terminal", "log", - "regex", - "termcolor", ] [[package]] @@ -297,7 +382,7 @@ checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" [[package]] name = "gravity_proto" -version = "0.5.0" +version = "0.6.0" dependencies = [ "cosmos-sdk-proto-althea", "prost", @@ -307,15 +392,15 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.26" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" +checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205" dependencies = [ + "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "futures-util", "http", "indexmap 2.6.0", "slab", @@ -348,17 +433,11 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" -[[package]] -name = "hermit-abi" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" - [[package]] name = "http" -version = "0.2.12" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" dependencies = [ "bytes", "fnv", @@ -367,12 +446,24 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.6" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", + "futures-util", "http", + "http-body", "pin-project-lite", ] @@ -396,13 +487,12 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.30" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" +checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" dependencies = [ "bytes", "futures-channel", - "futures-core", "futures-util", "h2", "http", @@ -411,23 +501,41 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2", + "smallvec", "tokio", - "tower-service", - "tracing", "want", ] [[package]] name = "hyper-timeout" -version = "0.4.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +checksum = "3203a961e5c83b6f5498933e78b6b263e208c197b63e9c6c53cc82ffd3f63793" dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", "hyper", "pin-project-lite", + "socket2", "tokio", - "tokio-io-timeout", + "tower-service", + "tracing", ] [[package]] @@ -451,21 +559,16 @@ dependencies = [ ] [[package]] -name = "is-terminal" -version = "0.4.13" +name = "is_terminal_polyfill" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" -dependencies = [ - "hermit-abi 0.4.0", - "libc", - "windows-sys 0.52.0", -] +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "itertools" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" dependencies = [ "either", ] @@ -527,7 +630,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ - "hermit-abi 0.3.9", + "hermit-abi", "libc", "wasi", "windows-sys 0.52.0", @@ -641,9 +744,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.6" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" +checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f" dependencies = [ "bytes", "prost-derive", @@ -651,9 +754,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.12.6" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +checksum = "0c1318b19085f08681016926435853bbf7858f9c082d0999b80550ff5d9abe15" dependencies = [ "bytes", "heck", @@ -672,9 +775,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.6" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5" dependencies = [ "anyhow", "itertools", @@ -685,9 +788,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.12.6" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +checksum = "4759aa0d3a6232fb8dbdb97b61de2c20047c68aca932c7ed76da9d788508d670" dependencies = [ "prost", ] @@ -701,12 +804,22 @@ dependencies = [ "prost", "prost-build", "prost-types", + "protobuf-src", "regex", "tonic", "tonic-build", "walkdir", ] +[[package]] +name = "protobuf-src" +version = "2.1.0+27.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7edafa3bcc668fa93efafcbdf58d7821bbda0f4b458ac7fae3d57ec0fec8167" +dependencies = [ + "cmake", +] + [[package]] name = "quote" version = "1.0.37" @@ -787,7 +900,7 @@ version = "0.38.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" dependencies = [ - "bitflags 2.6.0", + "bitflags", "errno", "libc", "linux-raw-sys", @@ -829,6 +942,12 @@ dependencies = [ "syn", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "slab" version = "0.4.9" @@ -838,6 +957,12 @@ dependencies = [ "autocfg", ] +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + [[package]] name = "socket2" version = "0.5.7" @@ -865,6 +990,12 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "sync_wrapper" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" + [[package]] name = "tempfile" version = "3.13.0" @@ -878,15 +1009,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - [[package]] name = "tokio" version = "1.40.0" @@ -899,17 +1021,19 @@ dependencies = [ "mio", "pin-project-lite", "socket2", + "tokio-macros", "windows-sys 0.52.0", ] [[package]] -name = "tokio-io-timeout" -version = "1.2.0" +name = "tokio-macros" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ - "pin-project-lite", - "tokio", + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -938,9 +1062,9 @@ dependencies = [ [[package]] name = "tonic" -version = "0.10.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" +checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" dependencies = [ "async-stream", "async-trait", @@ -950,14 +1074,17 @@ dependencies = [ "h2", "http", "http-body", + "http-body-util", "hyper", "hyper-timeout", + "hyper-util", "percent-encoding", "pin-project", "prost", + "socket2", "tokio", "tokio-stream", - "tower", + "tower 0.4.13", "tower-layer", "tower-service", "tracing", @@ -965,13 +1092,14 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.10.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889" +checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11" dependencies = [ "prettyplease", "proc-macro2", "prost-build", + "prost-types", "quote", "syn", ] @@ -996,6 +1124,20 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2873938d487c3cfb9aed7546dc9f2711d867c9f90c46b889989a2cb84eba6b4f" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper 0.1.2", + "tower-layer", + "tower-service", +] + [[package]] name = "tower-layer" version = "0.3.3" @@ -1051,6 +1193,12 @@ version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + [[package]] name = "walkdir" version = "2.5.0" diff --git a/Cargo.toml b/Cargo.toml index cc16bf8..7b658b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,10 @@ members = ["althea_proto", "cosmos_sdk_proto", "gravity_proto", "proto_build"] resolver = "2" [workspace.dependencies] -prost = "0.12" -prost-build = "0.12" -prost-types = "0.12" -tonic = "0.10" -tonic-build = "0.10" +prost = "0.13" +prost-build = "0.13" +prost-types = "0.13" +tonic = "0.12" +tonic-build = "0.12" log = "0.4" -env_logger = "0.10" +env_logger = "0.11" diff --git a/althea_proto/Cargo.toml b/althea_proto/Cargo.toml index f29d3af..706b13f 100644 --- a/althea_proto/Cargo.toml +++ b/althea_proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "althea_proto" -version = "0.8.0" +version = "0.9.0" description = "Protobuf stuct defintions for interacting with Althea Chain" authors = ["Justin Kilpatrick ", "Christian Borst "] edition = "2021" @@ -15,6 +15,6 @@ keywords = ["blockchain", "cosmos", "tendermint", "proto"] [dependencies] prost = {workspace = true} prost-types = {workspace = true} -cosmos-sdk-proto = {package="cosmos-sdk-proto-althea", version="0.17", path = "../cosmos_sdk_proto", features = ["ethermint"]} +cosmos-sdk-proto = {package="cosmos-sdk-proto-althea", version="0.18", path = "../cosmos_sdk_proto", features = ["ethermint"]} tonic = {workspace = true} diff --git a/althea_proto/src/lib.rs b/althea_proto/src/lib.rs index 075e8ca..07cf1ef 100644 --- a/althea_proto/src/lib.rs +++ b/althea_proto/src/lib.rs @@ -102,8 +102,7 @@ pub mod ethermint { } } -/// note to future readers I have hand copied the RegisteredInterchainAccount file from ibc.applications.interchain_accounts.v1.rs which is compiled -/// but not checked in into gaia.icaauth.v1.rs +/// note to future readers I have hand copied these two files from the gravity_proto folder pub mod althea_test { pub mod gaia { pub mod globalfee { diff --git a/althea_proto/src/prost/althea.gasfree.v1.rs b/althea_proto/src/prost/althea.gasfree.v1.rs index 7946432..3bc9fcc 100644 --- a/althea_proto/src/prost/althea.gasfree.v1.rs +++ b/althea_proto/src/prost/althea.gasfree.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Params struct -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// Messages with one of these types will not be charged gas fees in the @@ -7,18 +7,15 @@ pub struct Params { #[prost(string, repeated, tag = "1")] pub gas_free_message_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -27,7 +24,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -50,8 +53,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -76,7 +79,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -123,8 +126,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/althea.lockup.v1.rs b/althea_proto/src/prost/althea.lockup.v1.rs index 69c005e..beb3e8e 100644 --- a/althea_proto/src/prost/althea.lockup.v1.rs +++ b/althea_proto/src/prost/althea.lockup.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Params struct -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// The lockup module is engaged if locked is true (chain is "locked up") @@ -16,7 +16,6 @@ pub struct Params { #[prost(string, repeated, tag = "4")] pub locked_token_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] diff --git a/althea_proto/src/prost/althea.microtx.v1.rs b/althea_proto/src/prost/althea.microtx.v1.rs index 879f4c2..8408444 100644 --- a/althea_proto/src/prost/althea.microtx.v1.rs +++ b/althea_proto/src/prost/althea.microtx.v1.rs @@ -1,12 +1,11 @@ +// This file is @generated by prost-build. /// Params struct -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { #[prost(uint64, tag = "1")] pub microtx_fee_basis_points: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, @@ -19,7 +18,6 @@ pub struct GenesisState { /// RECEIVER The account receiving funds from sender /// AMOUNTS The tokens and their quantities which should be transferred, these /// must be Cosmos coins registered as ERC20s, or the Cosmos representation of ERC20s -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMicrotx { #[prost(string, tag = "1")] @@ -29,12 +27,10 @@ pub struct MsgMicrotx { #[prost(message, optional, tag = "3")] pub amount: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgMicrotxResponse {} /// A type for the block's event log, every successful Microtx must create one of /// these in the event log -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMicrotx { #[prost(string, tag = "1")] @@ -48,7 +44,6 @@ pub struct EventMicrotx { } /// A type for the block's event log, Microtx fees may be collected out-of-band and so /// this event may be emitted in an AnteHandler or during the Msg handler -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMicrotxFeeCollected { #[prost(string, tag = "1")] @@ -58,7 +53,6 @@ pub struct EventMicrotxFeeCollected { } /// A type for the block's event log recording when a Liquid Infrastructure account /// has a received balance redirected to its registered LiquidInfrastructureNFT -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBalanceRedirect { #[prost(string, tag = "1")] @@ -70,7 +64,6 @@ pub struct EventBalanceRedirect { /// ACCOUNT The bech32 address of the liquid infrastructure account /// OWNER The bech32 address of the account now in control of the liquid infrastructure /// NFT_ADDRESS The EVM address of the token contract in control of the liquid infrastructure account's accrued profits -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LiquidInfrastructureAccount { #[prost(string, tag = "1")] @@ -86,14 +79,12 @@ pub struct LiquidInfrastructureAccount { /// The liquid infrastructure account itself will be the initial owner of the NFT, /// and must transfer control through the EVM NFT contract /// SENDER The bech32 address of the account to liquify, must also be the signer of the message -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgLiquify { #[prost(string, tag = "1")] pub sender: ::prost::alloc::string::String, } /// MsgLiquifyResponse potentially returns useful information from the liquification of an account -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgLiquifyResponse { #[prost(message, optional, tag = "1")] @@ -101,7 +92,6 @@ pub struct MsgLiquifyResponse { } /// A type for the block's event log, every successful MsgLiquify must create one of /// these in the event log -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAccountLiquified { #[prost(string, tag = "1")] @@ -111,7 +101,13 @@ pub struct EventAccountLiquified { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the state transitions possible within microtx @@ -134,8 +130,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -160,7 +156,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -207,8 +203,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -233,8 +228,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -250,33 +244,27 @@ pub mod msg_client { } } /// Query the current microtx params -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// Query the additional fee paid on MsgMicrotx, determined by governance -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryMicrotxFeeRequest { #[prost(uint64, tag = "1")] pub amount: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryMicrotxFeeResponse { #[prost(uint64, tag = "1")] pub fee_amount: u64, } /// Query the Liquid Infrastructure accounts known to the module -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLiquidAccountsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLiquidAccountsResponse { #[prost(message, repeated, tag = "1")] @@ -286,7 +274,6 @@ pub struct QueryLiquidAccountsResponse { /// OWNER if a bech32 address is provided, potenitally many accounts will be returned /// ACCOUNT if a bech32 address is provided, the owner and nft contract address will be returned /// NFT if a EVM address is provided and happens to be a LiquidInfrastructureNFT contract, the owner and account will be returned -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLiquidAccountRequest { #[prost(string, tag = "1")] @@ -296,7 +283,6 @@ pub struct QueryLiquidAccountRequest { #[prost(string, tag = "3")] pub nft: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLiquidAccountResponse { #[prost(message, repeated, tag = "1")] @@ -304,7 +290,13 @@ pub struct QueryLiquidAccountResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the possible queries to make of the microtx module @@ -327,8 +319,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -353,7 +345,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -400,8 +392,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -426,8 +417,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -452,8 +442,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -483,8 +472,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/althea.nativedex.v1.rs b/althea_proto/src/prost/althea.nativedex.v1.rs index c03e84d..db0d58a 100644 --- a/althea_proto/src/prost/althea.nativedex.v1.rs +++ b/althea_proto/src/prost/althea.nativedex.v1.rs @@ -1,12 +1,11 @@ +// This file is @generated by prost-build. /// GenesisState defines the nativedex module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// Params defines the parameters for the module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(string, tag = "1")] @@ -18,7 +17,6 @@ pub struct Params { /// if passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 0, , )>) /// /// BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY BREAK THE DEX CONTRACT -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeProxyProposal { #[prost(string, tag = "1")] @@ -28,7 +26,6 @@ pub struct UpgradeProxyProposal { #[prost(message, optional, tag = "3")] pub metadata: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeProxyMetadata { /// the address of the contract to install @@ -43,7 +40,6 @@ pub struct UpgradeProxyMetadata { /// /// Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool /// to determine the current protocol take -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CollectTreasuryProposal { #[prost(string, tag = "1")] @@ -56,7 +52,6 @@ pub struct CollectTreasuryProposal { #[prost(bool, tag = "4")] pub in_safe_mode: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CollectTreasuryMetadata { /// the ERC20 address to collect into the `treasury_` account, (0x0 for the native token) @@ -69,7 +64,6 @@ pub struct CollectTreasuryMetadata { /// /// Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool /// to determine the current protocol take -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetTreasuryProposal { #[prost(string, tag = "1")] @@ -82,7 +76,6 @@ pub struct SetTreasuryProposal { #[prost(bool, tag = "4")] pub in_safe_mode: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetTreasuryMetadata { /// the address to set `treasury_` to @@ -95,7 +88,6 @@ pub struct SetTreasuryMetadata { /// /// BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY DISABLE THE NATIVEDEX MODULE AND REMOVE STAKER AUTHORITY /// OVER THE DEX CONTRACT -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthorityTransferProposal { #[prost(string, tag = "1")] @@ -108,7 +100,6 @@ pub struct AuthorityTransferProposal { #[prost(bool, tag = "4")] pub in_safe_mode: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthorityTransferMetadata { /// the address to set `authority_` to @@ -121,7 +112,6 @@ pub struct AuthorityTransferMetadata { /// If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, )>) /// /// BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN BREAK INFLEXIBLE DEX USER INTERFACES -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HotPathOpenProposal { #[prost(string, tag = "1")] @@ -134,8 +124,7 @@ pub struct HotPathOpenProposal { #[prost(bool, tag = "4")] pub in_safe_mode: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HotPathOpenMetadata { /// If true, users can call swap directly on the dex contract. /// If false, they must call CrocSwapDex.userCmd(1, ) @@ -148,7 +137,6 @@ pub struct HotPathOpenMetadata { /// If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, )>) /// /// BE VERY CAREFUL EXECUTING THIS PROPOSAL, IT SHOULD ONLY BE USED TO DISABLE THE DEX OR RECOVER FROM DISABLES -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetSafeModeProposal { #[prost(string, tag = "1")] @@ -161,8 +149,7 @@ pub struct SetSafeModeProposal { #[prost(bool, tag = "4")] pub in_safe_mode: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetSafeModeMetadata { /// If true, the DEX will be disabled #[prost(bool, tag = "1")] @@ -172,7 +159,6 @@ pub struct SetSafeModeMetadata { /// If passes, calls CrocPolicy.transferGovernance(, , ) /// /// BE VERY CAREFUL EXECUTING THIS PROPOSAL, THE OPS AND EMERGENCY ADDRESSES SHOULD BE CAREFULLY CHOSEN MULTISIGS -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferGovernanceProposal { #[prost(string, tag = "1")] @@ -182,7 +168,6 @@ pub struct TransferGovernanceProposal { #[prost(message, optional, tag = "3")] pub metadata: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferGovernanceMetadata { /// The address to use for the Ops governance role, the least privileged role @@ -197,7 +182,6 @@ pub struct TransferGovernanceMetadata { /// /// This proposal enables nativedex governance to perform everyday Ops functions on the DEX, /// and so the Ops or Emergency addresses could override any decisions made by this proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpsProposal { #[prost(string, tag = "1")] @@ -207,7 +191,6 @@ pub struct OpsProposal { #[prost(message, optional, tag = "3")] pub metadata: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OpsMetadata { /// The callpath index to use, see solidity-dex/contracts/mixins/StorageLayout.sol for the default values @@ -218,11 +201,9 @@ pub struct OpsMetadata { pub cmd_args: ::prost::alloc::vec::Vec, } /// QueryParamsRequest is request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params holds all the parameters of this module. @@ -231,7 +212,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -254,8 +241,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -280,7 +267,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -327,8 +314,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -345,7 +331,13 @@ pub mod query_client { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the Msg service. @@ -368,8 +360,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -394,7 +386,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } diff --git a/althea_proto/src/prost/althea.onboarding.v1.rs b/althea_proto/src/prost/althea.onboarding.v1.rs index d312183..452168c 100644 --- a/althea_proto/src/prost/althea.onboarding.v1.rs +++ b/althea_proto/src/prost/althea.onboarding.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState defines the onboarding module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -7,7 +7,6 @@ pub struct GenesisState { pub params: ::core::option::Option, } /// Params holds parameters for the onboarding module -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// enable onboarding IBC middleware @@ -17,11 +16,9 @@ pub struct Params { pub whitelisted_channels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -30,7 +27,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -53,8 +56,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -79,7 +82,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -126,8 +129,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.csr.v1.rs b/althea_proto/src/prost/canto.csr.v1.rs index b3e19d5..f279d7b 100644 --- a/althea_proto/src/prost/canto.csr.v1.rs +++ b/althea_proto/src/prost/canto.csr.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// The CSR struct is a wrapper to all of the metadata associated with a given CST NFT -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Csr { /// Contracts is the list of all EVM address that are registered to this NFT @@ -16,7 +16,6 @@ pub struct Csr { pub revenue: ::prost::alloc::string::String, } /// Params holds parameters for the csr module -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// boolean to enable the csr module @@ -27,7 +26,6 @@ pub struct Params { pub csr_shares: ::prost::alloc::string::String, } /// GenesisState defines the csr module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all of the parameters of the module @@ -35,11 +33,9 @@ pub struct GenesisState { pub params: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params holds all the parameters of this module. @@ -47,7 +43,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryCSRsRequest is the request type for the Query/CSRs RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCsRsRequest { /// pagination defines an optional pagination for the request. @@ -57,7 +52,6 @@ pub struct QueryCsRsRequest { >, } /// QueryCSRsResponse is the response type for the Query/CSRs RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCsRsResponse { #[prost(message, repeated, tag = "1")] @@ -69,14 +63,12 @@ pub struct QueryCsRsResponse { >, } /// QueryCSRByNFTRequest is the request type for the Query/CSRByNFT RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCsrByNftRequest { #[prost(uint64, tag = "1")] pub nft_id: u64, } /// QueryCSRByNFTResponse is the response type for the Query/CSRByNFT RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCsrByNftResponse { /// csr object queried by nft id @@ -84,14 +76,12 @@ pub struct QueryCsrByNftResponse { pub csr: ::core::option::Option, } /// QueryCSRByContractRequest is the request type for the Query/CSRByContract RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCsrByContractRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } /// QueryCSRByContractResponse is the response type for the Query/CSRByContract RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCsrByContractResponse { /// csr object queried by smart contract address @@ -99,11 +89,9 @@ pub struct QueryCsrByContractResponse { pub csr: ::core::option::Option, } /// QueryTurnstileRequest is the request type for the Query/Turnstile RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryTurnstileRequest {} /// QueryTurnstileResponse is the response type for the Query/Turnstile RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTurnstileResponse { #[prost(string, tag = "1")] @@ -111,7 +99,13 @@ pub struct QueryTurnstileResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -134,8 +128,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -160,7 +154,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -207,8 +201,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -232,8 +225,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -255,8 +247,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -281,8 +272,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -307,8 +297,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.epochs.v1.rs b/althea_proto/src/prost/canto.epochs.v1.rs index f668600..f64b572 100644 --- a/althea_proto/src/prost/canto.epochs.v1.rs +++ b/althea_proto/src/prost/canto.epochs.v1.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct EpochInfo { #[prost(string, tag = "1")] @@ -17,13 +17,11 @@ pub struct EpochInfo { pub current_epoch_start_height: i64, } /// GenesisState defines the epochs module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, repeated, tag = "1")] pub epochs: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEpochsInfoRequest { #[prost(message, optional, tag = "1")] @@ -31,7 +29,6 @@ pub struct QueryEpochsInfoRequest { cosmos_sdk_proto::cosmos::base::query::v1beta1::PageRequest, >, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEpochsInfoResponse { #[prost(message, repeated, tag = "1")] @@ -41,21 +38,25 @@ pub struct QueryEpochsInfoResponse { cosmos_sdk_proto::cosmos::base::query::v1beta1::PageResponse, >, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentEpochRequest { #[prost(string, tag = "1")] pub identifier: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCurrentEpochResponse { #[prost(int64, tag = "1")] pub current_epoch: i64, } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -78,8 +79,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -104,7 +105,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -151,8 +152,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -177,8 +177,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.erc20.v1.rs b/althea_proto/src/prost/canto.erc20.v1.rs index bfd5266..22aad88 100644 --- a/althea_proto/src/prost/canto.erc20.v1.rs +++ b/althea_proto/src/prost/canto.erc20.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// TokenPair defines an instance that records a pairing consisting of a native /// Cosmos Coin and an ERC20 token address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TokenPair { /// address of ERC20 contract token @@ -18,7 +18,6 @@ pub struct TokenPair { } /// RegisterCoinProposal is a gov Content type to register a token pair for a /// native Cosmos coin. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisterCoinProposal { /// title of the proposal @@ -35,7 +34,6 @@ pub struct RegisterCoinProposal { } /// RegisterERC20Proposal is a gov Content type to register a token pair for an /// ERC20 token -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisterErc20Proposal { /// title of the proposa string title = 1; @@ -50,7 +48,6 @@ pub struct RegisterErc20Proposal { } /// ToggleTokenConversionProposal is a gov Content type to toggle the conversion /// of a token pair. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ToggleTokenConversionProposal { /// title of the proposal @@ -82,9 +79,9 @@ impl Owner { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Owner::Unspecified => "OWNER_UNSPECIFIED", - Owner::Module => "OWNER_MODULE", - Owner::External => "OWNER_EXTERNAL", + Self::Unspecified => "OWNER_UNSPECIFIED", + Self::Module => "OWNER_MODULE", + Self::External => "OWNER_EXTERNAL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -98,7 +95,6 @@ impl Owner { } } /// GenesisState defines the module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// module parameters @@ -109,8 +105,7 @@ pub struct GenesisState { pub token_pairs: ::prost::alloc::vec::Vec, } /// Params defines the erc20 module params -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// parameter to enable the conversion of Cosmos coins <--> ERC20 tokens. #[prost(bool, tag = "1")] @@ -123,7 +118,6 @@ pub struct Params { } /// QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTokenPairsRequest { /// pagination defines an optional pagination for the request. @@ -134,7 +128,6 @@ pub struct QueryTokenPairsRequest { } /// QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTokenPairsResponse { #[prost(message, repeated, tag = "1")] @@ -146,7 +139,6 @@ pub struct QueryTokenPairsResponse { >, } /// QueryTokenPairRequest is the request type for the Query/TokenPair RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTokenPairRequest { /// token identifier can be either the hex contract address of the ERC20 or the @@ -156,27 +148,30 @@ pub struct QueryTokenPairRequest { } /// QueryTokenPairResponse is the response type for the Query/TokenPair RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTokenPairResponse { #[prost(message, optional, tag = "1")] pub token_pair: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -199,8 +194,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -225,7 +220,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -272,8 +267,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -298,8 +292,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -324,8 +317,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -341,7 +333,6 @@ pub mod query_client { } } /// MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConvertCoin { /// Cosmos coin which denomination is registered in a token pair. The coin @@ -356,12 +347,10 @@ pub struct MsgConvertCoin { pub sender: ::prost::alloc::string::String, } /// MsgConvertCoinResponse returns no fields -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConvertCoinResponse {} /// MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos /// coin. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConvertErc20 { /// ERC20 token contract address registered in a token pair @@ -378,12 +367,17 @@ pub struct MsgConvertErc20 { pub sender: ::prost::alloc::string::String, } /// MsgConvertERC20Response returns no fields -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConvertErc20Response {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the erc20 Msg service. @@ -406,8 +400,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -432,7 +426,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -480,8 +474,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -507,8 +500,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.fees.v1.rs b/althea_proto/src/prost/canto.fees.v1.rs index 9c66eec..4028190 100644 --- a/althea_proto/src/prost/canto.fees.v1.rs +++ b/althea_proto/src/prost/canto.fees.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// Fee defines an instance that organizes fee distribution conditions for the /// owner of a given smart contract -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fee { /// hex address of registered contract @@ -15,7 +15,6 @@ pub struct Fee { pub withdraw_address: ::prost::alloc::string::String, } /// GenesisState defines the module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// module parameters @@ -26,7 +25,6 @@ pub struct GenesisState { pub fees: ::prost::alloc::vec::Vec, } /// Params defines the fees module params -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// parameter to enable fees @@ -42,7 +40,6 @@ pub struct Params { pub addr_derivation_cost_create: u64, } /// QueryFeesRequest is the request type for the Query/Fees RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeesRequest { /// pagination defines an optional pagination for the request. @@ -52,7 +49,6 @@ pub struct QueryFeesRequest { >, } /// QueryFeesResponse is the response type for the Query/Fees RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeesResponse { #[prost(message, repeated, tag = "1")] @@ -64,7 +60,6 @@ pub struct QueryFeesResponse { >, } /// QueryFeeRequest is the request type for the Query/Fee RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeRequest { /// contract identifier is the hex contract address of a contract @@ -72,18 +67,15 @@ pub struct QueryFeeRequest { pub contract_address: ::prost::alloc::string::String, } /// QueryFeeResponse is the response type for the Query/Fee RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeResponse { #[prost(message, optional, tag = "1")] pub fee: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] @@ -91,7 +83,6 @@ pub struct QueryParamsResponse { } /// QueryDeployerFeesRequest is the request type for the Query/DeployerFees RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDeployerFeesRequest { /// deployer bech32 address @@ -105,7 +96,6 @@ pub struct QueryDeployerFeesRequest { } /// QueryDeployerFeesResponse is the response type for the Query/DeployerFees RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDeployerFeesResponse { #[prost(message, repeated, tag = "1")] @@ -118,7 +108,13 @@ pub struct QueryDeployerFeesResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -141,8 +137,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -167,7 +163,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -214,8 +210,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -238,8 +233,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -261,8 +255,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -288,8 +281,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -305,7 +297,6 @@ pub mod query_client { } } /// MsgRegisterFee defines a message that registers a Fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterFee { /// contract hex address @@ -325,11 +316,9 @@ pub struct MsgRegisterFee { pub nonces: ::prost::alloc::vec::Vec, } /// MsgRegisterFeeResponse defines the MsgRegisterFee response type -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRegisterFeeResponse {} /// MsgCancelFee defines a message that cancels a registered a Fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelFee { /// contract hex address @@ -340,12 +329,10 @@ pub struct MsgCancelFee { pub deployer_address: ::prost::alloc::string::String, } /// MsgCancelFeeResponse defines the MsgCancelFee response type -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCancelFeeResponse {} /// MsgUpdateFee defines a message that updates the withdraw address for a /// registered Fee -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateFee { /// contract hex address @@ -359,12 +346,17 @@ pub struct MsgUpdateFee { pub withdraw_address: ::prost::alloc::string::String, } /// MsgUpdateFeeResponse defines the MsgUpdateFee response type -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateFeeResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the fees Msg service. @@ -387,8 +379,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -413,7 +405,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -460,8 +452,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -487,8 +478,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -513,8 +503,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.govshuttle.v1.rs b/althea_proto/src/prost/canto.govshuttle.v1.rs index 1bdac13..9146655 100644 --- a/althea_proto/src/prost/canto.govshuttle.v1.rs +++ b/althea_proto/src/prost/canto.govshuttle.v1.rs @@ -1,9 +1,8 @@ +// This file is @generated by prost-build. /// Params defines the parameters for the module. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params {} /// Define this object so that the govshuttle.pb.go file is generate, implements govtypes.Content -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LendingMarketProposal { /// title @@ -17,7 +16,6 @@ pub struct LendingMarketProposal { pub metadata: ::core::option::Option, } /// treasury proposal type, -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TreasuryProposal { #[prost(string, tag = "1")] @@ -27,7 +25,6 @@ pub struct TreasuryProposal { #[prost(message, optional, tag = "3")] pub metadata: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TreasuryProposalMetadata { /// proposalID, for querying proposals in EVM side, determined by order in gov propsal queue @@ -42,7 +39,6 @@ pub struct TreasuryProposalMetadata { #[prost(string, tag = "4")] pub denom: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LendingMarketMetadata { #[prost(string, repeated, tag = "1")] @@ -57,20 +53,17 @@ pub struct LendingMarketMetadata { pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GenesisState defines the govshuttle module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GenesisState { /// this line is used by starport scaffolding # genesis/proto/state #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryParamsRequest is request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params holds all the parameters of this module. #[prost(message, optional, tag = "1")] @@ -78,7 +71,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -101,8 +100,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -127,7 +126,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -174,8 +173,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -192,7 +190,13 @@ pub mod query_client { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the Msg service. @@ -215,8 +219,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -241,7 +245,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } diff --git a/althea_proto/src/prost/canto.inflation.v1.rs b/althea_proto/src/prost/canto.inflation.v1.rs index 97ff77c..3add8bf 100644 --- a/althea_proto/src/prost/canto.inflation.v1.rs +++ b/althea_proto/src/prost/canto.inflation.v1.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. /// InflationDistribution defines the distribution in which inflation is /// allocated through minting on each epoch (staking, incentives, community). It /// excludes the team vesting distribution, as this is minted once at genesis. @@ -5,7 +6,6 @@ /// Model like this: /// mintDistribution1 = distribution1 / (1 - teamVestingDistribution) /// 0.5333333 = 40% / (1 - 25%) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InflationDistribution { /// staking_rewards defines the proportion of the minted minted_denom that is @@ -28,7 +28,6 @@ pub struct InflationDistribution { /// periodProvision = exponentialDecay * bondingIncentive /// f(x) = (a * (1 - r) ^ x + c) * (1 + max_variance - bondedRatio * /// (max_variance / bonding_target)) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExponentialCalculation { /// initial value @@ -48,7 +47,6 @@ pub struct ExponentialCalculation { pub max_variance: ::prost::alloc::string::String, } /// GenesisState defines the inflation module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -68,7 +66,6 @@ pub struct GenesisState { pub skipped_epochs: u64, } /// Params holds parameters for the inflation module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// type of coin to mint @@ -85,12 +82,10 @@ pub struct Params { pub enable_inflation: bool, } /// QueryPeriodRequest is the request type for the Query/Period RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryPeriodRequest {} /// QueryPeriodResponse is the response type for the Query/Period RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryPeriodResponse { /// period is the current minting per epoch provision value. #[prost(uint64, tag = "1")] @@ -98,12 +93,10 @@ pub struct QueryPeriodResponse { } /// QueryEpochMintProvisionRequest is the request type for the /// Query/EpochMintProvision RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryEpochMintProvisionRequest {} /// QueryEpochMintProvisionResponse is the response type for the /// Query/EpochMintProvision RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEpochMintProvisionResponse { /// epoch_mint_provision is the current minting per epoch provision value. @@ -114,13 +107,11 @@ pub struct QueryEpochMintProvisionResponse { } /// QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QuerySkippedEpochsRequest {} /// QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QuerySkippedEpochsResponse { /// number of epochs that the inflation module has been disabled. #[prost(uint64, tag = "1")] @@ -128,12 +119,10 @@ pub struct QuerySkippedEpochsResponse { } /// QueryCirculatingSupplyRequest is the request type for the /// Query/CirculatingSupply RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCirculatingSupplyRequest {} /// QueryCirculatingSupplyResponse is the response type for the /// Query/CirculatingSupply RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCirculatingSupplyResponse { /// total amount of coins in circulation @@ -144,12 +133,10 @@ pub struct QueryCirculatingSupplyResponse { } /// QueryInflationRateRequest is the request type for the Query/InflationRate RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryInflationRateRequest {} /// QueryInflationRateResponse is the response type for the Query/InflationRate /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInflationRateResponse { /// rate by which the total supply increases within one period @@ -157,11 +144,9 @@ pub struct QueryInflationRateResponse { pub inflation_rate: ::prost::alloc::string::String, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -170,7 +155,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service. @@ -193,8 +184,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -219,7 +210,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -266,8 +257,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -292,8 +282,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -320,8 +309,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -347,8 +335,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -375,8 +362,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -401,8 +387,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.recovery.v1.rs b/althea_proto/src/prost/canto.recovery.v1.rs index 06c880a..1b9acf8 100644 --- a/althea_proto/src/prost/canto.recovery.v1.rs +++ b/althea_proto/src/prost/canto.recovery.v1.rs @@ -1,14 +1,13 @@ +// This file is @generated by prost-build. /// GenesisState defines the recovery module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// Params holds parameters for the recovery module -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// enable recovery IBC middleware #[prost(bool, tag = "1")] @@ -18,12 +17,10 @@ pub struct Params { pub packet_timeout_duration: ::core::option::Option<::prost_types::Duration>, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. #[prost(message, optional, tag = "1")] @@ -31,7 +28,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -54,8 +57,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -80,7 +83,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -127,8 +130,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/canto.vesting.v1.rs b/althea_proto/src/prost/canto.vesting.v1.rs index efbe372..8295a10 100644 --- a/althea_proto/src/prost/canto.vesting.v1.rs +++ b/althea_proto/src/prost/canto.vesting.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// QueryBalancesRequest is the request type for the Query/Balances RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalancesRequest { /// address of the clawback vesting account @@ -8,7 +8,6 @@ pub struct QueryBalancesRequest { } /// QueryBalancesResponse is the response type for the Query/Balances RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalancesResponse { /// current amount of locked tokens @@ -29,7 +28,13 @@ pub struct QueryBalancesResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -52,8 +57,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -78,7 +83,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -125,8 +130,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -143,7 +147,6 @@ pub mod query_client { } /// MsgCreateClawbackVestingAccount defines a message that enables creating a /// ClawbackVestingAccount. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateClawbackVestingAccount { /// from_address specifies the account to provide the funds and sign the @@ -176,12 +179,10 @@ pub struct MsgCreateClawbackVestingAccount { } /// MsgCreateClawbackVestingAccountResponse defines the /// MsgCreateClawbackVestingAccount response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreateClawbackVestingAccountResponse {} /// MsgClawback defines a message that removes unvested tokens from a /// ClawbackVestingAccount. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgClawback { /// funder_address is the address which funded the account @@ -198,12 +199,17 @@ pub struct MsgClawback { pub dest_address: ::prost::alloc::string::String, } /// MsgClawbackResponse defines the MsgClawback response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgClawbackResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the vesting Msg service. @@ -226,8 +232,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -252,7 +258,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -300,8 +306,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -331,8 +336,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -351,7 +355,6 @@ pub mod msg_client { /// an account that can hold contributions subject to "lockup" (like a /// PeriodicVestingAccount), or vesting which is subject to clawback /// of unvested tokens, or a combination (tokens vest, but are still locked). -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClawbackVestingAccount { /// base_vesting_account implements the VestingAccount interface. It contains diff --git a/althea_proto/src/prost/ethermint.crypto.v1.ethsecp256k1.rs b/althea_proto/src/prost/ethermint.crypto.v1.ethsecp256k1.rs index cda6063..39d218e 100644 --- a/althea_proto/src/prost/ethermint.crypto.v1.ethsecp256k1.rs +++ b/althea_proto/src/prost/ethermint.crypto.v1.ethsecp256k1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// PubKey defines a type alias for an ecdsa.PublicKey that implements /// Tendermint's PubKey interface. It represents the 33-byte compressed public /// key format. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { #[prost(bytes = "vec", tag = "1")] @@ -9,7 +9,6 @@ pub struct PubKey { } /// PrivKey defines a type alias for an ecdsa.PrivateKey that implements /// Tendermint's PrivateKey interface. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] diff --git a/althea_proto/src/prost/ethermint.evm.v1.rs b/althea_proto/src/prost/ethermint.evm.v1.rs index 620b9a0..56a2566 100644 --- a/althea_proto/src/prost/ethermint.evm.v1.rs +++ b/althea_proto/src/prost/ethermint.evm.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Params defines the EVM module parameters -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// evm denom represents the token denomination used to run the EVM state @@ -25,7 +25,6 @@ pub struct Params { } /// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values /// instead of *big.Int. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainConfig { /// Homestead switch block (nil no fork, 0 = already homestead) @@ -82,7 +81,6 @@ pub struct ChainConfig { pub merge_netsplit_block: ::prost::alloc::string::String, } /// State represents a single Storage key value pair item. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct State { #[prost(string, tag = "1")] @@ -93,7 +91,6 @@ pub struct State { /// TransactionLogs define the logs generated from a transaction execution /// with a given hash. It it used for import/export data as transactions are not /// persisted on blockchain state after an upgrade. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransactionLogs { #[prost(string, tag = "1")] @@ -106,7 +103,6 @@ pub struct TransactionLogs { /// the node. /// /// Consensus fields: -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Log { /// address of the contract that generated the event @@ -140,7 +136,6 @@ pub struct Log { pub removed: bool, } /// TxResult stores results of Tx execution. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxResult { /// contract_address contains the ethereum address of the created contract (if @@ -166,7 +161,6 @@ pub struct TxResult { pub gas_used: u64, } /// AccessTuple is the element type of an access list. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessTuple { /// hex formatted ethereum address @@ -177,7 +171,6 @@ pub struct AccessTuple { pub storage_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// TraceConfig holds extra parameters to trace functions. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TraceConfig { /// custom javascript tracer @@ -213,7 +206,6 @@ pub struct TraceConfig { pub enable_return_data: bool, } /// GenesisState defines the evm module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// accounts is an array containing the ethereum genesis accounts. @@ -226,7 +218,6 @@ pub struct GenesisState { /// GenesisAccount defines an account to be initialized in the genesis state. /// Its main difference between with Geth's GenesisAccount is that it uses a /// custom storage type and that it doesn't contain the private key field. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisAccount { /// address defines an ethereum hex formated address of an account @@ -240,7 +231,6 @@ pub struct GenesisAccount { pub storage: ::prost::alloc::vec::Vec, } /// MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEthereumTx { /// inner transaction data @@ -263,7 +253,6 @@ pub struct MsgEthereumTx { /// LegacyTx is the transaction data of regular Ethereum transactions. /// NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the /// AllowUnprotectedTxs parameter is disabled. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LegacyTx { /// nonce corresponds to the account nonce (transaction sequence). @@ -295,7 +284,6 @@ pub struct LegacyTx { pub s: ::prost::alloc::vec::Vec, } /// AccessListTx is the data of EIP-2930 access list transactions. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessListTx { /// destination EVM chain ID @@ -332,7 +320,6 @@ pub struct AccessListTx { pub s: ::prost::alloc::vec::Vec, } /// DynamicFeeTx is the data of EIP-1559 dinamic fee transactions. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DynamicFeeTx { /// destination EVM chain ID @@ -371,11 +358,9 @@ pub struct DynamicFeeTx { #[prost(bytes = "vec", tag = "12")] pub s: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExtensionOptionsEthereumTx {} /// MsgEthereumTxResponse defines the Msg/EthereumTx response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEthereumTxResponse { /// ethereum transaction hash in hex format. This hash differs from the @@ -400,7 +385,13 @@ pub struct MsgEthereumTxResponse { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the evm Msg service. @@ -423,8 +414,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -449,7 +440,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -496,8 +487,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -513,7 +503,6 @@ pub mod msg_client { } } /// QueryAccountRequest is the request type for the Query/Account RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountRequest { /// address is the ethereum hex address to query the account for. @@ -521,7 +510,6 @@ pub struct QueryAccountRequest { pub address: ::prost::alloc::string::String, } /// QueryAccountResponse is the response type for the Query/Account RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountResponse { /// balance is the balance of the EVM denomination. @@ -536,7 +524,6 @@ pub struct QueryAccountResponse { } /// QueryCosmosAccountRequest is the request type for the Query/CosmosAccount RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCosmosAccountRequest { /// address is the ethereum hex address to query the account for. @@ -545,7 +532,6 @@ pub struct QueryCosmosAccountRequest { } /// QueryCosmosAccountResponse is the response type for the Query/CosmosAccount /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCosmosAccountResponse { /// cosmos_address is the cosmos address of the account. @@ -560,7 +546,6 @@ pub struct QueryCosmosAccountResponse { } /// QueryValidatorAccountRequest is the request type for the /// Query/ValidatorAccount RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorAccountRequest { /// cons_address is the validator cons address to query the account for. @@ -569,7 +554,6 @@ pub struct QueryValidatorAccountRequest { } /// QueryValidatorAccountResponse is the response type for the /// Query/ValidatorAccount RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorAccountResponse { /// account_address is the cosmos address of the account in bech32 format. @@ -583,7 +567,6 @@ pub struct QueryValidatorAccountResponse { pub account_number: u64, } /// QueryBalanceRequest is the request type for the Query/Balance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceRequest { /// address is the ethereum hex address to query the balance for. @@ -591,7 +574,6 @@ pub struct QueryBalanceRequest { pub address: ::prost::alloc::string::String, } /// QueryBalanceResponse is the response type for the Query/Balance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceResponse { /// balance is the balance of the EVM denomination. @@ -599,7 +581,6 @@ pub struct QueryBalanceResponse { pub balance: ::prost::alloc::string::String, } /// QueryStorageRequest is the request type for the Query/Storage RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryStorageRequest { /// / address is the ethereum hex address to query the storage state for. @@ -611,7 +592,6 @@ pub struct QueryStorageRequest { } /// QueryStorageResponse is the response type for the Query/Storage RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryStorageResponse { /// key defines the storage state value hash associated with the given key. @@ -619,7 +599,6 @@ pub struct QueryStorageResponse { pub value: ::prost::alloc::string::String, } /// QueryCodeRequest is the request type for the Query/Code RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodeRequest { /// address is the ethereum hex address to query the code for. @@ -628,7 +607,6 @@ pub struct QueryCodeRequest { } /// QueryCodeResponse is the response type for the Query/Code RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodeResponse { /// code represents the code bytes from an ethereum address. @@ -636,7 +614,6 @@ pub struct QueryCodeResponse { pub code: ::prost::alloc::vec::Vec, } /// QueryTxLogsRequest is the request type for the Query/TxLogs RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTxLogsRequest { /// hash is the ethereum transaction hex hash to query the logs for. @@ -649,7 +626,6 @@ pub struct QueryTxLogsRequest { >, } /// QueryTxLogs is the response type for the Query/TxLogs RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTxLogsResponse { /// logs represents the ethereum logs generated from the given transaction. @@ -662,11 +638,9 @@ pub struct QueryTxLogsResponse { >, } /// QueryParamsRequest defines the request type for querying x/evm parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse defines the response type for querying x/evm parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params define the evm module parameters. @@ -674,7 +648,6 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// EthCallRequest defines EthCall request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EthCallRequest { /// same json format as the json rpc api. @@ -685,15 +658,13 @@ pub struct EthCallRequest { pub gas_cap: u64, } /// EstimateGasResponse defines EstimateGas response -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EstimateGasResponse { /// the estimated gas #[prost(uint64, tag = "1")] pub gas: u64, } /// QueryTraceTxRequest defines TraceTx request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTraceTxRequest { /// msgEthereumTx for the requested transaction @@ -717,7 +688,6 @@ pub struct QueryTraceTxRequest { pub block_time: ::core::option::Option<::prost_types::Timestamp>, } /// QueryTraceTxResponse defines TraceTx response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTraceTxResponse { /// response serialized in bytes @@ -725,7 +695,6 @@ pub struct QueryTraceTxResponse { pub data: ::prost::alloc::vec::Vec, } /// QueryTraceBlockRequest defines TraceTx request -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTraceBlockRequest { /// txs messages in the block @@ -745,7 +714,6 @@ pub struct QueryTraceBlockRequest { pub block_time: ::core::option::Option<::prost_types::Timestamp>, } /// QueryTraceBlockResponse defines TraceBlock response -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTraceBlockResponse { #[prost(bytes = "vec", tag = "1")] @@ -753,11 +721,9 @@ pub struct QueryTraceBlockResponse { } /// QueryBaseFeeRequest defines the request type for querying the EIP1559 base /// fee. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryBaseFeeRequest {} /// BaseFeeResponse returns the EIP1559 base fee. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBaseFeeResponse { #[prost(string, tag = "1")] @@ -765,7 +731,13 @@ pub struct QueryBaseFeeResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -788,8 +760,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -814,7 +786,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -861,8 +833,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -887,8 +858,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -914,8 +884,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -941,8 +910,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -967,8 +935,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -993,8 +960,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1019,8 +985,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1045,8 +1010,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1071,8 +1035,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1097,8 +1060,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1123,8 +1085,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1150,8 +1111,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/ethermint.feemarket.v1.rs b/althea_proto/src/prost/ethermint.feemarket.v1.rs index d51a1ae..7b9ca2f 100644 --- a/althea_proto/src/prost/ethermint.feemarket.v1.rs +++ b/althea_proto/src/prost/ethermint.feemarket.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Params defines the EVM module parameters -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// no base fee forces the EIP-1559 base fee to 0 (needed for 0 price calls) @@ -28,7 +28,6 @@ pub struct Params { pub min_gas_multiplier: ::prost::alloc::string::String, } /// GenesisState defines the feemarket module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -40,11 +39,9 @@ pub struct GenesisState { pub block_gas: u64, } /// QueryParamsRequest defines the request type for querying x/evm parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse defines the response type for querying x/evm parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params define the evm module parameters. @@ -53,11 +50,9 @@ pub struct QueryParamsResponse { } /// QueryBaseFeeRequest defines the request type for querying the EIP1559 base /// fee. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryBaseFeeRequest {} /// BaseFeeResponse returns the EIP1559 base fee. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBaseFeeResponse { #[prost(string, tag = "1")] @@ -65,19 +60,23 @@ pub struct QueryBaseFeeResponse { } /// QueryBlockGasRequest defines the request type for querying the EIP1559 base /// fee. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryBlockGasRequest {} /// QueryBlockGasResponse returns block gas used for a given height. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryBlockGasResponse { #[prost(int64, tag = "1")] pub gas: i64, } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -100,8 +99,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -126,7 +125,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -173,8 +172,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -199,8 +197,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -225,8 +222,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/ethermint.types.v1.rs b/althea_proto/src/prost/ethermint.types.v1.rs index 3b39ac9..c4c58d1 100644 --- a/althea_proto/src/prost/ethermint.types.v1.rs +++ b/althea_proto/src/prost/ethermint.types.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// EthAccount implements the authtypes.AccountI interface and embeds an /// authtypes.BaseAccount type. It is compatible with the auth AccountKeeper. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EthAccount { #[prost(message, optional, tag = "1")] @@ -11,8 +11,7 @@ pub struct EthAccount { pub code_hash: ::prost::alloc::string::String, } /// TxResult is the value stored in eth tx indexer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TxResult { /// the block height #[prost(int64, tag = "1")] @@ -38,7 +37,6 @@ pub struct TxResult { #[prost(uint64, tag = "7")] pub cumulative_gas_used: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExtensionOptionsWeb3Tx { /// typed data chain id used only in EIP712 Domain and should match diff --git a/althea_proto/src/prost/gaia.globalfee.v1beta1.rs b/althea_proto/src/prost/gaia.globalfee.v1beta1.rs index 8785462..277be0d 100644 --- a/althea_proto/src/prost/gaia.globalfee.v1beta1.rs +++ b/althea_proto/src/prost/gaia.globalfee.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState - initial state of module -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// Params of this module @@ -7,7 +7,6 @@ pub struct GenesisState { pub params: ::core::option::Option, } /// Params defines the set of module parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// Minimum stores the minimum gas price(s) for all TX on the chain. @@ -22,12 +21,10 @@ pub struct Params { } /// QueryMinimumGasPricesRequest is the request type for the /// Query/MinimumGasPrices RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryMinimumGasPricesRequest {} /// QueryMinimumGasPricesResponse is the response type for the /// Query/MinimumGasPrices RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMinimumGasPricesResponse { #[prost(message, repeated, tag = "1")] @@ -37,7 +34,13 @@ pub struct QueryMinimumGasPricesResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -60,8 +63,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -86,7 +89,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -132,8 +135,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/althea_proto/src/prost/gaia.icaauth.v1.rs b/althea_proto/src/prost/gaia.icaauth.v1.rs index f5e19db..4d8137e 100644 --- a/althea_proto/src/prost/gaia.icaauth.v1.rs +++ b/althea_proto/src/prost/gaia.icaauth.v1.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRegisterInterchainAccount { #[prost(string, tag = "1")] @@ -8,7 +8,6 @@ pub struct EventRegisterInterchainAccount { #[prost(string, tag = "3")] pub version: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSubmitTx { #[prost(string, tag = "1")] @@ -18,48 +17,51 @@ pub struct EventSubmitTx { #[prost(message, repeated, tag = "3")] pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// MsgRegisterAccount defines the payload for Msg/RegisterAccount -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressRequest is the request type for the Query/InterchainAccountAddress RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgRegisterAccount { +pub struct QueryInterchainAccountFromAddressRequest { #[prost(string, tag = "1")] pub owner: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub version: ::prost::alloc::string::String, } -/// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountFromAddress RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgRegisterAccountResponse {} -/// MsgSubmitTx defines the payload for Msg/SubmitTx -#[allow(clippy::derive_partial_eq_without_eq)] +pub struct QueryInterchainAccountFromAddressResponse { + #[prost(string, tag = "1")] + pub interchain_account_address: ::prost::alloc::string::String, +} +/// QueryInterchainAccountsWithConnectionRequest is the request type for the Query/InterchainAccountsWithConnection RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgSubmitTx { +pub struct QueryInterchainAccountsWithConnectionRequest { #[prost(string, tag = "1")] - pub owner: ::prost::alloc::string::String, - #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, - /// msgs represents the transactions to be submitted to the host chain - #[prost(message, repeated, tag = "3")] - pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// MsgSubmitTxResponse defines the response for Msg/SubmitTx -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountsWithConnection RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgSubmitTxResponse {} +pub struct QueryInterchainAccountsWithConnectionResponse { + #[prost(message, repeated, tag = "1")] + pub interchain_accounts: ::prost::alloc::vec::Vec< + cosmos_sdk_proto::ibc::applications::interchain_accounts::v1::RegisteredInterchainAccount, + >, +} /// Generated client implementations. -pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] +pub mod query_client { + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; - /// Msg defines the icaauth Msg service. + /// Query defines the gRPC querier service. #[derive(Debug, Clone)] - pub struct MsgClient { + pub struct QueryClient { inner: tonic::client::Grpc, } - impl MsgClient { + impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result where @@ -70,12 +72,12 @@ pub mod msg_client { Ok(Self::new(conn)) } } - impl MsgClient + impl QueryClient where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -88,7 +90,7 @@ pub mod msg_client { pub fn with_interceptor( inner: T, interceptor: F, - ) -> MsgClient> + ) -> QueryClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -100,9 +102,9 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { - MsgClient::new(InterceptedService::new(inner, interceptor)) + QueryClient::new(InterceptedService::new(inner, interceptor)) } /// Compress requests with the given encoding. /// @@ -135,103 +137,116 @@ pub mod msg_client { self.inner = self.inner.max_encoding_message_size(limit); self } - /// Register defines a rpc handler for MsgRegisterAccount - pub async fn register_account( + /// QueryInterchainAccountFromAddress returns the interchain account for given owner address on a given connection + pub async fn interchain_account_from_address( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryInterchainAccountFromAddressRequest, + >, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Msg/RegisterAccount", + "/gaia.icaauth.v1.Query/InterchainAccountFromAddress", ); let mut req = request.into_request(); req.extensions_mut() - .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "RegisterAccount")); + .insert( + GrpcMethod::new( + "gaia.icaauth.v1.Query", + "InterchainAccountFromAddress", + ), + ); self.inner.unary(req, path, codec).await } - /// SubmitTx defines a rpc handler for MsgSubmitTx - pub async fn submit_tx( + /// QueryInterchainAccountsWithConnection returns all the interchain accounts on a given connection + pub async fn interchain_accounts_with_connection( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryInterchainAccountsWithConnectionRequest, + >, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Msg/SubmitTx", + "/gaia.icaauth.v1.Query/InterchainAccountsWithConnection", ); let mut req = request.into_request(); req.extensions_mut() - .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "SubmitTx")); + .insert( + GrpcMethod::new( + "gaia.icaauth.v1.Query", + "InterchainAccountsWithConnection", + ), + ); self.inner.unary(req, path, codec).await } } } -/// QueryInterchainAccountFromAddressRequest is the request type for the Query/InterchainAccountAddress RPC -#[allow(clippy::derive_partial_eq_without_eq)] +/// MsgRegisterAccount defines the payload for Msg/RegisterAccount #[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountFromAddressRequest { +pub struct MsgRegisterAccount { #[prost(string, tag = "1")] pub owner: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub version: ::prost::alloc::string::String, } -/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountFromAddress RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountFromAddressResponse { - #[prost(string, tag = "1")] - pub interchain_account_address: ::prost::alloc::string::String, -} -/// QueryInterchainAccountsWithConnectionRequest is the request type for the Query/InterchainAccountsWithConnection RPC -#[allow(clippy::derive_partial_eq_without_eq)] +/// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct MsgRegisterAccountResponse {} +/// MsgSubmitTx defines the payload for Msg/SubmitTx #[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountsWithConnectionRequest { +pub struct MsgSubmitTx { #[prost(string, tag = "1")] + pub owner: ::prost::alloc::string::String, + #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, + /// msgs represents the transactions to be submitted to the host chain + #[prost(message, repeated, tag = "3")] + pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountsWithConnection RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountsWithConnectionResponse { - #[prost(message, repeated, tag = "1")] - pub interchain_accounts: ::prost::alloc::vec::Vec< - cosmos_sdk_proto::ibc::applications::interchain_accounts::v1::RegisteredInterchainAccount, - >, -} +/// MsgSubmitTxResponse defines the response for Msg/SubmitTx +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct MsgSubmitTxResponse {} /// Generated client implementations. -pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] +pub mod msg_client { + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; - /// Query defines the gRPC querier service. + /// Msg defines the icaauth Msg service. #[derive(Debug, Clone)] - pub struct QueryClient { + pub struct MsgClient { inner: tonic::client::Grpc, } - impl QueryClient { + impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result where @@ -242,12 +257,12 @@ pub mod query_client { Ok(Self::new(conn)) } } - impl QueryClient + impl MsgClient where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -260,7 +275,7 @@ pub mod query_client { pub fn with_interceptor( inner: T, interceptor: F, - ) -> QueryClient> + ) -> MsgClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -272,9 +287,9 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { - QueryClient::new(InterceptedService::new(inner, interceptor)) + MsgClient::new(InterceptedService::new(inner, interceptor)) } /// Compress requests with the given encoding. /// @@ -307,70 +322,54 @@ pub mod query_client { self.inner = self.inner.max_encoding_message_size(limit); self } - /// QueryInterchainAccountFromAddress returns the interchain account for given owner address on a given connection - pub async fn interchain_account_from_address( + /// Register defines a rpc handler for MsgRegisterAccount + pub async fn register_account( &mut self, - request: impl tonic::IntoRequest< - super::QueryInterchainAccountFromAddressRequest, - >, + request: impl tonic::IntoRequest, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Query/InterchainAccountFromAddress", + "/gaia.icaauth.v1.Msg/RegisterAccount", ); let mut req = request.into_request(); req.extensions_mut() - .insert( - GrpcMethod::new( - "gaia.icaauth.v1.Query", - "InterchainAccountFromAddress", - ), - ); + .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "RegisterAccount")); self.inner.unary(req, path, codec).await } - /// QueryInterchainAccountsWithConnection returns all the interchain accounts on a given connection - pub async fn interchain_accounts_with_connection( + /// SubmitTx defines a rpc handler for MsgSubmitTx + pub async fn submit_tx( &mut self, - request: impl tonic::IntoRequest< - super::QueryInterchainAccountsWithConnectionRequest, - >, + request: impl tonic::IntoRequest, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Query/InterchainAccountsWithConnection", + "/gaia.icaauth.v1.Msg/SubmitTx", ); let mut req = request.into_request(); req.extensions_mut() - .insert( - GrpcMethod::new( - "gaia.icaauth.v1.Query", - "InterchainAccountsWithConnection", - ), - ); + .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "SubmitTx")); self.inner.unary(req, path, codec).await } } diff --git a/cosmos_sdk_proto/Cargo.toml b/cosmos_sdk_proto/Cargo.toml index 77cac80..04e1cc2 100644 --- a/cosmos_sdk_proto/Cargo.toml +++ b/cosmos_sdk_proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmos-sdk-proto-althea" -version = "0.17.0" +version = "0.18.0" authors = [ "Justin Kilpatrick ", "Christian Borst ", diff --git a/cosmos_sdk_proto/src/prost/bech32ibc.bech32ibc.v1beta1.rs b/cosmos_sdk_proto/src/prost/bech32ibc.bech32ibc.v1beta1.rs index cd31f1c..c356f59 100644 --- a/cosmos_sdk_proto/src/prost/bech32ibc.bech32ibc.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/bech32ibc.bech32ibc.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// An HrpIbcRecord maps a bech32 human-readable prefix to an IBC source /// channel -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HrpIbcRecord { /// The bech32 human readable prefix that serves as the key @@ -14,7 +14,6 @@ pub struct HrpIbcRecord { #[prost(message, optional, tag = "4")] pub ics_to_time_offset: ::core::option::Option<::prost_types::Duration>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(string, tag = "1")] @@ -22,31 +21,45 @@ pub struct GenesisState { #[prost(message, repeated, tag = "2")] pub hrp_ibc_records: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] +/// UpdateHrpIBCRecordProposal is a gov Content type for adding a new record +/// between a bech32 prefix and an IBC (port, channel). +/// It can be used to add a new record to the set. It can also be. +/// used to update the IBC channel to associate with a specific denom. If channel +/// is set to "", it will remove the record from the set. #[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateHrpIbcChannelProposal { + #[prost(string, tag = "1")] + pub title: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub description: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub hrp: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub source_channel: ::prost::alloc::string::String, + #[prost(uint64, tag = "5")] + pub ics_to_height_offset: u64, + #[prost(message, optional, tag = "6")] + pub ics_to_time_offset: ::core::option::Option<::prost_types::Duration>, +} +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryHrpIbcRecordsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHrpIbcRecordsResponse { #[prost(message, repeated, tag = "1")] pub hrp_ibc_records: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHrpIbcRecordRequest { #[prost(string, tag = "1")] pub hrp: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHrpIbcRecordResponse { #[prost(message, optional, tag = "1")] pub hrp_ibc_record: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryNativeHrpRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNativeHrpResponse { #[prost(string, tag = "1")] @@ -54,7 +67,13 @@ pub struct QueryNativeHrpResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; #[derive(Debug, Clone)] @@ -76,8 +95,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -102,7 +121,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -149,8 +168,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -177,8 +195,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -205,8 +222,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -223,24 +239,3 @@ pub mod query_client { } } } -/// UpdateHrpIBCRecordProposal is a gov Content type for adding a new record -/// between a bech32 prefix and an IBC (port, channel). -/// It can be used to add a new record to the set. It can also be. -/// used to update the IBC channel to associate with a specific denom. If channel -/// is set to "", it will remove the record from the set. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UpdateHrpIbcChannelProposal { - #[prost(string, tag = "1")] - pub title: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub description: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub hrp: ::prost::alloc::string::String, - #[prost(string, tag = "4")] - pub source_channel: ::prost::alloc::string::String, - #[prost(uint64, tag = "5")] - pub ics_to_height_offset: u64, - #[prost(message, optional, tag = "6")] - pub ics_to_time_offset: ::core::option::Option<::prost_types::Duration>, -} diff --git a/cosmos_sdk_proto/src/prost/cosmos.auth.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.auth.v1beta1.rs index 4829e32..5c192ba 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.auth.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.auth.v1beta1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// 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, ::prost::Message)] pub struct BaseAccount { #[prost(string, tag = "1")] @@ -14,7 +14,6 @@ pub struct BaseAccount { pub sequence: u64, } /// ModuleAccount defines an account for modules that holds coins on a pool. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleAccount { #[prost(message, optional, tag = "1")] @@ -25,8 +24,7 @@ pub struct ModuleAccount { pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Params defines the parameters for the auth module. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { #[prost(uint64, tag = "1")] pub max_memo_characters: u64, @@ -40,7 +38,6 @@ pub struct Params { pub sig_verify_cost_secp256k1: u64, } /// GenesisState defines the auth module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -53,7 +50,6 @@ pub struct GenesisState { /// QueryAccountsRequest is the request type for the Query/Accounts RPC method. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountsRequest { /// pagination defines an optional pagination for the request. @@ -65,7 +61,6 @@ pub struct QueryAccountsRequest { /// 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, ::prost::Message)] pub struct QueryAccountsResponse { /// accounts are the existing accounts @@ -78,7 +73,6 @@ pub struct QueryAccountsResponse { >, } /// QueryAccountRequest is the request type for the Query/Account RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountRequest { /// address defines the address to query for. @@ -86,7 +80,6 @@ pub struct QueryAccountRequest { pub address: ::prost::alloc::string::String, } /// QueryAccountResponse is the response type for the Query/Account RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountResponse { /// account defines the account of the corresponding address. @@ -94,12 +87,10 @@ pub struct QueryAccountResponse { pub account: ::core::option::Option<::prost_types::Any>, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. #[prost(message, optional, tag = "1")] @@ -108,27 +99,23 @@ pub struct QueryParamsResponse { /// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsRequest {} /// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsResponse { #[prost(message, repeated, tag = "1")] pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>, } /// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountByNameRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } /// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountByNameResponse { #[prost(message, optional, tag = "1")] @@ -137,13 +124,11 @@ pub struct QueryModuleAccountByNameResponse { /// Bech32PrefixRequest is the request type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Bech32PrefixRequest {} /// Bech32PrefixResponse is the response type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bech32PrefixResponse { #[prost(string, tag = "1")] @@ -152,7 +137,6 @@ pub struct Bech32PrefixResponse { /// AddressBytesToStringRequest is the request type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytesToStringRequest { #[prost(bytes = "vec", tag = "1")] @@ -161,7 +145,6 @@ pub struct AddressBytesToStringRequest { /// AddressBytesToStringResponse is the response type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytesToStringResponse { #[prost(string, tag = "1")] @@ -170,7 +153,6 @@ pub struct AddressBytesToStringResponse { /// AddressStringToBytesRequest is the request type for AccountBytes rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressStringToBytesRequest { #[prost(string, tag = "1")] @@ -179,7 +161,6 @@ pub struct AddressStringToBytesRequest { /// AddressStringToBytesResponse is the response type for AddressBytes rpc method. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressStringToBytesResponse { #[prost(bytes = "vec", tag = "1")] @@ -188,8 +169,7 @@ pub struct AddressStringToBytesResponse { /// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAccountAddressByIdRequest { /// id is the account number of the address to be queried. This field /// should have been an uint64 (like all account numbers), and will be @@ -200,7 +180,6 @@ pub struct QueryAccountAddressByIdRequest { /// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountAddressByIdResponse { #[prost(string, tag = "1")] @@ -208,7 +187,13 @@ pub struct QueryAccountAddressByIdResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -231,8 +216,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -257,7 +242,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -306,8 +291,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -332,8 +316,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -360,8 +343,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -388,8 +370,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -416,8 +397,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -442,8 +422,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -472,8 +451,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -500,8 +478,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -530,8 +507,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.authz.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.authz.v1beta1.rs index 7173d3b..4796b67 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.authz.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.authz.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// 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, ::prost::Message)] pub struct GenericAuthorization { /// Msg, identified by it's type URL, to grant unrestricted permissions to execute @@ -9,7 +9,6 @@ pub struct GenericAuthorization { } /// Grant gives permissions to execute /// the provide method with expiration time. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Grant { #[prost(message, optional, tag = "1")] @@ -22,7 +21,6 @@ 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, ::prost::Message)] pub struct GrantAuthorization { #[prost(string, tag = "1")] @@ -35,22 +33,13 @@ pub struct GrantAuthorization { pub expiration: ::core::option::Option<::prost_types::Timestamp>, } /// GrantQueueItem contains the list of TypeURL of a sdk.Msg. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GrantQueueItem { /// msg_type_urls contains the list of TypeURL of a sdk.Msg. #[prost(string, repeated, tag = "1")] pub msg_type_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -/// GenesisState defines the authz module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GenesisState { - #[prost(message, repeated, tag = "1")] - pub authorization: ::prost::alloc::vec::Vec, -} /// EventGrant is emitted on Msg/Grant -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventGrant { /// Msg type URL for which an autorization is granted @@ -64,7 +53,6 @@ pub struct EventGrant { pub grantee: ::prost::alloc::string::String, } /// EventRevoke is emitted on Msg/Revoke -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRevoke { /// Msg type URL for which an autorization is revoked @@ -77,8 +65,13 @@ pub struct EventRevoke { #[prost(string, tag = "4")] pub grantee: ::prost::alloc::string::String, } +/// GenesisState defines the authz module's genesis state. +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GenesisState { + #[prost(message, repeated, tag = "1")] + pub authorization: ::prost::alloc::vec::Vec, +} /// QueryGrantsRequest is the request type for the Query/Grants RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGrantsRequest { #[prost(string, tag = "1")] @@ -95,7 +88,6 @@ pub struct QueryGrantsRequest { >, } /// QueryGrantsResponse is the response type for the Query/Authorizations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGrantsResponse { /// authorizations is a list of grants granted for grantee by granter. @@ -108,7 +100,6 @@ pub struct QueryGrantsResponse { >, } /// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranterGrantsRequest { #[prost(string, tag = "1")] @@ -120,7 +111,6 @@ pub struct QueryGranterGrantsRequest { >, } /// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranterGrantsResponse { /// grants is a list of grants granted by the granter. @@ -133,7 +123,6 @@ pub struct QueryGranterGrantsResponse { >, } /// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranteeGrantsRequest { #[prost(string, tag = "1")] @@ -145,7 +134,6 @@ pub struct QueryGranteeGrantsRequest { >, } /// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranteeGrantsResponse { /// grants is a list of grants granted to the grantee. @@ -159,7 +147,13 @@ pub struct QueryGranteeGrantsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -182,8 +176,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -208,7 +202,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -255,8 +249,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -283,8 +276,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -311,8 +303,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -329,7 +320,6 @@ pub mod query_client { } /// 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, ::prost::Message)] pub struct MsgGrant { #[prost(string, tag = "1")] @@ -340,7 +330,6 @@ pub struct MsgGrant { pub grant: ::core::option::Option, } /// MsgExecResponse defines the Msg/MsgExecResponse response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecResponse { #[prost(bytes = "vec", repeated, tag = "1")] @@ -349,7 +338,6 @@ pub struct MsgExecResponse { /// 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, ::prost::Message)] pub struct MsgExec { #[prost(string, tag = "1")] @@ -361,12 +349,10 @@ pub struct MsgExec { pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } /// MsgGrantResponse defines the Msg/MsgGrant response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgGrantResponse {} /// MsgRevoke revokes any authorization with the provided sdk.Msg type on the /// granter's account with that has been granted to the grantee. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevoke { #[prost(string, tag = "1")] @@ -377,12 +363,17 @@ pub struct MsgRevoke { pub msg_type_url: ::prost::alloc::string::String, } /// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRevokeResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the authz Msg service. @@ -405,8 +396,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -431,7 +422,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -481,8 +472,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -509,8 +499,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -536,8 +525,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.bank.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.bank.v1beta1.rs index 58b24a7..e969cbd 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.bank.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.bank.v1beta1.rs @@ -1,15 +1,14 @@ +// This file is @generated by prost-build. /// 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, ::prost::Message)] pub struct SendAuthorization { #[prost(message, repeated, tag = "1")] pub spend_limit: ::prost::alloc::vec::Vec, } /// Params defines the parameters for the bank module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(message, repeated, tag = "1")] @@ -19,7 +18,6 @@ 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, ::prost::Message)] pub struct SendEnabled { #[prost(string, tag = "1")] @@ -28,7 +26,6 @@ pub struct SendEnabled { pub enabled: bool, } /// Input models transaction input. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Input { #[prost(string, tag = "1")] @@ -37,7 +34,6 @@ pub struct Input { pub coins: ::prost::alloc::vec::Vec, } /// Output models transaction outputs. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Output { #[prost(string, tag = "1")] @@ -48,7 +44,6 @@ pub struct Output { /// Supply represents a struct that passively keeps track of the total supply /// 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, ::prost::Message)] pub struct Supply { #[prost(message, repeated, tag = "1")] @@ -56,7 +51,6 @@ 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, ::prost::Message)] pub struct DenomUnit { /// denom represents the string name of the given denom unit (e.g uatom). @@ -75,7 +69,6 @@ pub struct DenomUnit { } /// Metadata represents a struct that describes /// a basic token. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { #[prost(string, tag = "1")] @@ -114,7 +107,6 @@ pub struct Metadata { pub uri_hash: ::prost::alloc::string::String, } /// GenesisState defines the bank module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -133,7 +125,6 @@ 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, ::prost::Message)] pub struct Balance { /// address is the address of the balance holder. @@ -144,7 +135,6 @@ pub struct Balance { pub coins: ::prost::alloc::vec::Vec, } /// QueryBalanceRequest is the request type for the Query/Balance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceRequest { /// address is the address to query balances for. @@ -155,7 +145,6 @@ pub struct QueryBalanceRequest { pub denom: ::prost::alloc::string::String, } /// QueryBalanceResponse is the response type for the Query/Balance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceResponse { /// balance is the balance of the coin. @@ -163,7 +152,6 @@ pub struct QueryBalanceResponse { pub balance: ::core::option::Option, } /// QueryBalanceRequest is the request type for the Query/AllBalances RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllBalancesRequest { /// address is the address to query balances for. @@ -177,7 +165,6 @@ pub struct QueryAllBalancesRequest { } /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllBalancesResponse { /// balances is the balances of all the coins. @@ -193,7 +180,6 @@ pub struct QueryAllBalancesResponse { /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalancesRequest { /// address is the address to query spendable balances for. @@ -209,7 +195,6 @@ pub struct QuerySpendableBalancesRequest { /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalancesResponse { /// balances is the spendable balances of all the coins. @@ -223,7 +208,6 @@ pub struct QuerySpendableBalancesResponse { } /// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalSupplyRequest { /// pagination defines an optional pagination for the request. @@ -236,7 +220,6 @@ pub struct QueryTotalSupplyRequest { } /// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalSupplyResponse { /// supply is the supply of the coins @@ -251,7 +234,6 @@ pub struct QueryTotalSupplyResponse { >, } /// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyOfRequest { /// denom is the coin denom to query balances for. @@ -259,7 +241,6 @@ pub struct QuerySupplyOfRequest { pub denom: ::prost::alloc::string::String, } /// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyOfResponse { /// amount is the supply of the coin. @@ -267,18 +248,15 @@ pub struct QuerySupplyOfResponse { pub amount: ::core::option::Option, } /// QueryParamsRequest defines the request type for querying x/bank parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse defines the response type for querying x/bank parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } /// QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomsMetadataRequest { /// pagination defines an optional pagination for the request. @@ -289,7 +267,6 @@ pub struct QueryDenomsMetadataRequest { } /// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomsMetadataResponse { /// metadata provides the client information for all the registered tokens. @@ -302,7 +279,6 @@ pub struct QueryDenomsMetadataResponse { >, } /// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataRequest { /// denom is the coin denom to query the metadata for. @@ -311,7 +287,6 @@ pub struct QueryDenomMetadataRequest { } /// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataResponse { /// metadata describes and provides all the client information for the requested token. @@ -321,7 +296,6 @@ pub struct QueryDenomMetadataResponse { /// QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, /// which queries for a paginated set of all account holders of a particular /// denomination. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomOwnersRequest { /// denom defines the coin denomination to query all account holders for. @@ -338,7 +312,6 @@ pub struct QueryDenomOwnersRequest { /// balance of the denominated token. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenomOwner { /// address defines the address that owns a particular denomination. @@ -351,7 +324,6 @@ pub struct DenomOwner { /// QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomOwnersResponse { #[prost(message, repeated, tag = "1")] @@ -364,7 +336,13 @@ pub struct QueryDenomOwnersResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -387,8 +365,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -413,7 +391,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -460,8 +438,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -486,8 +463,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -515,8 +491,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -543,8 +518,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -569,8 +543,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -595,8 +568,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -621,8 +593,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -648,8 +619,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -677,8 +647,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -694,7 +663,6 @@ pub mod query_client { } } /// MsgSend represents a message to send coins from one account to another. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSend { #[prost(string, tag = "1")] @@ -705,11 +673,9 @@ pub struct MsgSend { pub amount: ::prost::alloc::vec::Vec, } /// MsgSendResponse defines the Msg/Send response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSendResponse {} /// MsgMultiSend represents an arbitrary multi-in, multi-out send message. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMultiSend { #[prost(message, repeated, tag = "1")] @@ -718,12 +684,17 @@ pub struct MsgMultiSend { pub outputs: ::prost::alloc::vec::Vec, } /// MsgMultiSendResponse defines the Msg/MultiSend response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgMultiSendResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the bank Msg service. @@ -746,8 +717,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -772,7 +743,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -819,8 +790,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -845,8 +815,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.abci.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.abci.v1beta1.rs index 2daa362..cb69f46 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.abci.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.abci.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// TxResponse defines a structure containing relevant tx data and metadata. The /// tags are stringified and the log is JSON decoded. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxResponse { /// The block height @@ -54,7 +54,6 @@ pub struct TxResponse { >, } /// ABCIMessageLog defines a structure containing an indexed tx ABCI message log. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciMessageLog { #[prost(uint32, tag = "1")] @@ -68,7 +67,6 @@ pub struct AbciMessageLog { } /// StringEvent defines en Event object wrapper where all the attributes /// contain key/value pairs that are strings instead of raw bytes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StringEvent { #[prost(string, tag = "1")] @@ -78,7 +76,6 @@ pub struct StringEvent { } /// Attribute defines an attribute wrapper where the key and value are /// strings instead of raw bytes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Attribute { #[prost(string, tag = "1")] @@ -87,8 +84,7 @@ pub struct Attribute { pub value: ::prost::alloc::string::String, } /// GasInfo defines tx execution gas context. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GasInfo { /// GasWanted is the maximum units of work we allow this tx to perform. #[prost(uint64, tag = "1")] @@ -98,7 +94,6 @@ pub struct GasInfo { pub gas_used: u64, } /// Result is the union of ResponseFormat and ResponseCheckTx. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { /// Data is any data returned from message or handler execution. It MUST be @@ -125,7 +120,6 @@ pub struct Result { } /// SimulationResponse defines the response generated when a transaction is /// successfully simulated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulationResponse { #[prost(message, optional, tag = "1")] @@ -135,7 +129,6 @@ pub struct SimulationResponse { } /// MsgData defines the data returned in a Result object during message /// execution. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgData { #[prost(string, tag = "1")] @@ -145,7 +138,6 @@ pub struct MsgData { } /// TxMsgData defines a list of MsgData. A transaction will have a MsgData object /// for each message. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxMsgData { /// data field is deprecated and not populated. @@ -159,7 +151,6 @@ pub struct TxMsgData { pub msg_responses: ::prost::alloc::vec::Vec<::prost_types::Any>, } /// SearchTxsResult defines a structure for querying txs pageable -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchTxsResult { /// Count of all txs diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.kv.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.kv.v1beta1.rs index 60bda62..d7c336b 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.kv.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.kv.v1beta1.rs @@ -1,12 +1,11 @@ +// This file is @generated by prost-build. /// Pairs defines a repeated slice of Pair objects. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pairs { #[prost(message, repeated, tag = "1")] pub pairs: ::prost::alloc::vec::Vec, } /// Pair defines a key/value bytes tuple. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pair { #[prost(bytes = "vec", tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.node.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.node.v1beta1.rs index b0ef466..d245811 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.node.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.node.v1beta1.rs @@ -1,9 +1,8 @@ +// This file is @generated by prost-build. /// ConfigRequest defines the request structure for the Config gRPC query. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ConfigRequest {} /// ConfigResponse defines the response structure for the Config gRPC query. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigResponse { #[prost(string, tag = "1")] @@ -11,7 +10,13 @@ pub struct ConfigResponse { } /// Generated client implementations. pub mod service_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Service defines the gRPC querier service for node related queries. @@ -34,8 +39,8 @@ pub mod service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -60,7 +65,7 @@ pub mod service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { ServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -104,8 +109,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.query.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.query.v1beta1.rs index 260b7ad..22ce08b 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.query.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.query.v1beta1.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. /// PageRequest is to be embedded in gRPC request messages for efficient /// pagination. Ex: /// @@ -5,7 +6,6 @@ /// Foo some_parameter = 1; /// PageRequest pagination = 2; /// } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PageRequest { /// key is a value returned in PageResponse.next_key to begin @@ -41,7 +41,6 @@ pub struct PageRequest { /// repeated Bar results = 1; /// PageResponse page = 2; /// } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PageResponse { /// next_key is the key to be passed to PageRequest.key to diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v1beta1.rs index 580c91f..c896e9c 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v1beta1.rs @@ -1,9 +1,8 @@ +// This file is @generated by prost-build. /// ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ListAllInterfacesRequest {} /// ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAllInterfacesResponse { /// interface_names is an array of all the registered interfaces. @@ -12,7 +11,6 @@ pub struct ListAllInterfacesResponse { } /// ListImplementationsRequest is the request type of the ListImplementations /// RPC. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListImplementationsRequest { /// interface_name defines the interface to query the implementations for. @@ -21,7 +19,6 @@ pub struct ListImplementationsRequest { } /// ListImplementationsResponse is the response type of the ListImplementations /// RPC. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListImplementationsResponse { #[prost(string, repeated, tag = "1")] @@ -31,7 +28,13 @@ pub struct ListImplementationsResponse { } /// Generated client implementations. pub mod reflection_service_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// ReflectionService defines a service for interface reflection. @@ -54,8 +57,8 @@ pub mod reflection_service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -80,7 +83,7 @@ pub mod reflection_service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { ReflectionServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -128,8 +131,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -160,8 +162,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v2alpha1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v2alpha1.rs index b50bcc8..6869705 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v2alpha1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.reflection.v2alpha1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// AppDescriptor describes a cosmos-sdk based application -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AppDescriptor { /// AuthnDescriptor provides information on how to authenticate transactions on the application @@ -23,7 +23,6 @@ pub struct AppDescriptor { pub tx: ::core::option::Option, } /// TxDescriptor describes the accepted transaction type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDescriptor { /// fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) @@ -37,7 +36,6 @@ pub struct TxDescriptor { } /// AuthnDescriptor provides information on how to sign transactions without relying /// on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthnDescriptor { /// sign_modes defines the supported signature algorithm @@ -48,7 +46,6 @@ pub struct AuthnDescriptor { /// NOTE(fdymylja): here we could go as far as providing an entire flow on how /// to sign a message given a SigningModeDescriptor, but it's better to think about /// this another time -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningModeDescriptor { /// name defines the unique name of the signing mode @@ -63,7 +60,6 @@ pub struct SigningModeDescriptor { pub authn_info_provider_method_fullname: ::prost::alloc::string::String, } /// ChainDescriptor describes chain information of the application -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainDescriptor { /// id is the chain id @@ -71,7 +67,6 @@ pub struct ChainDescriptor { pub id: ::prost::alloc::string::String, } /// CodecDescriptor describes the registered interfaces and provides metadata information on the types -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CodecDescriptor { /// interfaces is a list of the registerted interfaces descriptors @@ -79,7 +74,6 @@ pub struct CodecDescriptor { pub interfaces: ::prost::alloc::vec::Vec, } /// InterfaceDescriptor describes the implementation of an interface -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceDescriptor { /// fullname is the name of the interface @@ -96,7 +90,6 @@ pub struct InterfaceDescriptor { pub interface_implementers: ::prost::alloc::vec::Vec, } /// InterfaceImplementerDescriptor describes an interface implementer -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceImplementerDescriptor { /// fullname is the protobuf queryable name of the interface implementer @@ -111,7 +104,6 @@ pub struct InterfaceImplementerDescriptor { } /// InterfaceAcceptingMessageDescriptor describes a protobuf message which contains /// an interface represented as a google.protobuf.Any -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceAcceptingMessageDescriptor { /// fullname is the protobuf fullname of the type containing the interface @@ -124,7 +116,6 @@ pub struct InterfaceAcceptingMessageDescriptor { pub field_descriptor_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// ConfigurationDescriptor contains metadata information on the sdk.Config -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigurationDescriptor { /// bech32_account_address_prefix is the account address prefix @@ -132,7 +123,6 @@ pub struct ConfigurationDescriptor { pub bech32_account_address_prefix: ::prost::alloc::string::String, } /// MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDescriptor { /// msg_type_url contains the TypeURL of a sdk.Msg. @@ -140,11 +130,9 @@ pub struct MsgDescriptor { pub msg_type_url: ::prost::alloc::string::String, } /// GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetAuthnDescriptorRequest {} /// GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAuthnDescriptorResponse { /// authn describes how to authenticate to the application when sending transactions @@ -152,11 +140,9 @@ pub struct GetAuthnDescriptorResponse { pub authn: ::core::option::Option, } /// GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetChainDescriptorRequest {} /// GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetChainDescriptorResponse { /// chain describes application chain information @@ -164,11 +150,9 @@ pub struct GetChainDescriptorResponse { pub chain: ::core::option::Option, } /// GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetCodecDescriptorRequest {} /// GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetCodecDescriptorResponse { /// codec describes the application codec such as registered interfaces and implementations @@ -176,11 +160,9 @@ pub struct GetCodecDescriptorResponse { pub codec: ::core::option::Option, } /// GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetConfigurationDescriptorRequest {} /// GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetConfigurationDescriptorResponse { /// config describes the application's sdk.Config @@ -188,11 +170,9 @@ pub struct GetConfigurationDescriptorResponse { pub config: ::core::option::Option, } /// GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetQueryServicesDescriptorRequest {} /// GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetQueryServicesDescriptorResponse { /// queries provides information on the available queryable services @@ -200,11 +180,9 @@ pub struct GetQueryServicesDescriptorResponse { pub queries: ::core::option::Option, } /// GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetTxDescriptorRequest {} /// GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxDescriptorResponse { /// tx provides information on msgs that can be forwarded to the application @@ -213,7 +191,6 @@ pub struct GetTxDescriptorResponse { pub tx: ::core::option::Option, } /// QueryServicesDescriptor contains the list of cosmos-sdk queriable services -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryServicesDescriptor { /// query_services is a list of cosmos-sdk QueryServiceDescriptor @@ -221,7 +198,6 @@ pub struct QueryServicesDescriptor { pub query_services: ::prost::alloc::vec::Vec, } /// QueryServiceDescriptor describes a cosmos-sdk queryable service -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryServiceDescriptor { /// fullname is the protobuf fullname of the service descriptor @@ -237,7 +213,6 @@ pub struct QueryServiceDescriptor { /// QueryMethodDescriptor describes a queryable method of a query service /// no other info is provided beside method name and tendermint queryable path /// because it would be redundant with the grpc reflection service -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMethodDescriptor { /// name is the protobuf name (not fullname) of the method @@ -250,7 +225,13 @@ pub struct QueryMethodDescriptor { } /// Generated client implementations. pub mod reflection_service_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// ReflectionService defines a service for application reflection. @@ -273,8 +254,8 @@ pub mod reflection_service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -299,7 +280,7 @@ pub mod reflection_service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { ReflectionServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -348,8 +329,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -379,8 +359,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -410,8 +389,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -441,8 +419,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -472,8 +449,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -503,8 +479,7 @@ pub mod reflection_service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.snapshots.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.snapshots.v1beta1.rs index 00f64ea..0d70c29 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.snapshots.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.snapshots.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Snapshot contains Tendermint state sync snapshot info. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Snapshot { #[prost(uint64, tag = "1")] @@ -14,7 +14,6 @@ pub struct Snapshot { pub metadata: ::core::option::Option, } /// Metadata contains SDK-specific snapshot metadata. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { /// SHA-256 chunk hashes @@ -24,7 +23,6 @@ pub struct Metadata { /// SnapshotItem is an item contained in a rootmulti.Store snapshot. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotItem { /// item is the specific type of snapshot item. @@ -34,7 +32,6 @@ pub struct SnapshotItem { /// Nested message and enum types in `SnapshotItem`. pub mod snapshot_item { /// item is the specific type of snapshot item. - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Item { #[prost(message, tag = "1")] @@ -54,7 +51,6 @@ pub mod snapshot_item { /// SnapshotStoreItem contains metadata about a snapshotted store. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotStoreItem { #[prost(string, tag = "1")] @@ -63,7 +59,6 @@ pub struct SnapshotStoreItem { /// SnapshotIAVLItem is an exported IAVL node. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotIavlItem { #[prost(bytes = "vec", tag = "1")] @@ -80,7 +75,6 @@ pub struct SnapshotIavlItem { /// SnapshotExtensionMeta contains metadata about an external snapshotter. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotExtensionMeta { #[prost(string, tag = "1")] @@ -91,7 +85,6 @@ pub struct SnapshotExtensionMeta { /// SnapshotExtensionPayload contains payloads of an external snapshotter. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotExtensionPayload { #[prost(bytes = "vec", tag = "1")] @@ -100,7 +93,6 @@ pub struct SnapshotExtensionPayload { /// SnapshotKVItem is an exported Key/Value Pair /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotKvItem { #[prost(bytes = "vec", tag = "1")] @@ -111,7 +103,6 @@ pub struct SnapshotKvItem { /// SnapshotSchema is an exported schema of smt store /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotSchema { #[prost(bytes = "vec", repeated, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.store.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.store.v1beta1.rs index b773b78..e195c3d 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.store.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.store.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// CommitInfo defines commit information used by the multi-store when committing /// a version/height. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitInfo { #[prost(int64, tag = "1")] @@ -10,7 +10,6 @@ pub struct CommitInfo { } /// StoreInfo defines store-specific commit information. It contains a reference /// between a store name and the commit ID. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreInfo { #[prost(string, tag = "1")] @@ -20,7 +19,6 @@ pub struct StoreInfo { } /// CommitID defines the committment information when a specific store is /// committed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitId { #[prost(int64, tag = "1")] @@ -33,7 +31,6 @@ pub struct CommitId { /// Deletes /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreKvPair { /// the store key for the KVStore this pair originates from @@ -49,7 +46,6 @@ pub struct StoreKvPair { } /// BlockMetadata contains all the abci event data of a block /// the file streamer dump them into files together with the state changes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockMetadata { #[prost(message, optional, tag = "1")] @@ -78,7 +74,6 @@ pub struct BlockMetadata { /// Nested message and enum types in `BlockMetadata`. pub mod block_metadata { /// DeliverTx encapulate deliver tx request and response. - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeliverTx { #[prost(message, optional, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.tendermint.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.tendermint.v1beta1.rs index c27c6ea..33f4f4a 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.tendermint.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.tendermint.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// Block is tendermint type Block, with the Header proposer address /// field converted to bech32 string. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Block { #[prost(message, optional, tag = "1")] @@ -19,7 +19,6 @@ pub struct Block { >, } /// Header defines the structure of a Tendermint block header. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { /// basic block info @@ -78,7 +77,6 @@ pub struct Header { } /// GetValidatorSetByHeightRequest is the request type for the /// Query/GetValidatorSetByHeight RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetValidatorSetByHeightRequest { #[prost(int64, tag = "1")] @@ -89,7 +87,6 @@ pub struct GetValidatorSetByHeightRequest { } /// GetValidatorSetByHeightResponse is the response type for the /// Query/GetValidatorSetByHeight RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetValidatorSetByHeightResponse { #[prost(int64, tag = "1")] @@ -102,7 +99,6 @@ pub struct GetValidatorSetByHeightResponse { } /// GetLatestValidatorSetRequest is the request type for the /// Query/GetValidatorSetByHeight RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestValidatorSetRequest { /// pagination defines an pagination for the request. @@ -111,7 +107,6 @@ pub struct GetLatestValidatorSetRequest { } /// GetLatestValidatorSetResponse is the response type for the /// Query/GetValidatorSetByHeight RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestValidatorSetResponse { #[prost(int64, tag = "1")] @@ -123,7 +118,6 @@ pub struct GetLatestValidatorSetResponse { pub pagination: ::core::option::Option, } /// Validator is the type for the validator-set. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validator { #[prost(string, tag = "1")] @@ -137,15 +131,13 @@ pub struct Validator { } /// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetBlockByHeightRequest { #[prost(int64, tag = "1")] pub height: i64, } /// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockByHeightResponse { #[prost(message, optional, tag = "1")] @@ -163,12 +155,10 @@ pub struct GetBlockByHeightResponse { } /// GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetLatestBlockRequest {} /// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestBlockResponse { #[prost(message, optional, tag = "1")] @@ -185,23 +175,19 @@ pub struct GetLatestBlockResponse { pub sdk_block: ::core::option::Option, } /// GetSyncingRequest is the request type for the Query/GetSyncing RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetSyncingRequest {} /// GetSyncingResponse is the response type for the Query/GetSyncing RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetSyncingResponse { #[prost(bool, tag = "1")] pub syncing: bool, } /// GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetNodeInfoRequest {} /// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNodeInfoResponse { #[prost(message, optional, tag = "1")] @@ -212,7 +198,6 @@ pub struct GetNodeInfoResponse { pub application_version: ::core::option::Option, } /// VersionInfo is the type for the GetNodeInfoResponse message. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VersionInfo { #[prost(string, tag = "1")] @@ -234,7 +219,6 @@ pub struct VersionInfo { pub cosmos_sdk_version: ::prost::alloc::string::String, } /// Module is the type for VersionInfo -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { /// module path @@ -248,7 +232,6 @@ pub struct Module { pub sum: ::prost::alloc::string::String, } /// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciQueryRequest { #[prost(bytes = "vec", tag = "1")] @@ -265,7 +248,6 @@ pub struct AbciQueryRequest { /// /// Note: This type is a duplicate of the ResponseQuery proto type defined in /// Tendermint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciQueryResponse { #[prost(uint32, tag = "1")] @@ -295,7 +277,6 @@ pub struct AbciQueryResponse { /// /// Note: This type is a duplicate of the ProofOp proto type defined in /// Tendermint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOp { #[prost(string, tag = "1")] @@ -309,7 +290,6 @@ pub struct ProofOp { /// /// Note: This type is a duplicate of the ProofOps proto type defined in /// Tendermint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOps { #[prost(message, repeated, tag = "1")] @@ -317,7 +297,13 @@ pub struct ProofOps { } /// Generated client implementations. pub mod service_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Service defines the gRPC querier service for tendermint queries. @@ -340,8 +326,8 @@ pub mod service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -366,7 +352,7 @@ pub mod service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { ServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -413,8 +399,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -444,8 +429,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -475,8 +459,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -506,8 +489,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -537,8 +519,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -568,8 +549,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -603,8 +583,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.base.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.base.v1beta1.rs index 325bf8d..6ad54b9 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.base.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.base.v1beta1.rs @@ -1,8 +1,8 @@ +// This file is @generated by prost-build. /// 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, ::prost::Message)] pub struct Coin { #[prost(string, tag = "1")] @@ -14,7 +14,6 @@ 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, ::prost::Message)] pub struct DecCoin { #[prost(string, tag = "1")] @@ -23,14 +22,12 @@ pub struct DecCoin { pub amount: ::prost::alloc::string::String, } /// IntProto defines a Protobuf wrapper around an Int object. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IntProto { #[prost(string, tag = "1")] pub int: ::prost::alloc::string::String, } /// DecProto defines a Protobuf wrapper around a Dec object. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DecProto { #[prost(string, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.capability.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.capability.v1beta1.rs index ca0fad0..7a9eace 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.capability.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.capability.v1beta1.rs @@ -1,14 +1,13 @@ +// This file is @generated by prost-build. /// Capability defines an implementation of an object capability. The index /// provided to a Capability must be globally unique. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Capability { #[prost(uint64, tag = "1")] pub index: u64, } /// Owner defines a single capability owner. An owner is defined by the name of /// capability and the module name. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Owner { #[prost(string, tag = "1")] @@ -18,14 +17,12 @@ pub struct Owner { } /// CapabilityOwners defines a set of owners of a single Capability. The set of /// owners must be unique. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CapabilityOwners { #[prost(message, repeated, tag = "1")] pub owners: ::prost::alloc::vec::Vec, } /// GenesisOwners defines the capability owners with their corresponding index. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisOwners { /// index is the index of the capability owner. @@ -36,7 +33,6 @@ pub struct GenesisOwners { pub index_owners: ::core::option::Option, } /// GenesisState defines the capability module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// index is the capability global index. diff --git a/cosmos_sdk_proto/src/prost/cosmos.crisis.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.crisis.v1beta1.rs index 5e2f5ce..1acfc7c 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crisis.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crisis.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState defines the crisis module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// constant_fee is the fee used to verify the invariant in the crisis @@ -8,7 +8,6 @@ pub struct GenesisState { pub constant_fee: ::core::option::Option, } /// MsgVerifyInvariant represents a message to verify a particular invariance. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVerifyInvariant { #[prost(string, tag = "1")] @@ -19,12 +18,17 @@ pub struct MsgVerifyInvariant { pub invariant_route: ::prost::alloc::string::String, } /// MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgVerifyInvariantResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the bank Msg service. @@ -47,8 +51,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -73,7 +77,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -120,8 +124,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.ed25519.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.ed25519.rs index 99620e3..5def23d 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.ed25519.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.ed25519.rs @@ -1,9 +1,9 @@ +// This file is @generated by prost-build. /// PubKey is an ed25519 public key for handling Tendermint keys in SDK. /// It's needed for Any serialization and SDK compatibility. /// It must not be used in a non Tendermint key context because it doesn't implement /// ADR-28. Nevertheless, you will like to use ed25519 in app user level /// then you must create a new proto message and follow ADR-28 for Address construction. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { #[prost(bytes = "vec", tag = "1")] @@ -11,7 +11,6 @@ pub struct PubKey { } /// Deprecated: PrivKey defines a ed25519 private key. /// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.hd.v1.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.hd.v1.rs index 65fdd3f..1bddb5e 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.hd.v1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.hd.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// BIP44Params is used as path field in ledger item in Record. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Bip44Params { /// purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation #[prost(uint32, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.keyring.v1.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.keyring.v1.rs index 814fd84..ac683ad 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.keyring.v1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.keyring.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Record is used for representing a key in the keyring. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Record { /// name represents a name of Record @@ -16,29 +16,24 @@ pub struct Record { pub mod record { /// Item is a keyring item stored in a keyring backend. /// Local item - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Local { #[prost(message, optional, tag = "1")] pub priv_key: ::core::option::Option<::prost_types::Any>, } /// Ledger item - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Ledger { #[prost(message, optional, tag = "1")] pub path: ::core::option::Option, } /// Multi item - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Multi {} /// Offline item - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Offline {} /// Record contains one of the following items - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Item { /// local stores the private key locally. diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.rs index 0bc4a21..846002b 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// LegacyAminoPubKey specifies a public key type /// which nests multiple public keys and a threshold, /// it uses legacy amino address rules. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LegacyAminoPubKey { #[prost(uint32, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.v1beta1.rs index c245db9..ce07f8c 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.multisig.v1beta1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. /// See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers /// signed and with which modes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MultiSignature { #[prost(bytes = "vec", repeated, tag = "1")] @@ -11,7 +11,6 @@ pub struct MultiSignature { /// This is used to ensure that the encoded data takes up a minimal amount of /// space after proto encoding. /// This is not thread safe, and is not intended for concurrent usage. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompactBitArray { #[prost(uint32, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256k1.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256k1.rs index 9c8f647..d8b6b8c 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256k1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256k1.rs @@ -1,16 +1,15 @@ +// This file is @generated by prost-build. /// PubKey defines a secp256k1 public key /// Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte /// if the y-coordinate is the lexicographically largest of the two associated with /// the x-coordinate. Otherwise the first byte is a 0x03. /// This prefix is followed with the x-coordinate. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } /// PrivKey defines a secp256k1 private key. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256r1.rs b/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256r1.rs index ee82db1..a6e2d16 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256r1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.crypto.secp256r1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// PubKey defines a secp256r1 ECDSA public key. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { /// Point on secp256r1 curve in a compressed representation as specified in section @@ -8,7 +8,6 @@ pub struct PubKey { pub key: ::prost::alloc::vec::Vec, } /// PrivKey defines a secp256r1 ECDSA private key. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { /// secret number serialized using big-endian encoding diff --git a/cosmos_sdk_proto/src/prost/cosmos.distribution.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.distribution.v1beta1.rs index 2f396ac..7d8a3af 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.distribution.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.distribution.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Params defines the set of params for the distribution module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(string, tag = "1")] @@ -23,7 +23,6 @@ pub struct Params { /// + number of slashes which ended the associated period (and might need to /// read that record) /// + one per validator for the zeroeth period, set on initialization -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorHistoricalRewards { #[prost(message, repeated, tag = "1")] @@ -36,7 +35,6 @@ pub struct ValidatorHistoricalRewards { /// ValidatorCurrentRewards represents current rewards and current /// 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, ::prost::Message)] pub struct ValidatorCurrentRewards { #[prost(message, repeated, tag = "1")] @@ -46,7 +44,6 @@ 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, ::prost::Message)] pub struct ValidatorAccumulatedCommission { #[prost(message, repeated, tag = "1")] @@ -54,7 +51,6 @@ 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, ::prost::Message)] pub struct ValidatorOutstandingRewards { #[prost(message, repeated, tag = "1")] @@ -64,7 +60,6 @@ pub struct ValidatorOutstandingRewards { /// Height is implicit within the store key. /// 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, ::prost::Message)] pub struct ValidatorSlashEvent { #[prost(uint64, tag = "1")] @@ -73,14 +68,12 @@ pub struct ValidatorSlashEvent { pub fraction: ::prost::alloc::string::String, } /// ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct FeePool { #[prost(message, repeated, tag = "1")] @@ -89,7 +82,6 @@ pub struct FeePool { /// CommunityPoolSpendProposal details a proposal for use of community funds, /// together with how many coins are proposed to be spent, and to which /// recipient account. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommunityPoolSpendProposal { #[prost(string, tag = "1")] @@ -107,7 +99,6 @@ pub struct CommunityPoolSpendProposal { /// occurred). NOTE: Even though validators are slashed to whole staking tokens, /// 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, ::prost::Message)] pub struct DelegatorStartingInfo { #[prost(uint64, tag = "1")] @@ -119,7 +110,6 @@ pub struct DelegatorStartingInfo { } /// DelegationDelegatorReward represents the properties /// of a delegator's delegation reward. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegationDelegatorReward { #[prost(string, tag = "1")] @@ -129,7 +119,6 @@ pub struct DelegationDelegatorReward { } /// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal /// with a deposit -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommunityPoolSpendProposalWithDeposit { #[prost(string, tag = "1")] @@ -146,7 +135,6 @@ pub struct CommunityPoolSpendProposalWithDeposit { /// DelegatorWithdrawInfo is the address for where distributions rewards are /// 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, ::prost::Message)] pub struct DelegatorWithdrawInfo { /// delegator_address is the address of the delegator. @@ -157,7 +145,6 @@ pub struct DelegatorWithdrawInfo { pub withdraw_address: ::prost::alloc::string::String, } /// ValidatorOutstandingRewardsRecord is used for import/export via genesis json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorOutstandingRewardsRecord { /// validator_address is the address of the validator. @@ -171,7 +158,6 @@ pub struct ValidatorOutstandingRewardsRecord { } /// ValidatorAccumulatedCommissionRecord is used for import / export via genesis /// json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorAccumulatedCommissionRecord { /// validator_address is the address of the validator. @@ -183,7 +169,6 @@ pub struct ValidatorAccumulatedCommissionRecord { } /// ValidatorHistoricalRewardsRecord is used for import / export via genesis /// json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorHistoricalRewardsRecord { /// validator_address is the address of the validator. @@ -197,7 +182,6 @@ pub struct ValidatorHistoricalRewardsRecord { pub rewards: ::core::option::Option, } /// ValidatorCurrentRewardsRecord is used for import / export via genesis json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorCurrentRewardsRecord { /// validator_address is the address of the validator. @@ -208,7 +192,6 @@ pub struct ValidatorCurrentRewardsRecord { pub rewards: ::core::option::Option, } /// DelegatorStartingInfoRecord used for import / export via genesis json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegatorStartingInfoRecord { /// delegator_address is the address of the delegator. @@ -222,7 +205,6 @@ pub struct DelegatorStartingInfoRecord { pub starting_info: ::core::option::Option, } /// ValidatorSlashEventRecord is used for import / export via genesis json. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSlashEventRecord { /// validator_address is the address of the validator. @@ -239,7 +221,6 @@ pub struct ValidatorSlashEventRecord { pub validator_slash_event: ::core::option::Option, } /// GenesisState defines the distribution module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of the module. @@ -280,11 +261,9 @@ pub struct GenesisState { pub validator_slash_events: ::prost::alloc::vec::Vec, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -293,7 +272,6 @@ pub struct QueryParamsResponse { } /// QueryValidatorOutstandingRewardsRequest is the request type for the /// Query/ValidatorOutstandingRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorOutstandingRewardsRequest { /// validator_address defines the validator address to query for. @@ -302,7 +280,6 @@ pub struct QueryValidatorOutstandingRewardsRequest { } /// QueryValidatorOutstandingRewardsResponse is the response type for the /// Query/ValidatorOutstandingRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorOutstandingRewardsResponse { #[prost(message, optional, tag = "1")] @@ -310,7 +287,6 @@ pub struct QueryValidatorOutstandingRewardsResponse { } /// QueryValidatorCommissionRequest is the request type for the /// Query/ValidatorCommission RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorCommissionRequest { /// validator_address defines the validator address to query for. @@ -319,7 +295,6 @@ pub struct QueryValidatorCommissionRequest { } /// QueryValidatorCommissionResponse is the response type for the /// Query/ValidatorCommission RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorCommissionResponse { /// commission defines the commision the validator received. @@ -328,7 +303,6 @@ pub struct QueryValidatorCommissionResponse { } /// QueryValidatorSlashesRequest is the request type for the /// Query/ValidatorSlashes RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorSlashesRequest { /// validator_address defines the validator address to query for. @@ -348,7 +322,6 @@ pub struct QueryValidatorSlashesRequest { } /// QueryValidatorSlashesResponse is the response type for the /// Query/ValidatorSlashes RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorSlashesResponse { /// slashes defines the slashes the validator received. @@ -362,7 +335,6 @@ pub struct QueryValidatorSlashesResponse { } /// QueryDelegationRewardsRequest is the request type for the /// Query/DelegationRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRewardsRequest { /// delegator_address defines the delegator address to query for. @@ -374,7 +346,6 @@ pub struct QueryDelegationRewardsRequest { } /// QueryDelegationRewardsResponse is the response type for the /// Query/DelegationRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRewardsResponse { /// rewards defines the rewards accrued by a delegation. @@ -383,7 +354,6 @@ pub struct QueryDelegationRewardsResponse { } /// QueryDelegationTotalRewardsRequest is the request type for the /// Query/DelegationTotalRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationTotalRewardsRequest { /// delegator_address defines the delegator address to query for. @@ -392,7 +362,6 @@ pub struct QueryDelegationTotalRewardsRequest { } /// QueryDelegationTotalRewardsResponse is the response type for the /// Query/DelegationTotalRewards RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationTotalRewardsResponse { /// rewards defines all the rewards accrued by a delegator. @@ -404,7 +373,6 @@ pub struct QueryDelegationTotalRewardsResponse { } /// QueryDelegatorValidatorsRequest is the request type for the /// Query/DelegatorValidators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsRequest { /// delegator_address defines the delegator address to query for. @@ -413,7 +381,6 @@ pub struct QueryDelegatorValidatorsRequest { } /// QueryDelegatorValidatorsResponse is the response type for the /// Query/DelegatorValidators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsResponse { /// validators defines the validators a delegator is delegating for. @@ -422,7 +389,6 @@ pub struct QueryDelegatorValidatorsResponse { } /// QueryDelegatorWithdrawAddressRequest is the request type for the /// Query/DelegatorWithdrawAddress RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorWithdrawAddressRequest { /// delegator_address defines the delegator address to query for. @@ -431,7 +397,6 @@ pub struct QueryDelegatorWithdrawAddressRequest { } /// QueryDelegatorWithdrawAddressResponse is the response type for the /// Query/DelegatorWithdrawAddress RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorWithdrawAddressResponse { /// withdraw_address defines the delegator address to query for. @@ -440,12 +405,10 @@ pub struct QueryDelegatorWithdrawAddressResponse { } /// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCommunityPoolRequest {} /// QueryCommunityPoolResponse is the response type for the Query/CommunityPool /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCommunityPoolResponse { /// pool defines community pool's coins. @@ -454,7 +417,13 @@ pub struct QueryCommunityPoolResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service for distribution module. @@ -477,8 +446,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -503,7 +472,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -550,8 +519,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -578,8 +546,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -609,8 +576,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -640,8 +606,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -671,8 +636,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -703,8 +667,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -734,8 +697,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -765,8 +727,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -796,8 +757,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -816,7 +776,6 @@ pub mod query_client { } /// MsgSetWithdrawAddress sets the withdraw address for /// a delegator (or validator self-delegation). -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetWithdrawAddress { #[prost(string, tag = "1")] @@ -825,12 +784,10 @@ pub struct MsgSetWithdrawAddress { pub withdraw_address: ::prost::alloc::string::String, } /// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetWithdrawAddressResponse {} /// MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator /// from a single validator. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawDelegatorReward { #[prost(string, tag = "1")] @@ -839,7 +796,6 @@ pub struct MsgWithdrawDelegatorReward { pub validator_address: ::prost::alloc::string::String, } /// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawDelegatorRewardResponse { /// Since: cosmos-sdk 0.46 @@ -848,14 +804,12 @@ pub struct MsgWithdrawDelegatorRewardResponse { } /// MsgWithdrawValidatorCommission withdraws the full commission to the validator /// address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawValidatorCommission { #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, } /// MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawValidatorCommissionResponse { /// Since: cosmos-sdk 0.46 @@ -864,7 +818,6 @@ pub struct MsgWithdrawValidatorCommissionResponse { } /// MsgFundCommunityPool allows an account to directly /// fund the community pool. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgFundCommunityPool { #[prost(message, repeated, tag = "1")] @@ -873,12 +826,17 @@ pub struct MsgFundCommunityPool { pub depositor: ::prost::alloc::string::String, } /// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgFundCommunityPoolResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the distribution Msg service. @@ -901,8 +859,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -927,7 +885,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -975,8 +933,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1007,8 +964,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1039,8 +995,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1071,8 +1026,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.evidence.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.evidence.v1beta1.rs index 3428c36..f5cc155 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.evidence.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.evidence.v1beta1.rs @@ -1,5 +1,18 @@ +// This file is @generated by prost-build. +/// Equivocation implements the Evidence interface and defines evidence of double +/// signing misbehavior. +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Equivocation { + #[prost(int64, tag = "1")] + pub height: i64, + #[prost(message, optional, tag = "2")] + pub time: ::core::option::Option<::prost_types::Timestamp>, + #[prost(int64, tag = "3")] + pub power: i64, + #[prost(string, tag = "4")] + pub consensus_address: ::prost::alloc::string::String, +} /// GenesisState defines the evidence module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// evidence defines all the evidence at genesis. @@ -7,7 +20,6 @@ pub struct GenesisState { pub evidence: ::prost::alloc::vec::Vec<::prost_types::Any>, } /// QueryEvidenceRequest is the request type for the Query/Evidence RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEvidenceRequest { /// evidence_hash defines the hash of the requested evidence. @@ -15,7 +27,6 @@ pub struct QueryEvidenceRequest { pub evidence_hash: ::prost::alloc::vec::Vec, } /// QueryEvidenceResponse is the response type for the Query/Evidence RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEvidenceResponse { /// evidence returns the requested evidence. @@ -24,7 +35,6 @@ pub struct QueryEvidenceResponse { } /// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllEvidenceRequest { /// pagination defines an optional pagination for the request. @@ -35,7 +45,6 @@ pub struct QueryAllEvidenceRequest { } /// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllEvidenceResponse { /// evidence returns all evidences. @@ -49,7 +58,13 @@ pub struct QueryAllEvidenceResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -72,8 +87,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -98,7 +113,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -145,8 +160,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -171,8 +185,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -187,23 +200,8 @@ pub mod query_client { } } } -/// Equivocation implements the Evidence interface and defines evidence of double -/// signing misbehavior. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Equivocation { - #[prost(int64, tag = "1")] - pub height: i64, - #[prost(message, optional, tag = "2")] - pub time: ::core::option::Option<::prost_types::Timestamp>, - #[prost(int64, tag = "3")] - pub power: i64, - #[prost(string, tag = "4")] - pub consensus_address: ::prost::alloc::string::String, -} /// MsgSubmitEvidence represents a message that supports submitting arbitrary /// Evidence of misbehavior such as equivocation or counterfactual signing. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitEvidence { #[prost(string, tag = "1")] @@ -212,7 +210,6 @@ pub struct MsgSubmitEvidence { pub evidence: ::core::option::Option<::prost_types::Any>, } /// MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitEvidenceResponse { /// hash defines the hash of the evidence. @@ -221,7 +218,13 @@ pub struct MsgSubmitEvidenceResponse { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the evidence Msg service. @@ -244,8 +247,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -270,7 +273,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -318,8 +321,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.feegrant.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.feegrant.v1beta1.rs index a94205a..7d916bd 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.feegrant.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.feegrant.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// 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, ::prost::Message)] pub struct BasicAllowance { /// spend_limit specifies the maximum amount of coins that can be spent @@ -14,7 +14,6 @@ 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, ::prost::Message)] pub struct PeriodicAllowance { /// basic specifies a struct of `BasicAllowance` @@ -38,7 +37,6 @@ pub struct PeriodicAllowance { pub period_reset: ::core::option::Option<::prost_types::Timestamp>, } /// AllowedMsgAllowance creates allowance only for specified message types. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AllowedMsgAllowance { /// allowance can be any of basic and periodic fee allowance. @@ -49,7 +47,6 @@ pub struct AllowedMsgAllowance { pub allowed_messages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Grant is stored in the KVStore to record a grant with full context -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Grant { /// granter is the address of the user granting an allowance of their funds. @@ -63,14 +60,12 @@ pub struct Grant { pub allowance: ::core::option::Option<::prost_types::Any>, } /// GenesisState contains a set of fee allowances, persisted from the store -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, repeated, tag = "1")] pub allowances: ::prost::alloc::vec::Vec, } /// QueryAllowanceRequest is the request type for the Query/Allowance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowanceRequest { /// granter is the address of the user granting an allowance of their funds. @@ -81,7 +76,6 @@ pub struct QueryAllowanceRequest { pub grantee: ::prost::alloc::string::String, } /// QueryAllowanceResponse is the response type for the Query/Allowance RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowanceResponse { /// allowance is a allowance granted for grantee by granter. @@ -89,7 +83,6 @@ pub struct QueryAllowanceResponse { pub allowance: ::core::option::Option, } /// QueryAllowancesRequest is the request type for the Query/Allowances RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesRequest { #[prost(string, tag = "1")] @@ -101,7 +94,6 @@ pub struct QueryAllowancesRequest { >, } /// QueryAllowancesResponse is the response type for the Query/Allowances RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesResponse { /// allowances are allowance's granted for grantee by granter. @@ -116,7 +108,6 @@ pub struct QueryAllowancesResponse { /// 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, ::prost::Message)] pub struct QueryAllowancesByGranterRequest { #[prost(string, tag = "1")] @@ -130,7 +121,6 @@ pub struct QueryAllowancesByGranterRequest { /// 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, ::prost::Message)] pub struct QueryAllowancesByGranterResponse { /// allowances that have been issued by the granter. @@ -144,7 +134,13 @@ pub struct QueryAllowancesByGranterResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -167,8 +163,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -193,7 +189,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -240,8 +236,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -266,8 +261,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -294,8 +288,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -317,7 +310,6 @@ pub mod query_client { } /// 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, ::prost::Message)] pub struct MsgGrantAllowance { /// granter is the address of the user granting an allowance of their funds. @@ -331,11 +323,9 @@ pub struct MsgGrantAllowance { pub allowance: ::core::option::Option<::prost_types::Any>, } /// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgGrantAllowanceResponse {} /// MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevokeAllowance { /// granter is the address of the user granting an allowance of their funds. @@ -346,12 +336,17 @@ pub struct MsgRevokeAllowance { pub grantee: ::prost::alloc::string::String, } /// MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRevokeAllowanceResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the feegrant msg service. @@ -374,8 +369,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -400,7 +395,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -448,8 +443,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -477,8 +471,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.genutil.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.genutil.v1beta1.rs index 445b4bd..4741058 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.genutil.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.genutil.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState defines the raw genesis transaction in JSON. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// gen_txs defines the genesis transactions. diff --git a/cosmos_sdk_proto/src/prost/cosmos.gov.v1.rs b/cosmos_sdk_proto/src/prost/cosmos.gov.v1.rs index 53251c6..7031599 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.gov.v1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.gov.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// WeightedVoteOption defines a unit of vote for vote split. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WeightedVoteOption { #[prost(enumeration = "VoteOption", tag = "1")] @@ -9,7 +9,6 @@ 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, ::prost::Message)] pub struct Deposit { #[prost(uint64, tag = "1")] @@ -20,7 +19,6 @@ pub struct Deposit { pub amount: ::prost::alloc::vec::Vec, } /// Proposal defines the core field members of a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { #[prost(uint64, tag = "1")] @@ -49,7 +47,6 @@ pub struct Proposal { pub metadata: ::prost::alloc::string::String, } /// TallyResult defines a standard tally for a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyResult { #[prost(string, tag = "1")] @@ -63,7 +60,6 @@ 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, ::prost::Message)] pub struct Vote { #[prost(uint64, tag = "1")] @@ -77,7 +73,6 @@ pub struct Vote { pub metadata: ::prost::alloc::string::String, } /// DepositParams defines the params for deposits on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DepositParams { /// Minimum deposit for a proposal to enter voting period. @@ -89,15 +84,13 @@ pub struct DepositParams { pub max_deposit_period: ::core::option::Option<::prost_types::Duration>, } /// VotingParams defines the params for voting on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VotingParams { /// Length of the voting period. #[prost(message, optional, tag = "1")] pub voting_period: ::core::option::Option<::prost_types::Duration>, } /// TallyParams defines the params for tallying votes on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyParams { /// Minimum percentage of total stake needed to vote for a result to be @@ -134,11 +127,11 @@ impl VoteOption { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - VoteOption::Unspecified => "VOTE_OPTION_UNSPECIFIED", - VoteOption::Yes => "VOTE_OPTION_YES", - VoteOption::Abstain => "VOTE_OPTION_ABSTAIN", - VoteOption::No => "VOTE_OPTION_NO", - VoteOption::NoWithVeto => "VOTE_OPTION_NO_WITH_VETO", + Self::Unspecified => "VOTE_OPTION_UNSPECIFIED", + Self::Yes => "VOTE_OPTION_YES", + Self::Abstain => "VOTE_OPTION_ABSTAIN", + Self::No => "VOTE_OPTION_NO", + Self::NoWithVeto => "VOTE_OPTION_NO_WITH_VETO", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -182,12 +175,12 @@ impl ProposalStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ProposalStatus::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED", - ProposalStatus::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD", - ProposalStatus::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD", - ProposalStatus::Passed => "PROPOSAL_STATUS_PASSED", - ProposalStatus::Rejected => "PROPOSAL_STATUS_REJECTED", - ProposalStatus::Failed => "PROPOSAL_STATUS_FAILED", + Self::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED", + Self::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD", + Self::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD", + Self::Passed => "PROPOSAL_STATUS_PASSED", + Self::Rejected => "PROPOSAL_STATUS_REJECTED", + Self::Failed => "PROPOSAL_STATUS_FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -204,7 +197,6 @@ impl ProposalStatus { } } /// GenesisState defines the gov module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// starting_proposal_id is the ID of the starting proposal. @@ -230,22 +222,19 @@ pub struct GenesisState { pub tally_params: ::core::option::Option, } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryProposalRequest { /// proposal_id defines the unique id of the proposal. #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] pub proposal: ::core::option::Option, } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsRequest { /// proposal_status defines the status of the proposals. @@ -265,7 +254,6 @@ pub struct QueryProposalsRequest { } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsResponse { #[prost(message, repeated, tag = "1")] @@ -277,7 +265,6 @@ pub struct QueryProposalsResponse { >, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteRequest { /// proposal_id defines the unique id of the proposal. @@ -288,7 +275,6 @@ pub struct QueryVoteRequest { pub voter: ::prost::alloc::string::String, } /// QueryVoteResponse is the response type for the Query/Vote RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteResponse { /// vote defined the queried vote. @@ -296,7 +282,6 @@ pub struct QueryVoteResponse { pub vote: ::core::option::Option, } /// QueryVotesRequest is the request type for the Query/Votes RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesRequest { /// proposal_id defines the unique id of the proposal. @@ -309,7 +294,6 @@ pub struct QueryVotesRequest { >, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesResponse { /// votes defined the queried votes. @@ -322,7 +306,6 @@ pub struct QueryVotesResponse { >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { /// params_type defines which parameters to query for, can be one of "voting", @@ -331,7 +314,6 @@ pub struct QueryParamsRequest { pub params_type: ::prost::alloc::string::String, } /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// voting_params defines the parameters related to voting. @@ -345,7 +327,6 @@ pub struct QueryParamsResponse { pub tally_params: ::core::option::Option, } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositRequest { /// proposal_id defines the unique id of the proposal. @@ -356,7 +337,6 @@ pub struct QueryDepositRequest { pub depositor: ::prost::alloc::string::String, } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -364,7 +344,6 @@ pub struct QueryDepositResponse { pub deposit: ::core::option::Option, } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsRequest { /// proposal_id defines the unique id of the proposal. @@ -377,7 +356,6 @@ pub struct QueryDepositsRequest { >, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsResponse { #[prost(message, repeated, tag = "1")] @@ -389,15 +367,13 @@ pub struct QueryDepositsResponse { >, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryTallyResultRequest { /// proposal_id defines the unique id of the proposal. #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -406,7 +382,13 @@ pub struct QueryTallyResultResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service for gov module @@ -429,8 +411,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -455,7 +437,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -502,8 +484,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -528,8 +509,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -554,8 +534,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -577,8 +556,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -602,8 +580,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -628,8 +605,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -654,8 +630,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -680,8 +655,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -698,7 +672,6 @@ pub mod query_client { } /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposal { #[prost(message, repeated, tag = "1")] @@ -712,15 +685,13 @@ pub struct MsgSubmitProposal { pub metadata: ::prost::alloc::string::String, } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSubmitProposalResponse { #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// 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, ::prost::Message)] pub struct MsgExecLegacyContent { /// content is the proposal's content. @@ -731,11 +702,9 @@ pub struct MsgExecLegacyContent { pub authority: ::prost::alloc::string::String, } /// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgExecLegacyContentResponse {} /// MsgVote defines a message to cast a vote. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVote { #[prost(uint64, tag = "1")] @@ -748,11 +717,9 @@ pub struct MsgVote { pub metadata: ::prost::alloc::string::String, } /// MsgVoteResponse defines the Msg/Vote response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} /// MsgVoteWeighted defines a message to cast a vote. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeighted { #[prost(uint64, tag = "1")] @@ -765,11 +732,9 @@ pub struct MsgVoteWeighted { pub metadata: ::prost::alloc::string::String, } /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct MsgDeposit { #[prost(uint64, tag = "1")] @@ -780,12 +745,17 @@ pub struct MsgDeposit { pub amount: ::prost::alloc::vec::Vec, } /// MsgDepositResponse defines the Msg/Deposit response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the gov Msg service. @@ -808,8 +778,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -834,7 +804,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -881,8 +851,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -908,8 +877,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -934,8 +902,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -957,8 +924,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -983,8 +949,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.gov.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.gov.v1beta1.rs index 1c77ff7..59c9085 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.gov.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.gov.v1beta1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// WeightedVoteOption defines a unit of vote for vote split. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WeightedVoteOption { #[prost(enumeration = "VoteOption", tag = "1")] @@ -11,7 +11,6 @@ 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, ::prost::Message)] pub struct TextProposal { #[prost(string, tag = "1")] @@ -21,7 +20,6 @@ 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, ::prost::Message)] pub struct Deposit { #[prost(uint64, tag = "1")] @@ -32,7 +30,6 @@ pub struct Deposit { pub amount: ::prost::alloc::vec::Vec, } /// Proposal defines the core field members of a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { #[prost(uint64, tag = "1")] @@ -58,7 +55,6 @@ pub struct Proposal { pub voting_end_time: ::core::option::Option<::prost_types::Timestamp>, } /// TallyResult defines a standard tally for a governance proposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyResult { #[prost(string, tag = "1")] @@ -72,7 +68,6 @@ 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, ::prost::Message)] pub struct Vote { #[prost(uint64, tag = "1")] @@ -90,7 +85,6 @@ pub struct Vote { pub options: ::prost::alloc::vec::Vec, } /// DepositParams defines the params for deposits on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DepositParams { /// Minimum deposit for a proposal to enter voting period. @@ -102,15 +96,13 @@ pub struct DepositParams { pub max_deposit_period: ::core::option::Option<::prost_types::Duration>, } /// VotingParams defines the params for voting on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VotingParams { /// Length of the voting period. #[prost(message, optional, tag = "1")] pub voting_period: ::core::option::Option<::prost_types::Duration>, } /// TallyParams defines the params for tallying votes on governance proposals. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyParams { /// Minimum percentage of total stake needed to vote for a result to be @@ -147,11 +139,11 @@ impl VoteOption { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - VoteOption::Unspecified => "VOTE_OPTION_UNSPECIFIED", - VoteOption::Yes => "VOTE_OPTION_YES", - VoteOption::Abstain => "VOTE_OPTION_ABSTAIN", - VoteOption::No => "VOTE_OPTION_NO", - VoteOption::NoWithVeto => "VOTE_OPTION_NO_WITH_VETO", + Self::Unspecified => "VOTE_OPTION_UNSPECIFIED", + Self::Yes => "VOTE_OPTION_YES", + Self::Abstain => "VOTE_OPTION_ABSTAIN", + Self::No => "VOTE_OPTION_NO", + Self::NoWithVeto => "VOTE_OPTION_NO_WITH_VETO", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -195,12 +187,12 @@ impl ProposalStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ProposalStatus::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED", - ProposalStatus::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD", - ProposalStatus::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD", - ProposalStatus::Passed => "PROPOSAL_STATUS_PASSED", - ProposalStatus::Rejected => "PROPOSAL_STATUS_REJECTED", - ProposalStatus::Failed => "PROPOSAL_STATUS_FAILED", + Self::Unspecified => "PROPOSAL_STATUS_UNSPECIFIED", + Self::DepositPeriod => "PROPOSAL_STATUS_DEPOSIT_PERIOD", + Self::VotingPeriod => "PROPOSAL_STATUS_VOTING_PERIOD", + Self::Passed => "PROPOSAL_STATUS_PASSED", + Self::Rejected => "PROPOSAL_STATUS_REJECTED", + Self::Failed => "PROPOSAL_STATUS_FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -217,7 +209,6 @@ impl ProposalStatus { } } /// GenesisState defines the gov module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// starting_proposal_id is the ID of the starting proposal. @@ -243,22 +234,19 @@ pub struct GenesisState { pub tally_params: ::core::option::Option, } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryProposalRequest { /// proposal_id defines the unique id of the proposal. #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] pub proposal: ::core::option::Option, } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsRequest { /// proposal_status defines the status of the proposals. @@ -278,7 +266,6 @@ pub struct QueryProposalsRequest { } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsResponse { #[prost(message, repeated, tag = "1")] @@ -290,7 +277,6 @@ pub struct QueryProposalsResponse { >, } /// QueryVoteRequest is the request type for the Query/Vote RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteRequest { /// proposal_id defines the unique id of the proposal. @@ -301,7 +287,6 @@ pub struct QueryVoteRequest { pub voter: ::prost::alloc::string::String, } /// QueryVoteResponse is the response type for the Query/Vote RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteResponse { /// vote defined the queried vote. @@ -309,7 +294,6 @@ pub struct QueryVoteResponse { pub vote: ::core::option::Option, } /// QueryVotesRequest is the request type for the Query/Votes RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesRequest { /// proposal_id defines the unique id of the proposal. @@ -322,7 +306,6 @@ pub struct QueryVotesRequest { >, } /// QueryVotesResponse is the response type for the Query/Votes RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesResponse { /// votes defined the queried votes. @@ -335,7 +318,6 @@ pub struct QueryVotesResponse { >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { /// params_type defines which parameters to query for, can be one of "voting", @@ -344,7 +326,6 @@ pub struct QueryParamsRequest { pub params_type: ::prost::alloc::string::String, } /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// voting_params defines the parameters related to voting. @@ -358,7 +339,6 @@ pub struct QueryParamsResponse { pub tally_params: ::core::option::Option, } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositRequest { /// proposal_id defines the unique id of the proposal. @@ -369,7 +349,6 @@ pub struct QueryDepositRequest { pub depositor: ::prost::alloc::string::String, } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositResponse { /// deposit defines the requested deposit. @@ -377,7 +356,6 @@ pub struct QueryDepositResponse { pub deposit: ::core::option::Option, } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsRequest { /// proposal_id defines the unique id of the proposal. @@ -390,7 +368,6 @@ pub struct QueryDepositsRequest { >, } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsResponse { #[prost(message, repeated, tag = "1")] @@ -402,15 +379,13 @@ pub struct QueryDepositsResponse { >, } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryTallyResultRequest { /// proposal_id defines the unique id of the proposal. #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultResponse { /// tally defines the requested tally. @@ -419,7 +394,13 @@ pub struct QueryTallyResultResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service for gov module @@ -442,8 +423,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -468,7 +449,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -515,8 +496,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -541,8 +521,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -567,8 +546,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -593,8 +571,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -619,8 +596,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -645,8 +621,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -671,8 +646,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -697,8 +671,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -715,7 +688,6 @@ pub mod query_client { } /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposal { #[prost(message, optional, tag = "1")] @@ -726,14 +698,12 @@ pub struct MsgSubmitProposal { pub proposer: ::prost::alloc::string::String, } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSubmitProposalResponse { #[prost(uint64, tag = "1")] pub proposal_id: u64, } /// MsgVote defines a message to cast a vote. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVote { #[prost(uint64, tag = "1")] @@ -744,13 +714,11 @@ pub struct MsgVote { pub option: i32, } /// MsgVoteResponse defines the Msg/Vote response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct MsgVoteWeighted { #[prost(uint64, tag = "1")] @@ -763,11 +731,9 @@ pub struct MsgVoteWeighted { /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct MsgDeposit { #[prost(uint64, tag = "1")] @@ -778,12 +744,17 @@ pub struct MsgDeposit { pub amount: ::prost::alloc::vec::Vec, } /// MsgDepositResponse defines the Msg/Deposit response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the bank Msg service. @@ -806,8 +777,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -832,7 +803,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -879,8 +850,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -905,8 +875,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -933,8 +902,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -959,8 +927,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.mint.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.mint.v1beta1.rs index bd4e3d6..9ae46b5 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.mint.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.mint.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Minter represents the minting state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Minter { /// current annual inflation rate @@ -10,7 +10,6 @@ pub struct Minter { pub annual_provisions: ::prost::alloc::string::String, } /// Params holds parameters for the mint module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// type of coin to mint @@ -33,7 +32,6 @@ pub struct Params { pub blocks_per_year: u64, } /// GenesisState defines the mint module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// minter is a space for holding current inflation information. @@ -44,11 +42,9 @@ pub struct GenesisState { pub params: ::core::option::Option, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -56,12 +52,10 @@ pub struct QueryParamsResponse { pub params: ::core::option::Option, } /// QueryInflationRequest is the request type for the Query/Inflation RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryInflationRequest {} /// QueryInflationResponse is the response type for the Query/Inflation RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInflationResponse { /// inflation is the current minting inflation value. @@ -70,12 +64,10 @@ pub struct QueryInflationResponse { } /// QueryAnnualProvisionsRequest is the request type for the /// Query/AnnualProvisions RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAnnualProvisionsRequest {} /// QueryAnnualProvisionsResponse is the response type for the /// Query/AnnualProvisions RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAnnualProvisionsResponse { /// annual_provisions is the current minting annual provisions value. @@ -84,7 +76,13 @@ pub struct QueryAnnualProvisionsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service. @@ -107,8 +105,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -133,7 +131,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -180,8 +178,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -206,8 +203,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -232,8 +228,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.params.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.params.v1beta1.rs index 9657a42..b1d808a 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.params.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.params.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// ParameterChangeProposal defines a proposal to change one or more parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParameterChangeProposal { #[prost(string, tag = "1")] @@ -11,7 +11,6 @@ pub struct ParameterChangeProposal { } /// ParamChange defines an individual parameter change, for use in /// ParameterChangeProposal. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParamChange { #[prost(string, tag = "1")] @@ -22,7 +21,6 @@ pub struct ParamChange { pub value: ::prost::alloc::string::String, } /// QueryParamsRequest is request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { /// subspace defines the module to query the parameter for. @@ -33,7 +31,6 @@ pub struct QueryParamsRequest { pub key: ::prost::alloc::string::String, } /// QueryParamsResponse is response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// param defines the queried parameter. @@ -44,14 +41,12 @@ pub struct QueryParamsResponse { /// subspaces and all keys for a subspace. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QuerySubspacesRequest {} /// QuerySubspacesResponse defines the response types for querying for all /// registered subspaces and all keys for a subspace. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubspacesResponse { #[prost(message, repeated, tag = "1")] @@ -61,7 +56,6 @@ pub struct QuerySubspacesResponse { /// the subspace. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Subspace { #[prost(string, tag = "1")] @@ -71,7 +65,13 @@ pub struct Subspace { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -94,8 +94,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -120,7 +120,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -168,8 +168,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -196,8 +195,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.slashing.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.slashing.v1beta1.rs index a6c2189..cb89c15 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.slashing.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.slashing.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// ValidatorSigningInfo defines a validator's signing info for monitoring their /// liveness activity. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSigningInfo { #[prost(string, tag = "1")] @@ -26,7 +26,6 @@ pub struct ValidatorSigningInfo { pub missed_blocks_counter: i64, } /// Params represents the parameters used for by the slashing module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(int64, tag = "1")] @@ -41,7 +40,6 @@ pub struct Params { pub slash_fraction_downtime: ::prost::alloc::vec::Vec, } /// GenesisState defines the slashing module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of related to deposit. @@ -57,7 +55,6 @@ pub struct GenesisState { pub missed_blocks: ::prost::alloc::vec::Vec, } /// SigningInfo stores validator signing info of corresponding address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningInfo { /// address is the validator address. @@ -69,7 +66,6 @@ pub struct SigningInfo { } /// ValidatorMissedBlocks contains array of missed blocks of corresponding /// address. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorMissedBlocks { /// address is the validator address. @@ -80,8 +76,7 @@ pub struct ValidatorMissedBlocks { pub missed_blocks: ::prost::alloc::vec::Vec, } /// MissedBlock contains height and missed status as boolean. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MissedBlock { /// index is the height at which the block was missed. #[prost(int64, tag = "1")] @@ -91,11 +86,9 @@ pub struct MissedBlock { pub missed: bool, } /// QueryParamsRequest is the request type for the Query/Params RPC method -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] @@ -103,7 +96,6 @@ pub struct QueryParamsResponse { } /// QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfoRequest { /// cons_address is the address to query signing info of @@ -112,7 +104,6 @@ pub struct QuerySigningInfoRequest { } /// QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfoResponse { /// val_signing_info is the signing info of requested val cons address @@ -121,7 +112,6 @@ pub struct QuerySigningInfoResponse { } /// QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfosRequest { #[prost(message, optional, tag = "1")] @@ -131,7 +121,6 @@ pub struct QuerySigningInfosRequest { } /// QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfosResponse { /// info is the signing info of all validators @@ -144,7 +133,13 @@ pub struct QuerySigningInfosResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service @@ -167,8 +162,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -193,7 +188,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -240,8 +235,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -266,8 +260,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -292,8 +285,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -311,19 +303,23 @@ pub mod query_client { } } /// MsgUnjail defines the Msg/Unjail request type -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnjail { #[prost(string, tag = "1")] pub validator_addr: ::prost::alloc::string::String, } /// MsgUnjailResponse defines the Msg/Unjail response type -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUnjailResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the slashing Msg service. @@ -346,8 +342,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -372,7 +368,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -421,8 +417,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.staking.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.staking.v1beta1.rs index 7dd32e0..80fec6e 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.staking.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.staking.v1beta1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// StakeAuthorization defines authorization for delegate/undelegate/redelegate. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StakeAuthorization { /// max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is @@ -18,14 +18,12 @@ pub struct StakeAuthorization { /// Nested message and enum types in `StakeAuthorization`. pub mod stake_authorization { /// Validators defines list of validator addresses. - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validators { #[prost(string, repeated, tag = "1")] pub address: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// validators is the oneof that represents either allow_list or deny_list - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum ValidatorsEnum { /// allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's @@ -59,10 +57,10 @@ impl AuthorizationType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - AuthorizationType::Unspecified => "AUTHORIZATION_TYPE_UNSPECIFIED", - AuthorizationType::Delegate => "AUTHORIZATION_TYPE_DELEGATE", - AuthorizationType::Undelegate => "AUTHORIZATION_TYPE_UNDELEGATE", - AuthorizationType::Redelegate => "AUTHORIZATION_TYPE_REDELEGATE", + Self::Unspecified => "AUTHORIZATION_TYPE_UNSPECIFIED", + Self::Delegate => "AUTHORIZATION_TYPE_DELEGATE", + Self::Undelegate => "AUTHORIZATION_TYPE_UNDELEGATE", + Self::Redelegate => "AUTHORIZATION_TYPE_REDELEGATE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -80,7 +78,6 @@ impl AuthorizationType { /// It is stored as part of staking module's state, which persists the `n` most /// recent HistoricalInfo /// (`n` is set by the staking module's `historical_entries` parameter). -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HistoricalInfo { #[prost(message, optional, tag = "1")] @@ -90,7 +87,6 @@ pub 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, ::prost::Message)] pub struct CommissionRates { /// rate is the commission rate charged to delegators, as a fraction. @@ -104,7 +100,6 @@ pub struct CommissionRates { pub max_change_rate: ::prost::alloc::string::String, } /// Commission defines commission parameters for a given validator. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Commission { /// commission_rates defines the initial commission rates to be used for creating a validator. @@ -115,7 +110,6 @@ pub struct Commission { pub update_time: ::core::option::Option<::prost_types::Timestamp>, } /// Description defines a validator description. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Description { /// moniker defines a human-readable name for the validator. @@ -142,7 +136,6 @@ pub struct Description { /// bond shares is based on the amount of coins delegated divided by the current /// 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, ::prost::Message)] pub struct Validator { /// operator_address defines the address of the validator's operator; bech encoded in JSON. @@ -182,7 +175,6 @@ pub struct Validator { pub min_self_delegation: ::prost::alloc::string::String, } /// ValAddresses defines a repeated set of validator addresses. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValAddresses { #[prost(string, repeated, tag = "1")] @@ -191,7 +183,6 @@ pub struct ValAddresses { /// DVPair is struct that just has a delegator-validator pair with no other data. /// 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, ::prost::Message)] pub struct DvPair { #[prost(string, tag = "1")] @@ -200,7 +191,6 @@ pub struct DvPair { pub validator_address: ::prost::alloc::string::String, } /// DVPairs defines an array of DVPair objects. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvPairs { #[prost(message, repeated, tag = "1")] @@ -210,7 +200,6 @@ pub struct DvPairs { /// with no other data. It is intended to be used as a marshalable pointer. For /// 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, ::prost::Message)] pub struct DvvTriplet { #[prost(string, tag = "1")] @@ -221,7 +210,6 @@ pub struct DvvTriplet { pub validator_dst_address: ::prost::alloc::string::String, } /// DVVTriplets defines an array of DVVTriplet objects. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvvTriplets { #[prost(message, repeated, tag = "1")] @@ -230,7 +218,6 @@ pub struct DvvTriplets { /// Delegation represents the bond with tokens held by an account. It is /// owned by one delegator, and is associated with the voting power of one /// validator. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Delegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -245,7 +232,6 @@ 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, ::prost::Message)] pub struct UnbondingDelegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -261,7 +247,6 @@ pub struct UnbondingDelegation { pub entries: ::prost::alloc::vec::Vec, } /// UnbondingDelegationEntry defines an unbonding object with relevant metadata. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnbondingDelegationEntry { /// creation_height is the height which the unbonding took place. @@ -278,7 +263,6 @@ pub struct UnbondingDelegationEntry { pub balance: ::prost::alloc::string::String, } /// RedelegationEntry defines a redelegation object with relevant metadata. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RedelegationEntry { /// creation_height defines the height which the redelegation took place. @@ -296,7 +280,6 @@ 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, ::prost::Message)] pub struct Redelegation { /// delegator_address is the bech32-encoded address of the delegator. @@ -315,7 +298,6 @@ pub struct Redelegation { pub entries: ::prost::alloc::vec::Vec, } /// Params defines the parameters for the staking module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// unbonding_time is the time duration of unbonding. @@ -339,7 +321,6 @@ 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, ::prost::Message)] pub struct DelegationResponse { #[prost(message, optional, tag = "1")] @@ -350,7 +331,6 @@ pub struct DelegationResponse { /// RedelegationEntryResponse is equivalent to a RedelegationEntry 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, ::prost::Message)] pub struct RedelegationEntryResponse { #[prost(message, optional, tag = "1")] @@ -361,7 +341,6 @@ pub struct RedelegationEntryResponse { /// RedelegationResponse is equivalent to a Redelegation except that its entries /// contain a balance in addition to shares which is more suitable for client /// responses. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RedelegationResponse { #[prost(message, optional, tag = "1")] @@ -371,7 +350,6 @@ 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, ::prost::Message)] pub struct Pool { #[prost(string, tag = "1")] @@ -399,10 +377,10 @@ impl BondStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - BondStatus::Unspecified => "BOND_STATUS_UNSPECIFIED", - BondStatus::Unbonded => "BOND_STATUS_UNBONDED", - BondStatus::Unbonding => "BOND_STATUS_UNBONDING", - BondStatus::Bonded => "BOND_STATUS_BONDED", + Self::Unspecified => "BOND_STATUS_UNSPECIFIED", + Self::Unbonded => "BOND_STATUS_UNBONDED", + Self::Unbonding => "BOND_STATUS_UNBONDING", + Self::Bonded => "BOND_STATUS_BONDED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -417,7 +395,6 @@ impl BondStatus { } } /// GenesisState defines the staking module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// params defines all the paramaters of related to deposit. @@ -447,7 +424,6 @@ pub struct GenesisState { pub exported: bool, } /// LastValidatorPower required for validator set update logic. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LastValidatorPower { /// address is the address of the validator. @@ -458,7 +434,6 @@ pub struct LastValidatorPower { pub power: i64, } /// QueryValidatorsRequest is request type for Query/Validators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorsRequest { /// status enables to query for validators matching a given status. @@ -466,10 +441,11 @@ pub struct QueryValidatorsRequest { pub status: ::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, + >, } /// QueryValidatorsResponse is response type for the Query/Validators RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorsResponse { /// validators contains all the queried validators. @@ -477,10 +453,11 @@ pub struct QueryValidatorsResponse { pub validators: ::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, + >, } /// QueryValidatorRequest is response type for the Query/Validator RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorRequest { /// validator_addr defines the validator address to query for. @@ -488,7 +465,6 @@ pub struct QueryValidatorRequest { pub validator_addr: ::prost::alloc::string::String, } /// QueryValidatorResponse is response type for the Query/Validator RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorResponse { /// validator defines the validator info. @@ -497,7 +473,6 @@ pub struct QueryValidatorResponse { } /// QueryValidatorDelegationsRequest is request type for the /// Query/ValidatorDelegations RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDelegationsRequest { /// validator_addr defines the validator address to query for. @@ -505,22 +480,24 @@ pub struct QueryValidatorDelegationsRequest { pub validator_addr: ::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, + >, } /// QueryValidatorDelegationsResponse is response type for the /// Query/ValidatorDelegations RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDelegationsResponse { #[prost(message, repeated, tag = "1")] pub delegation_responses: ::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, + >, } /// QueryValidatorUnbondingDelegationsRequest is required type for the /// Query/ValidatorUnbondingDelegations RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorUnbondingDelegationsRequest { /// validator_addr defines the validator address to query for. @@ -528,21 +505,23 @@ pub struct QueryValidatorUnbondingDelegationsRequest { pub validator_addr: ::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, + >, } /// QueryValidatorUnbondingDelegationsResponse is response type for the /// Query/ValidatorUnbondingDelegations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorUnbondingDelegationsResponse { #[prost(message, repeated, tag = "1")] pub unbonding_responses: ::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, + >, } /// QueryDelegationRequest is request type for the Query/Delegation RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRequest { /// delegator_addr defines the delegator address to query for. @@ -553,7 +532,6 @@ pub struct QueryDelegationRequest { pub validator_addr: ::prost::alloc::string::String, } /// QueryDelegationResponse is response type for the Query/Delegation RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationResponse { /// delegation_responses defines the delegation info of a delegation. @@ -562,7 +540,6 @@ pub struct QueryDelegationResponse { } /// QueryUnbondingDelegationRequest is request type for the /// Query/UnbondingDelegation RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnbondingDelegationRequest { /// delegator_addr defines the delegator address to query for. @@ -574,7 +551,6 @@ pub struct QueryUnbondingDelegationRequest { } /// QueryDelegationResponse is response type for the Query/UnbondingDelegation /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnbondingDelegationResponse { /// unbond defines the unbonding information of a delegation. @@ -583,7 +559,6 @@ pub struct QueryUnbondingDelegationResponse { } /// QueryDelegatorDelegationsRequest is request type for the /// Query/DelegatorDelegations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorDelegationsRequest { /// delegator_addr defines the delegator address to query for. @@ -591,11 +566,12 @@ pub struct QueryDelegatorDelegationsRequest { pub delegator_addr: ::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, + >, } /// QueryDelegatorDelegationsResponse is response type for the /// Query/DelegatorDelegations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorDelegationsResponse { /// delegation_responses defines all the delegations' info of a delegator. @@ -603,11 +579,12 @@ pub struct QueryDelegatorDelegationsResponse { pub delegation_responses: ::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, + >, } /// QueryDelegatorUnbondingDelegationsRequest is request type for the /// Query/DelegatorUnbondingDelegations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorUnbondingDelegationsRequest { /// delegator_addr defines the delegator address to query for. @@ -615,22 +592,24 @@ pub struct QueryDelegatorUnbondingDelegationsRequest { pub delegator_addr: ::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, + >, } /// QueryUnbondingDelegatorDelegationsResponse is response type for the /// Query/UnbondingDelegatorDelegations RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorUnbondingDelegationsResponse { #[prost(message, repeated, tag = "1")] pub unbonding_responses: ::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, + >, } /// QueryRedelegationsRequest is request type for the Query/Redelegations RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRedelegationsRequest { /// delegator_addr defines the delegator address to query for. @@ -644,22 +623,24 @@ pub struct QueryRedelegationsRequest { pub dst_validator_addr: ::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, + >, } /// QueryRedelegationsResponse is response type for the Query/Redelegations RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRedelegationsResponse { #[prost(message, repeated, tag = "1")] pub redelegation_responses: ::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, + >, } /// QueryDelegatorValidatorsRequest is request type for the /// Query/DelegatorValidators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsRequest { /// delegator_addr defines the delegator address to query for. @@ -667,11 +648,12 @@ pub struct QueryDelegatorValidatorsRequest { pub delegator_addr: ::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, + >, } /// QueryDelegatorValidatorsResponse is response type for the /// Query/DelegatorValidators RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsResponse { /// validators defines the validators' info of a delegator. @@ -679,11 +661,12 @@ pub struct QueryDelegatorValidatorsResponse { pub validators: ::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, + >, } /// QueryDelegatorValidatorRequest is request type for the /// Query/DelegatorValidator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorRequest { /// delegator_addr defines the delegator address to query for. @@ -695,7 +678,6 @@ pub struct QueryDelegatorValidatorRequest { } /// QueryDelegatorValidatorResponse response type for the /// Query/DelegatorValidator RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorResponse { /// validator defines the validator info. @@ -704,8 +686,7 @@ pub struct QueryDelegatorValidatorResponse { } /// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryHistoricalInfoRequest { /// height defines at which height to query the historical info. #[prost(int64, tag = "1")] @@ -713,7 +694,6 @@ pub struct QueryHistoricalInfoRequest { } /// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHistoricalInfoResponse { /// hist defines the historical info at the given height. @@ -721,11 +701,9 @@ pub struct QueryHistoricalInfoResponse { pub hist: ::core::option::Option, } /// QueryPoolRequest is request type for the Query/Pool RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryPoolRequest {} /// QueryPoolResponse is response type for the Query/Pool RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPoolResponse { /// pool defines the pool info. @@ -733,11 +711,9 @@ pub struct QueryPoolResponse { pub pool: ::core::option::Option, } /// QueryParamsRequest is request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params holds all the parameters of this module. @@ -746,9 +722,15 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] - use tonic::codegen::http::Uri; + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; + use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. #[derive(Debug, Clone)] pub struct QueryClient { @@ -769,8 +751,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -793,8 +775,9 @@ pub mod query_client { >::ResponseBody, >, >, - >>::Error: - Into + Send + Sync, + , + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -833,39 +816,47 @@ pub mod query_client { pub async fn validators( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Validators"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Validators", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "Validators", - )); + req.extensions_mut() + .insert(GrpcMethod::new("cosmos.staking.v1beta1.Query", "Validators")); self.inner.unary(req, path, codec).await } /// Validator queries validator info for given validator address. pub async fn validator( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Validator"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Validator", + ); let mut req = request.into_request(); req.extensions_mut() .insert(GrpcMethod::new("cosmos.staking.v1beta1.Query", "Validator")); @@ -879,68 +870,83 @@ pub mod query_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/ValidatorDelegations", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "ValidatorDelegations", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "ValidatorDelegations", + ), + ); self.inner.unary(req, path, codec).await } /// ValidatorUnbondingDelegations queries unbonding delegations of a validator. pub async fn validator_unbonding_delegations( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryValidatorUnbondingDelegationsRequest, + >, ) -> std::result::Result< tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "ValidatorUnbondingDelegations", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "ValidatorUnbondingDelegations", + ), + ); self.inner.unary(req, path, codec).await } /// Delegation queries delegate info for given validator delegator pair. pub async fn delegation( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Delegation"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Delegation", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "Delegation", - )); + req.extensions_mut() + .insert(GrpcMethod::new("cosmos.staking.v1beta1.Query", "Delegation")); self.inner.unary(req, path, codec).await } /// UnbondingDelegation queries unbonding info for given validator delegator @@ -952,21 +958,26 @@ pub mod query_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/UnbondingDelegation", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "UnbondingDelegation", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "UnbondingDelegation", + ), + ); self.inner.unary(req, path, codec).await } /// DelegatorDelegations queries all delegations of a given delegator address. @@ -977,69 +988,86 @@ pub mod query_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/DelegatorDelegations", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "DelegatorDelegations", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "DelegatorDelegations", + ), + ); self.inner.unary(req, path, codec).await } /// DelegatorUnbondingDelegations queries all unbonding delegations of a given /// delegator address. pub async fn delegator_unbonding_delegations( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryDelegatorUnbondingDelegationsRequest, + >, ) -> std::result::Result< tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "DelegatorUnbondingDelegations", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "DelegatorUnbondingDelegations", + ), + ); self.inner.unary(req, path, codec).await } /// Redelegations queries redelegations of given address. pub async fn redelegations( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Redelegations"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Redelegations", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "Redelegations", - )); + req.extensions_mut() + .insert( + GrpcMethod::new("cosmos.staking.v1beta1.Query", "Redelegations"), + ); self.inner.unary(req, path, codec).await } /// DelegatorValidators queries all validators info for given delegator @@ -1051,21 +1079,26 @@ pub mod query_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/DelegatorValidators", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "DelegatorValidators", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Query", + "DelegatorValidators", + ), + ); self.inner.unary(req, path, codec).await } /// DelegatorValidator queries validator info for given delegator validator @@ -1077,59 +1110,72 @@ pub mod query_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/DelegatorValidator", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "DelegatorValidator", - )); + req.extensions_mut() + .insert( + GrpcMethod::new("cosmos.staking.v1beta1.Query", "DelegatorValidator"), + ); self.inner.unary(req, path, codec).await } /// HistoricalInfo queries the historical info for given height. pub async fn historical_info( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Query/HistoricalInfo", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Query", - "HistoricalInfo", - )); + req.extensions_mut() + .insert( + GrpcMethod::new("cosmos.staking.v1beta1.Query", "HistoricalInfo"), + ); self.inner.unary(req, path, codec).await } /// Pool queries the pool info. pub async fn pool( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Pool"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Pool", + ); let mut req = request.into_request(); req.extensions_mut() .insert(GrpcMethod::new("cosmos.staking.v1beta1.Query", "Pool")); @@ -1139,16 +1185,22 @@ pub mod query_client { pub async fn params( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Query/Params"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Query/Params", + ); let mut req = request.into_request(); req.extensions_mut() .insert(GrpcMethod::new("cosmos.staking.v1beta1.Query", "Params")); @@ -1157,7 +1209,6 @@ pub mod query_client { } } /// MsgCreateValidator defines a SDK message for creating a new validator. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateValidator { #[prost(message, optional, tag = "1")] @@ -1176,11 +1227,9 @@ pub struct MsgCreateValidator { pub value: ::core::option::Option, } /// MsgCreateValidatorResponse defines the Msg/CreateValidator response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreateValidatorResponse {} /// MsgEditValidator defines a SDK message for editing an existing validator. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEditValidator { #[prost(message, optional, tag = "1")] @@ -1197,12 +1246,10 @@ pub struct MsgEditValidator { pub min_self_delegation: ::prost::alloc::string::String, } /// MsgEditValidatorResponse defines the Msg/EditValidator response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct MsgDelegate { #[prost(string, tag = "1")] @@ -1213,12 +1260,10 @@ pub struct MsgDelegate { pub amount: ::core::option::Option, } /// MsgDelegateResponse defines the Msg/Delegate response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] 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, ::prost::Message)] pub struct MsgBeginRedelegate { #[prost(string, tag = "1")] @@ -1231,15 +1276,13 @@ pub struct MsgBeginRedelegate { pub amount: ::core::option::Option, } /// MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgBeginRedelegateResponse { #[prost(message, optional, tag = "1")] pub completion_time: ::core::option::Option<::prost_types::Timestamp>, } /// 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, ::prost::Message)] pub struct MsgUndelegate { #[prost(string, tag = "1")] @@ -1250,8 +1293,7 @@ pub struct MsgUndelegate { pub amount: ::core::option::Option, } /// MsgUndelegateResponse defines the Msg/Undelegate response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUndelegateResponse { #[prost(message, optional, tag = "1")] pub completion_time: ::core::option::Option<::prost_types::Timestamp>, @@ -1259,7 +1301,6 @@ pub struct MsgUndelegateResponse { /// MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUnbondingDelegation { #[prost(string, tag = "1")] @@ -1276,14 +1317,19 @@ pub struct MsgCancelUnbondingDelegation { /// MsgCancelUnbondingDelegationResponse /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCancelUnbondingDelegationResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] - use tonic::codegen::http::Uri; + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; + use tonic::codegen::http::Uri; /// Msg defines the staking Msg service. #[derive(Debug, Clone)] pub struct MsgClient { @@ -1304,8 +1350,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -1315,7 +1361,10 @@ pub mod msg_client { let inner = tonic::client::Grpc::with_origin(inner, origin); Self { inner } } - pub fn with_interceptor(inner: T, interceptor: F) -> MsgClient> + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> MsgClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -1325,8 +1374,9 @@ pub mod msg_client { >::ResponseBody, >, >, - >>::Error: - Into + Send + Sync, + , + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -1365,44 +1415,52 @@ pub mod msg_client { pub async fn create_validator( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Msg/CreateValidator"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Msg/CreateValidator", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Msg", - "CreateValidator", - )); + req.extensions_mut() + .insert( + GrpcMethod::new("cosmos.staking.v1beta1.Msg", "CreateValidator"), + ); self.inner.unary(req, path, codec).await } /// EditValidator defines a method for editing an existing validator. pub async fn edit_validator( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Msg/EditValidator"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Msg/EditValidator", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Msg", - "EditValidator", - )); + req.extensions_mut() + .insert(GrpcMethod::new("cosmos.staking.v1beta1.Msg", "EditValidator")); self.inner.unary(req, path, codec).await } /// Delegate defines a method for performing a delegation of coins @@ -1410,16 +1468,22 @@ pub mod msg_client { pub async fn delegate( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Msg/Delegate"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Msg/Delegate", + ); let mut req = request.into_request(); req.extensions_mut() .insert(GrpcMethod::new("cosmos.staking.v1beta1.Msg", "Delegate")); @@ -1430,22 +1494,27 @@ pub mod msg_client { pub async fn begin_redelegate( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Msg/BeginRedelegate"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Msg/BeginRedelegate", + ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Msg", - "BeginRedelegate", - )); + req.extensions_mut() + .insert( + GrpcMethod::new("cosmos.staking.v1beta1.Msg", "BeginRedelegate"), + ); self.inner.unary(req, path, codec).await } /// Undelegate defines a method for performing an undelegation from a @@ -1453,17 +1522,22 @@ pub mod msg_client { pub async fn undelegate( &mut self, request: impl tonic::IntoRequest, - ) -> std::result::Result, tonic::Status> - { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); - let path = - http::uri::PathAndQuery::from_static("/cosmos.staking.v1beta1.Msg/Undelegate"); + let path = http::uri::PathAndQuery::from_static( + "/cosmos.staking.v1beta1.Msg/Undelegate", + ); let mut req = request.into_request(); req.extensions_mut() .insert(GrpcMethod::new("cosmos.staking.v1beta1.Msg", "Undelegate")); @@ -1480,21 +1554,26 @@ pub mod msg_client { tonic::Response, tonic::Status, > { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::unknown( + format!("Service was not ready: {}", e.into()), + ) + })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( "/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation", ); let mut req = request.into_request(); - req.extensions_mut().insert(GrpcMethod::new( - "cosmos.staking.v1beta1.Msg", - "CancelUnbondingDelegation", - )); + req.extensions_mut() + .insert( + GrpcMethod::new( + "cosmos.staking.v1beta1.Msg", + "CancelUnbondingDelegation", + ), + ); self.inner.unary(req, path, codec).await } } diff --git a/cosmos_sdk_proto/src/prost/cosmos.tx.signing.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.tx.signing.v1beta1.rs index b59fc38..3e4642a 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.tx.signing.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.tx.signing.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// SignatureDescriptors wraps multiple SignatureDescriptor's. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureDescriptors { /// signatures are the signature descriptors @@ -10,7 +10,6 @@ pub struct SignatureDescriptors { /// a signature including the public key of the signer, signing modes and the /// signature itself. It is primarily used for coordinating signatures between /// clients. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureDescriptor { /// public_key is the public key of the signer @@ -27,7 +26,6 @@ pub struct SignatureDescriptor { /// Nested message and enum types in `SignatureDescriptor`. pub mod signature_descriptor { /// Data represents signature data - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Data { /// sum is the oneof that specifies whether this represents single or multi-signature data @@ -37,7 +35,6 @@ pub mod signature_descriptor { /// Nested message and enum types in `Data`. pub mod data { /// Single is the signature data for a single signer - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Single { /// mode is the signing mode of the single signer @@ -48,7 +45,6 @@ pub mod signature_descriptor { pub signature: ::prost::alloc::vec::Vec, } /// Multi is the signature data for a multisig public key - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi { /// bitarray specifies which keys within the multisig are signing @@ -61,7 +57,6 @@ pub mod signature_descriptor { pub signatures: ::prost::alloc::vec::Vec, } /// sum is the oneof that specifies whether this represents single or multi-signature data - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { /// single represents a single signer @@ -123,12 +118,12 @@ impl SignMode { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - SignMode::Unspecified => "SIGN_MODE_UNSPECIFIED", - SignMode::Direct => "SIGN_MODE_DIRECT", - SignMode::Textual => "SIGN_MODE_TEXTUAL", - SignMode::DirectAux => "SIGN_MODE_DIRECT_AUX", - SignMode::LegacyAminoJson => "SIGN_MODE_LEGACY_AMINO_JSON", - SignMode::Eip191 => "SIGN_MODE_EIP_191", + Self::Unspecified => "SIGN_MODE_UNSPECIFIED", + Self::Direct => "SIGN_MODE_DIRECT", + Self::Textual => "SIGN_MODE_TEXTUAL", + Self::DirectAux => "SIGN_MODE_DIRECT_AUX", + Self::LegacyAminoJson => "SIGN_MODE_LEGACY_AMINO_JSON", + Self::Eip191 => "SIGN_MODE_EIP_191", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/cosmos.tx.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.tx.v1beta1.rs index 54d390a..530c65a 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.tx.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.tx.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Tx is the standard type used for broadcasting transactions. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Tx { /// body is the processable content of the transaction @@ -20,7 +20,6 @@ pub struct Tx { /// verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and /// the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used /// as the transaction ID. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxRaw { /// body_bytes is a protobuf serialization of a TxBody that matches the @@ -38,7 +37,6 @@ pub struct TxRaw { pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } /// SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignDoc { /// body_bytes is protobuf serialization of a TxBody that matches the @@ -62,7 +60,6 @@ pub struct SignDoc { /// SIGN_MODE_DIRECT_AUX. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignDocDirectAux { /// body_bytes is protobuf serialization of a TxBody that matches the @@ -93,7 +90,6 @@ pub struct SignDocDirectAux { pub tip: ::core::option::Option, } /// TxBody is the body of a transaction that all signers sign over. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxBody { /// messages is a list of messages to be executed. The required signers of @@ -127,7 +123,6 @@ pub struct TxBody { } /// AuthInfo describes the fee and signer modes that are used to sign a /// transaction. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthInfo { /// signer_infos defines the signing modes for the required signers. The number @@ -153,7 +148,6 @@ pub struct AuthInfo { } /// SignerInfo describes the public key and signing mode of a single top-level /// signer. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignerInfo { /// public_key is the public key of the signer. It is optional for accounts @@ -172,7 +166,6 @@ pub struct SignerInfo { pub sequence: u64, } /// ModeInfo describes the signing mode of a single or nested multisig signer. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModeInfo { /// sum is the oneof that specifies whether this represents a single or nested @@ -185,15 +178,13 @@ pub mod mode_info { /// Single is the mode info for a single signer. It is structured as a message /// to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the /// future - #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Single { /// mode is the signing mode of the single signer #[prost(enumeration = "super::super::signing::v1beta1::SignMode", tag = "1")] pub mode: i32, } /// Multi is the mode info for a multisig public key - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi { /// bitarray specifies which keys within the multisig are signing @@ -208,7 +199,6 @@ pub mod mode_info { } /// sum is the oneof that specifies whether this represents a single or nested /// multisig signer - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { /// single represents a single signer @@ -222,7 +212,6 @@ pub mod mode_info { /// Fee includes the amount of coins paid in fees and the maximum /// gas to be used by the transaction. The ratio yields an effective "gasprice", /// which must be above some miminum to be accepted into the mempool. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fee { /// amount is the amount of coins to be paid as a fee @@ -246,7 +235,6 @@ pub struct Fee { /// Tip is the tip used for meta-transactions. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Tip { /// amount is the amount of the tip @@ -262,7 +250,6 @@ pub struct Tip { /// by the node if sent directly as-is. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuxSignerData { /// address is the bech32-encoded address of the auxiliary signer. If using @@ -284,7 +271,6 @@ pub struct AuxSignerData { } /// GetTxsEventRequest is the request type for the Service.TxsByEvents /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxsEventRequest { /// events is the list of transaction event type. @@ -309,7 +295,6 @@ pub struct GetTxsEventRequest { } /// GetTxsEventResponse is the response type for the Service.TxsByEvents /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxsEventResponse { /// txs is the list of queried transactions. @@ -333,7 +318,6 @@ pub struct GetTxsEventResponse { } /// BroadcastTxRequest is the request type for the Service.BroadcastTxRequest /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BroadcastTxRequest { /// tx_bytes is the raw transaction. @@ -344,7 +328,6 @@ pub struct BroadcastTxRequest { } /// BroadcastTxResponse is the response type for the /// Service.BroadcastTx method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BroadcastTxResponse { /// tx_response is the queried TxResponses. @@ -355,7 +338,6 @@ pub struct BroadcastTxResponse { } /// SimulateRequest is the request type for the Service.Simulate /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateRequest { /// tx is the transaction to simulate. @@ -371,7 +353,6 @@ pub struct SimulateRequest { } /// SimulateResponse is the response type for the /// Service.SimulateRPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateResponse { /// gas_info is the information about gas used in the simulation. @@ -383,7 +364,6 @@ pub struct SimulateResponse { } /// GetTxRequest is the request type for the Service.GetTx /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxRequest { /// hash is the tx hash to query, encoded as a hex string. @@ -391,7 +371,6 @@ pub struct GetTxRequest { pub hash: ::prost::alloc::string::String, } /// GetTxResponse is the response type for the Service.GetTx method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxResponse { /// tx is the queried transaction. @@ -407,7 +386,6 @@ pub struct GetTxResponse { /// RPC method. /// /// Since: cosmos-sdk 0.45.2 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockWithTxsRequest { /// height is the height of the block to query. @@ -422,7 +400,6 @@ pub struct GetBlockWithTxsRequest { /// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. /// /// Since: cosmos-sdk 0.45.2 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockWithTxsResponse { /// txs are the transactions in the block. @@ -458,9 +435,9 @@ impl OrderBy { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - OrderBy::Unspecified => "ORDER_BY_UNSPECIFIED", - OrderBy::Asc => "ORDER_BY_ASC", - OrderBy::Desc => "ORDER_BY_DESC", + Self::Unspecified => "ORDER_BY_UNSPECIFIED", + Self::Asc => "ORDER_BY_ASC", + Self::Desc => "ORDER_BY_DESC", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -496,10 +473,10 @@ impl BroadcastMode { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - BroadcastMode::Unspecified => "BROADCAST_MODE_UNSPECIFIED", - BroadcastMode::Block => "BROADCAST_MODE_BLOCK", - BroadcastMode::Sync => "BROADCAST_MODE_SYNC", - BroadcastMode::Async => "BROADCAST_MODE_ASYNC", + Self::Unspecified => "BROADCAST_MODE_UNSPECIFIED", + Self::Block => "BROADCAST_MODE_BLOCK", + Self::Sync => "BROADCAST_MODE_SYNC", + Self::Async => "BROADCAST_MODE_ASYNC", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -515,7 +492,13 @@ impl BroadcastMode { } /// Generated client implementations. pub mod service_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Service defines a gRPC service for interacting with transactions. @@ -538,8 +521,8 @@ pub mod service_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -564,7 +547,7 @@ pub mod service_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { ServiceClient::new(InterceptedService::new(inner, interceptor)) } @@ -611,8 +594,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -634,8 +616,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -660,8 +641,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -686,8 +666,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -714,8 +693,7 @@ pub mod service_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.upgrade.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.upgrade.v1beta1.rs index 8e9c4ff..399126d 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.upgrade.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.upgrade.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// Plan specifies information about a planned upgrade and when it should occur. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Plan { /// Sets the name for the upgrade. This name will be used by the upgraded @@ -36,7 +36,6 @@ pub struct Plan { /// upgrade. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov /// proposals, see MsgSoftwareUpgrade. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SoftwareUpgradeProposal { #[prost(string, tag = "1")] @@ -50,7 +49,6 @@ pub struct SoftwareUpgradeProposal { /// upgrade. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov /// proposals, see MsgCancelUpgrade. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CancelSoftwareUpgradeProposal { #[prost(string, tag = "1")] @@ -61,7 +59,6 @@ pub struct CancelSoftwareUpgradeProposal { /// ModuleVersion specifies a module and its consensus version. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleVersion { /// name of the app module @@ -73,12 +70,10 @@ pub struct ModuleVersion { } /// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCurrentPlanRequest {} /// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentPlanResponse { /// plan is the current upgrade plan. @@ -87,7 +82,6 @@ pub struct QueryCurrentPlanResponse { } /// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAppliedPlanRequest { /// name is the name of the applied plan to query for. @@ -96,8 +90,7 @@ pub struct QueryAppliedPlanRequest { } /// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAppliedPlanResponse { /// height is the block height at which the plan was applied. #[prost(int64, tag = "1")] @@ -105,8 +98,7 @@ pub struct QueryAppliedPlanResponse { } /// QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateRequest { /// last height of the current chain must be sent in request /// as this is the height under which next consensus state is stored @@ -115,7 +107,6 @@ pub struct QueryUpgradedConsensusStateRequest { } /// QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateResponse { /// Since: cosmos-sdk 0.43 @@ -126,7 +117,6 @@ pub struct QueryUpgradedConsensusStateResponse { /// RPC method. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleVersionsRequest { /// module_name is a field to query a specific module @@ -139,7 +129,6 @@ pub struct QueryModuleVersionsRequest { /// RPC method. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleVersionsResponse { /// module_versions is a list of module names with their consensus versions. @@ -149,13 +138,11 @@ pub struct QueryModuleVersionsResponse { /// QueryAuthorityRequest is the request type for Query/Authority /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuthorityRequest {} /// QueryAuthorityResponse is the response type for Query/Authority /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuthorityResponse { #[prost(string, tag = "1")] @@ -163,7 +150,13 @@ pub struct QueryAuthorityResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC upgrade querier service. @@ -186,8 +179,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -212,7 +205,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -259,8 +252,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -285,8 +277,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -305,6 +296,7 @@ pub mod query_client { /// UpgradedConsensusState RPC not supported with legacy querier /// This rpc is deprecated now that IBC has its own replacement /// (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + #[deprecated] pub async fn upgraded_consensus_state( &mut self, request: impl tonic::IntoRequest, @@ -316,8 +308,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -349,8 +340,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -379,8 +369,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -398,7 +387,6 @@ pub mod query_client { /// MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSoftwareUpgrade { /// authority is the address of the governance account. @@ -411,13 +399,11 @@ pub struct MsgSoftwareUpgrade { /// MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSoftwareUpgradeResponse {} /// MsgCancelUpgrade is the Msg/CancelUpgrade request type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUpgrade { /// authority is the address of the governance account. @@ -427,12 +413,17 @@ pub struct MsgCancelUpgrade { /// MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCancelUpgradeResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the upgrade Msg service. @@ -455,8 +446,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -481,7 +472,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -530,8 +521,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -561,8 +551,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/cosmos.vesting.v1beta1.rs b/cosmos_sdk_proto/src/prost/cosmos.vesting.v1beta1.rs index 8ff2d80..4b29b5d 100644 --- a/cosmos_sdk_proto/src/prost/cosmos.vesting.v1beta1.rs +++ b/cosmos_sdk_proto/src/prost/cosmos.vesting.v1beta1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// BaseVestingAccount implements the VestingAccount interface. It contains all /// the necessary fields needed for any vesting account implementation. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BaseVestingAccount { #[prost(message, optional, tag = "1")] @@ -17,7 +17,6 @@ pub struct BaseVestingAccount { } /// ContinuousVestingAccount implements the VestingAccount interface. It /// continuously vests by unlocking coins linearly with respect to time. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContinuousVestingAccount { #[prost(message, optional, tag = "1")] @@ -29,14 +28,12 @@ pub struct ContinuousVestingAccount { /// DelayedVestingAccount implements the VestingAccount interface. It vests all /// coins after a specific time, but non prior. In other words, it keeps them /// locked until a specified time. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelayedVestingAccount { #[prost(message, optional, tag = "1")] pub base_vesting_account: ::core::option::Option, } /// Period defines a length of time and amount of coins that will vest. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Period { /// Period duration in seconds. @@ -47,7 +44,6 @@ pub struct Period { } /// PeriodicVestingAccount implements the VestingAccount interface. It /// periodically vests by unlocking coins during each specified period. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PeriodicVestingAccount { #[prost(message, optional, tag = "1")] @@ -62,7 +58,6 @@ pub struct PeriodicVestingAccount { /// still be used for delegating and for governance votes even while locked. /// /// Since: cosmos-sdk 0.43 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PermanentLockedAccount { #[prost(message, optional, tag = "1")] @@ -70,7 +65,6 @@ pub struct PermanentLockedAccount { } /// MsgCreateVestingAccount defines a message that enables creating a vesting /// account. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateVestingAccount { #[prost(string, tag = "1")] @@ -86,14 +80,12 @@ pub struct MsgCreateVestingAccount { pub delayed: bool, } /// MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreateVestingAccountResponse {} /// MsgCreatePermanentLockedAccount defines a message that enables creating a permanent /// locked account. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePermanentLockedAccount { #[prost(string, tag = "1")] @@ -106,14 +98,12 @@ pub struct MsgCreatePermanentLockedAccount { /// MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreatePermanentLockedAccountResponse {} /// MsgCreateVestingAccount defines a message that enables creating a vesting /// account. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePeriodicVestingAccount { #[prost(string, tag = "1")] @@ -130,12 +120,17 @@ pub struct MsgCreatePeriodicVestingAccount { /// response type. /// /// Since: cosmos-sdk 0.46 -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreatePeriodicVestingAccountResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the bank Msg service. @@ -158,8 +153,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -184,7 +179,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -232,8 +227,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -263,8 +257,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -297,8 +290,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.controller.v1.rs b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.controller.v1.rs index d1bacd9..12606b1 100644 --- a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.controller.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.controller.v1.rs @@ -1,14 +1,13 @@ +// This file is @generated by prost-build. /// Params defines the set of on-chain interchain accounts parameters. /// The following parameters may be used to disable the controller submodule. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// controller_enabled enables or disables the controller submodule. #[prost(bool, tag = "1")] pub controller_enabled: bool, } /// QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInterchainAccountRequest { #[prost(string, tag = "1")] @@ -17,19 +16,16 @@ pub struct QueryInterchainAccountRequest { pub connection_id: ::prost::alloc::string::String, } /// QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInterchainAccountResponse { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. #[prost(message, optional, tag = "1")] @@ -37,7 +33,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service. @@ -60,8 +62,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -86,7 +88,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -133,8 +135,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -164,8 +165,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.host.v1.rs b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.host.v1.rs index e183d70..08e1c97 100644 --- a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.host.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.host.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// Params defines the set of on-chain interchain accounts parameters. /// The following parameters may be used to disable the host submodule. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// host_enabled enables or disables the host submodule. @@ -11,11 +11,9 @@ pub struct Params { pub allow_messages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. @@ -24,7 +22,13 @@ pub struct QueryParamsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service. @@ -47,8 +51,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -73,7 +77,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -120,8 +124,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.v1.rs b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.v1.rs index d47693b..2514023 100644 --- a/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.applications.interchain_accounts.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// An InterchainAccount is defined as a BaseAccount & the address of the account owner on the controller chain -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterchainAccount { #[prost(message, optional, tag = "1")] @@ -10,7 +10,6 @@ pub struct InterchainAccount { pub account_owner: ::prost::alloc::string::String, } /// GenesisState defines the interchain accounts genesis state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -19,7 +18,6 @@ pub struct GenesisState { pub host_genesis_state: ::core::option::Option, } /// ControllerGenesisState defines the interchain accounts controller genesis state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ControllerGenesisState { #[prost(message, repeated, tag = "1")] @@ -32,7 +30,6 @@ pub struct ControllerGenesisState { pub params: ::core::option::Option, } /// HostGenesisState defines the interchain accounts host genesis state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HostGenesisState { #[prost(message, repeated, tag = "1")] @@ -45,7 +42,6 @@ pub struct HostGenesisState { pub params: ::core::option::Option, } /// ActiveChannel contains a connection ID, port ID and associated active channel ID -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ActiveChannel { #[prost(string, tag = "1")] @@ -56,7 +52,6 @@ pub struct ActiveChannel { pub channel_id: ::prost::alloc::string::String, } /// RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisteredInterchainAccount { #[prost(string, tag = "1")] @@ -68,7 +63,6 @@ pub struct RegisteredInterchainAccount { } /// Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring /// See ICS004: -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { /// version defines the ICS27 protocol version @@ -92,7 +86,6 @@ pub struct Metadata { pub tx_type: ::prost::alloc::string::String, } /// InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterchainAccountPacketData { #[prost(enumeration = "Type", tag = "1")] @@ -103,7 +96,6 @@ pub struct InterchainAccountPacketData { pub memo: ::prost::alloc::string::String, } /// CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CosmosTx { #[prost(message, repeated, tag = "1")] @@ -126,8 +118,8 @@ impl Type { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Type::Unspecified => "TYPE_UNSPECIFIED", - Type::ExecuteTx => "TYPE_EXECUTE_TX", + Self::Unspecified => "TYPE_UNSPECIFIED", + Self::ExecuteTx => "TYPE_EXECUTE_TX", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v1.rs b/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v1.rs index 45c79d0..b8465e7 100644 --- a/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// DenomTrace contains the base denomination for ICS20 fungible tokens and the /// source tracing information path. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenomTrace { /// path defines the chain of port/channel identifiers used for tracing the @@ -15,8 +15,7 @@ pub struct DenomTrace { /// NOTE: To prevent a single token from being transferred, set the /// TransfersEnabled parameter to true and then set the bank module's SendEnabled /// parameter for the denomination to false. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// send_enabled enables or disables all cross-chain token transfers from this /// chain. @@ -28,7 +27,6 @@ pub struct Params { pub receive_enabled: bool, } /// GenesisState defines the ibc-transfer genesis state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(string, tag = "1")] @@ -40,7 +38,6 @@ pub struct GenesisState { } /// QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTraceRequest { /// hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. @@ -49,7 +46,6 @@ pub struct QueryDenomTraceRequest { } /// QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTraceResponse { /// denom_trace returns the requested denomination trace information. @@ -58,7 +54,6 @@ pub struct QueryDenomTraceResponse { } /// QueryConnectionsRequest is the request type for the Query/DenomTraces RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTracesRequest { /// pagination defines an optional pagination for the request. @@ -69,7 +64,6 @@ pub struct QueryDenomTracesRequest { } /// QueryConnectionsResponse is the response type for the Query/DenomTraces RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTracesResponse { /// denom_traces returns all denominations trace information. @@ -82,12 +76,10 @@ pub struct QueryDenomTracesResponse { >, } /// QueryParamsRequest is the request type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} /// QueryParamsResponse is the response type for the Query/Params RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { /// params defines the parameters of the module. #[prost(message, optional, tag = "1")] @@ -95,7 +87,6 @@ pub struct QueryParamsResponse { } /// QueryDenomHashRequest is the request type for the Query/DenomHash RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomHashRequest { /// The denomination trace (\[port_id\]/[channel_id])+/\[denom\] @@ -104,7 +95,6 @@ pub struct QueryDenomHashRequest { } /// QueryDenomHashResponse is the response type for the Query/DenomHash RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomHashResponse { /// hash (in hex format) of the denomination trace information. @@ -112,7 +102,6 @@ pub struct QueryDenomHashResponse { pub hash: ::prost::alloc::string::String, } /// QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowAddressRequest { /// unique port identifier @@ -123,7 +112,6 @@ pub struct QueryEscrowAddressRequest { pub channel_id: ::prost::alloc::string::String, } /// QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowAddressResponse { /// the escrow account address @@ -132,7 +120,13 @@ pub struct QueryEscrowAddressResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service. @@ -155,8 +149,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -181,7 +175,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -228,8 +222,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -256,8 +249,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -284,8 +276,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -310,8 +301,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -338,8 +328,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -362,7 +351,6 @@ pub mod query_client { /// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between /// ICS20 enabled chains. See ICS Spec here: /// -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTransfer { /// the port on which the packet will be sent @@ -397,8 +385,7 @@ pub struct MsgTransfer { pub memo: ::prost::alloc::string::String, } /// MsgTransferResponse defines the Msg/Transfer response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgTransferResponse { /// sequence number of the transfer packet sent #[prost(uint64, tag = "1")] @@ -406,7 +393,13 @@ pub struct MsgTransferResponse { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the ibc/transfer Msg service. @@ -429,8 +422,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -455,7 +448,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -502,8 +495,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v2.rs b/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v2.rs index 3111dac..96d6687 100644 --- a/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v2.rs +++ b/cosmos_sdk_proto/src/prost/ibc.applications.transfer.v2.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// FungibleTokenPacketData defines a struct for the packet payload /// See FungibleTokenPacketData spec: /// -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FungibleTokenPacketData { /// the token denomination to be transferred diff --git a/cosmos_sdk_proto/src/prost/ibc.core.channel.v1.rs b/cosmos_sdk_proto/src/prost/ibc.core.channel.v1.rs index 7758948..91f0147 100644 --- a/cosmos_sdk_proto/src/prost/ibc.core.channel.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.core.channel.v1.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// Channel defines pipeline for exactly-once packet delivery between specific /// modules on separate blockchains, which has at least one end capable of /// sending packets and one end capable of receiving packets. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Channel { /// current state of the channel end @@ -23,7 +23,6 @@ pub struct Channel { } /// IdentifiedChannel defines a channel with additional port and channel /// identifier fields. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedChannel { /// current state of the channel end @@ -50,7 +49,6 @@ pub struct IdentifiedChannel { pub channel_id: ::prost::alloc::string::String, } /// Counterparty defines a channel end counterparty -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Counterparty { /// port on the counterparty chain which owns the other end of the channel. @@ -61,7 +59,6 @@ pub struct Counterparty { pub channel_id: ::prost::alloc::string::String, } /// Packet defines a type that carries data across different chains through IBC -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Packet { /// number corresponds to the order of sends and receives, where a Packet @@ -95,7 +92,6 @@ pub struct Packet { /// packet commitments, acknowledgements, and receipts. /// Caller is responsible for knowing the context necessary to interpret this /// state as a commitment, acknowledgement, or a receipt. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketState { /// channel port identifier. @@ -114,7 +110,6 @@ pub struct PacketState { /// PacketId is an identifer for a unique Packet /// Source chains refer to packets by source port/channel /// Destination chains refer to packets by destination port/channel -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketId { /// channel port identifier @@ -134,7 +129,6 @@ pub struct PacketId { /// The first byte of any message with this format will be the non-ASCII values /// `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: /// -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Acknowledgement { /// response contains either a result or an error and must be non-empty @@ -144,7 +138,6 @@ pub struct Acknowledgement { /// Nested message and enum types in `Acknowledgement`. pub mod acknowledgement { /// response contains either a result or an error and must be non-empty - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Response { #[prost(bytes, tag = "21")] @@ -178,11 +171,11 @@ impl State { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - State::UninitializedUnspecified => "STATE_UNINITIALIZED_UNSPECIFIED", - State::Init => "STATE_INIT", - State::Tryopen => "STATE_TRYOPEN", - State::Open => "STATE_OPEN", - State::Closed => "STATE_CLOSED", + Self::UninitializedUnspecified => "STATE_UNINITIALIZED_UNSPECIFIED", + Self::Init => "STATE_INIT", + Self::Tryopen => "STATE_TRYOPEN", + Self::Open => "STATE_OPEN", + Self::Closed => "STATE_CLOSED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -216,9 +209,9 @@ impl Order { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Order::NoneUnspecified => "ORDER_NONE_UNSPECIFIED", - Order::Unordered => "ORDER_UNORDERED", - Order::Ordered => "ORDER_ORDERED", + Self::NoneUnspecified => "ORDER_NONE_UNSPECIFIED", + Self::Unordered => "ORDER_UNORDERED", + Self::Ordered => "ORDER_ORDERED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -232,7 +225,6 @@ impl Order { } } /// GenesisState defines the ibc channel submodule's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -255,7 +247,6 @@ pub struct GenesisState { } /// PacketSequence defines the genesis type necessary to retrieve and store /// next send and receive sequences. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketSequence { #[prost(string, tag = "1")] @@ -266,7 +257,6 @@ pub struct PacketSequence { pub sequence: u64, } /// QueryChannelRequest is the request type for the Query/Channel RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelRequest { /// port unique identifier @@ -279,7 +269,6 @@ pub struct QueryChannelRequest { /// QueryChannelResponse is the response type for the Query/Channel RPC method. /// Besides the Channel end, it includes a proof and the height from which the /// proof was retrieved. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelResponse { /// channel associated with the request identifiers @@ -293,7 +282,6 @@ pub struct QueryChannelResponse { pub proof_height: ::core::option::Option, } /// QueryChannelsRequest is the request type for the Query/Channels RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelsRequest { /// pagination request @@ -303,7 +291,6 @@ pub struct QueryChannelsRequest { >, } /// QueryChannelsResponse is the response type for the Query/Channels RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelsResponse { /// list of stored channels of the chain. @@ -320,7 +307,6 @@ pub struct QueryChannelsResponse { } /// QueryConnectionChannelsRequest is the request type for the /// Query/QueryConnectionChannels RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionChannelsRequest { /// connection unique identifier @@ -334,7 +320,6 @@ pub struct QueryConnectionChannelsRequest { } /// QueryConnectionChannelsResponse is the Response type for the /// Query/QueryConnectionChannels RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionChannelsResponse { /// list of channels associated with a connection. @@ -351,7 +336,6 @@ pub struct QueryConnectionChannelsResponse { } /// QueryChannelClientStateRequest is the request type for the Query/ClientState /// RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelClientStateRequest { /// port unique identifier @@ -363,7 +347,6 @@ pub struct QueryChannelClientStateRequest { } /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelClientStateResponse { /// client state associated with the channel @@ -380,7 +363,6 @@ pub struct QueryChannelClientStateResponse { } /// QueryChannelConsensusStateRequest is the request type for the /// Query/ConsensusState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelConsensusStateRequest { /// port unique identifier @@ -398,7 +380,6 @@ pub struct QueryChannelConsensusStateRequest { } /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelConsensusStateResponse { /// consensus state associated with the channel @@ -416,7 +397,6 @@ pub struct QueryChannelConsensusStateResponse { } /// QueryPacketCommitmentRequest is the request type for the /// Query/PacketCommitment RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentRequest { /// port unique identifier @@ -432,7 +412,6 @@ pub struct QueryPacketCommitmentRequest { /// QueryPacketCommitmentResponse defines the client query response for a packet /// which also includes a proof and the height from which the proof was /// retrieved -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentResponse { /// packet associated with the request fields @@ -447,7 +426,6 @@ pub struct QueryPacketCommitmentResponse { } /// QueryPacketCommitmentsRequest is the request type for the /// Query/QueryPacketCommitments RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentsRequest { /// port unique identifier @@ -464,7 +442,6 @@ pub struct QueryPacketCommitmentsRequest { } /// QueryPacketCommitmentsResponse is the request type for the /// Query/QueryPacketCommitments RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentsResponse { #[prost(message, repeated, tag = "1")] @@ -480,7 +457,6 @@ pub struct QueryPacketCommitmentsResponse { } /// QueryPacketReceiptRequest is the request type for the /// Query/PacketReceipt RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketReceiptRequest { /// port unique identifier @@ -496,7 +472,6 @@ pub struct QueryPacketReceiptRequest { /// QueryPacketReceiptResponse defines the client query response for a packet /// receipt which also includes a proof, and the height from which the proof was /// retrieved -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketReceiptResponse { /// success flag for if receipt exists @@ -511,7 +486,6 @@ pub struct QueryPacketReceiptResponse { } /// QueryPacketAcknowledgementRequest is the request type for the /// Query/PacketAcknowledgement RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementRequest { /// port unique identifier @@ -527,7 +501,6 @@ pub struct QueryPacketAcknowledgementRequest { /// QueryPacketAcknowledgementResponse defines the client query response for a /// packet which also includes a proof and the height from which the /// proof was retrieved -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementResponse { /// packet associated with the request fields @@ -542,7 +515,6 @@ pub struct QueryPacketAcknowledgementResponse { } /// QueryPacketAcknowledgementsRequest is the request type for the /// Query/QueryPacketCommitments RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementsRequest { /// port unique identifier @@ -562,7 +534,6 @@ pub struct QueryPacketAcknowledgementsRequest { } /// QueryPacketAcknowledgemetsResponse is the request type for the /// Query/QueryPacketAcknowledgements RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementsResponse { #[prost(message, repeated, tag = "1")] @@ -578,7 +549,6 @@ pub struct QueryPacketAcknowledgementsResponse { } /// QueryUnreceivedPacketsRequest is the request type for the /// Query/UnreceivedPackets RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedPacketsRequest { /// port unique identifier @@ -593,7 +563,6 @@ pub struct QueryUnreceivedPacketsRequest { } /// QueryUnreceivedPacketsResponse is the response type for the /// Query/UnreceivedPacketCommitments RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedPacketsResponse { /// list of unreceived packet sequences @@ -605,7 +574,6 @@ pub struct QueryUnreceivedPacketsResponse { } /// QueryUnreceivedAcks is the request type for the /// Query/UnreceivedAcks RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedAcksRequest { /// port unique identifier @@ -620,7 +588,6 @@ pub struct QueryUnreceivedAcksRequest { } /// QueryUnreceivedAcksResponse is the response type for the /// Query/UnreceivedAcks RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedAcksResponse { /// list of unreceived acknowledgement sequences @@ -632,7 +599,6 @@ pub struct QueryUnreceivedAcksResponse { } /// QueryNextSequenceReceiveRequest is the request type for the /// Query/QueryNextSequenceReceiveRequest RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextSequenceReceiveRequest { /// port unique identifier @@ -644,7 +610,6 @@ pub struct QueryNextSequenceReceiveRequest { } /// QuerySequenceResponse is the request type for the /// Query/QueryNextSequenceReceiveResponse RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextSequenceReceiveResponse { /// next sequence receive number @@ -659,7 +624,13 @@ pub struct QueryNextSequenceReceiveResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service @@ -682,8 +653,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -708,7 +679,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -755,8 +726,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -781,8 +751,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -808,8 +777,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -837,8 +805,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -866,8 +833,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -894,8 +860,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -923,8 +888,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -952,8 +916,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -978,8 +941,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1007,8 +969,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1039,8 +1000,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1068,8 +1028,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1094,8 +1053,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1114,7 +1072,6 @@ pub mod query_client { } /// MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It /// is called by a relayer on Chain A. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenInit { #[prost(string, tag = "1")] @@ -1125,7 +1082,6 @@ pub struct MsgChannelOpenInit { pub signer: ::prost::alloc::string::String, } /// MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenInitResponse { #[prost(string, tag = "1")] @@ -1136,7 +1092,6 @@ pub struct MsgChannelOpenInitResponse { /// MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel /// on Chain B. The version field within the Channel field has been deprecated. Its /// value will be ignored by core IBC. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenTry { #[prost(string, tag = "1")] @@ -1158,7 +1113,6 @@ pub struct MsgChannelOpenTry { pub signer: ::prost::alloc::string::String, } /// MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenTryResponse { #[prost(string, tag = "1")] @@ -1166,7 +1120,6 @@ pub struct MsgChannelOpenTryResponse { } /// MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge /// the change of channel state to TRYOPEN on Chain B. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenAck { #[prost(string, tag = "1")] @@ -1185,12 +1138,10 @@ pub struct MsgChannelOpenAck { pub signer: ::prost::alloc::string::String, } /// MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgChannelOpenAckResponse {} /// MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to /// acknowledge the change of channel state to OPEN on Chain A. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenConfirm { #[prost(string, tag = "1")] @@ -1206,12 +1157,10 @@ pub struct MsgChannelOpenConfirm { } /// MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response /// type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgChannelOpenConfirmResponse {} /// MsgChannelCloseInit defines a msg sent by a Relayer to Chain A /// to close a channel with Chain B. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseInit { #[prost(string, tag = "1")] @@ -1222,12 +1171,10 @@ pub struct MsgChannelCloseInit { pub signer: ::prost::alloc::string::String, } /// MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgChannelCloseInitResponse {} /// MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B /// to acknowledge the change of channel state to CLOSED on Chain A. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseConfirm { #[prost(string, tag = "1")] @@ -1243,11 +1190,9 @@ pub struct MsgChannelCloseConfirm { } /// MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response /// type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgChannelCloseConfirmResponse {} /// MsgRecvPacket receives incoming IBC packet -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRecvPacket { #[prost(message, optional, tag = "1")] @@ -1260,14 +1205,12 @@ pub struct MsgRecvPacket { pub signer: ::prost::alloc::string::String, } /// MsgRecvPacketResponse defines the Msg/RecvPacket response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRecvPacketResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } /// MsgTimeout receives timed-out packet -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeout { #[prost(message, optional, tag = "1")] @@ -1282,14 +1225,12 @@ pub struct MsgTimeout { pub signer: ::prost::alloc::string::String, } /// MsgTimeoutResponse defines the Msg/Timeout response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgTimeoutResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } /// MsgTimeoutOnClose timed-out packet upon counterparty channel closure. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeoutOnClose { #[prost(message, optional, tag = "1")] @@ -1306,14 +1247,12 @@ pub struct MsgTimeoutOnClose { pub signer: ::prost::alloc::string::String, } /// MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgTimeoutOnCloseResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } /// MsgAcknowledgement receives incoming IBC acknowledgement -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAcknowledgement { #[prost(message, optional, tag = "1")] @@ -1328,8 +1267,7 @@ pub struct MsgAcknowledgement { pub signer: ::prost::alloc::string::String, } /// MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgAcknowledgementResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, @@ -1352,9 +1290,9 @@ impl ResponseResultType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ResponseResultType::Unspecified => "RESPONSE_RESULT_TYPE_UNSPECIFIED", - ResponseResultType::Noop => "RESPONSE_RESULT_TYPE_NOOP", - ResponseResultType::Success => "RESPONSE_RESULT_TYPE_SUCCESS", + Self::Unspecified => "RESPONSE_RESULT_TYPE_UNSPECIFIED", + Self::Noop => "RESPONSE_RESULT_TYPE_NOOP", + Self::Success => "RESPONSE_RESULT_TYPE_SUCCESS", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1369,7 +1307,13 @@ impl ResponseResultType { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the ibc/channel Msg service. @@ -1392,8 +1336,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -1418,7 +1362,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -1465,8 +1409,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1491,8 +1434,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1517,8 +1459,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1543,8 +1484,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1571,8 +1511,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1598,8 +1537,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1626,8 +1564,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1652,8 +1589,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1678,8 +1614,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1704,8 +1639,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.core.client.v1.rs b/cosmos_sdk_proto/src/prost/ibc.core.client.v1.rs index 8611de0..5bf6449 100644 --- a/cosmos_sdk_proto/src/prost/ibc.core.client.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.core.client.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// IdentifiedClientState defines a client state with an additional client /// identifier field. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedClientState { /// client identifier @@ -12,7 +12,6 @@ pub struct IdentifiedClientState { } /// ConsensusStateWithHeight defines a consensus state with an additional height /// field. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusStateWithHeight { /// consensus state height @@ -24,7 +23,6 @@ pub struct ConsensusStateWithHeight { } /// ClientConsensusStates defines all the stored consensus states for a given /// client. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientConsensusStates { /// client identifier @@ -38,7 +36,6 @@ pub struct ClientConsensusStates { /// client's latest consensus state is copied over to the subject client. The proposal /// handler may fail if the subject and the substitute do not match in client and /// chain parameters (with exception to latest height, frozen height, and chain-id). -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientUpdateProposal { /// the title of the update proposal @@ -57,7 +54,6 @@ pub struct ClientUpdateProposal { } /// UpgradeProposal is a gov Content type for initiating an IBC breaking /// upgrade. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeProposal { #[prost(string, tag = "1")] @@ -87,8 +83,7 @@ pub struct UpgradeProposal { /// breaking changes In these cases, the RevisionNumber is incremented so that /// height continues to be monitonically increasing even as the RevisionHeight /// gets reset -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Height { /// the revision that the client is currently on #[prost(uint64, tag = "1")] @@ -98,7 +93,6 @@ pub struct Height { pub revision_height: u64, } /// Params defines the set of IBC light client parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// allowed_clients defines the list of allowed client state types. @@ -106,7 +100,6 @@ pub struct Params { pub allowed_clients: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// GenesisState defines the ibc client submodule's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// client states with their corresponding identifiers @@ -129,7 +122,6 @@ pub struct GenesisState { } /// GenesisMetadata defines the genesis type for metadata that clients may return /// with ExportMetadata -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisMetadata { /// store key of metadata without clientID-prefix @@ -141,7 +133,6 @@ pub struct GenesisMetadata { } /// IdentifiedGenesisMetadata has the client metadata with the corresponding /// client id. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedGenesisMetadata { #[prost(string, tag = "1")] @@ -151,7 +142,6 @@ pub struct IdentifiedGenesisMetadata { } /// QueryClientStateRequest is the request type for the Query/ClientState RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStateRequest { /// client state unique identifier @@ -161,7 +151,6 @@ pub struct QueryClientStateRequest { /// QueryClientStateResponse is the response type for the Query/ClientState RPC /// method. Besides the client state, it includes a proof and the height from /// which the proof was retrieved. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStateResponse { /// client state associated with the request identifier @@ -176,7 +165,6 @@ pub struct QueryClientStateResponse { } /// QueryClientStatesRequest is the request type for the Query/ClientStates RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatesRequest { /// pagination request @@ -187,7 +175,6 @@ pub struct QueryClientStatesRequest { } /// QueryClientStatesResponse is the response type for the Query/ClientStates RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatesResponse { /// list of stored ClientStates of the chain. @@ -202,7 +189,6 @@ pub struct QueryClientStatesResponse { /// QueryConsensusStateRequest is the request type for the Query/ConsensusState /// RPC method. Besides the consensus state, it includes a proof and the height /// from which the proof was retrieved. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateRequest { /// client identifier @@ -221,7 +207,6 @@ pub struct QueryConsensusStateRequest { } /// QueryConsensusStateResponse is the response type for the Query/ConsensusState /// RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateResponse { /// consensus state associated with the client identifier at the given height @@ -236,7 +221,6 @@ pub struct QueryConsensusStateResponse { } /// QueryConsensusStatesRequest is the request type for the Query/ConsensusStates /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStatesRequest { /// client identifier @@ -250,7 +234,6 @@ pub struct QueryConsensusStatesRequest { } /// QueryConsensusStatesResponse is the response type for the /// Query/ConsensusStates RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStatesResponse { /// consensus states associated with the identifier @@ -264,7 +247,6 @@ pub struct QueryConsensusStatesResponse { } /// QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights /// RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateHeightsRequest { /// client identifier @@ -278,7 +260,6 @@ pub struct QueryConsensusStateHeightsRequest { } /// QueryConsensusStateHeightsResponse is the response type for the /// Query/ConsensusStateHeights RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateHeightsResponse { /// consensus state heights @@ -292,7 +273,6 @@ pub struct QueryConsensusStateHeightsResponse { } /// QueryClientStatusRequest is the request type for the Query/ClientStatus RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatusRequest { /// client unique identifier @@ -301,7 +281,6 @@ pub struct QueryClientStatusRequest { } /// QueryClientStatusResponse is the response type for the Query/ClientStatus RPC /// method. It returns the current status of the IBC client. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatusResponse { #[prost(string, tag = "1")] @@ -309,12 +288,10 @@ pub struct QueryClientStatusResponse { } /// QueryClientParamsRequest is the request type for the Query/ClientParams RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryClientParamsRequest {} /// QueryClientParamsResponse is the response type for the Query/ClientParams RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientParamsResponse { /// params defines the parameters of the module. @@ -323,12 +300,10 @@ pub struct QueryClientParamsResponse { } /// QueryUpgradedClientStateRequest is the request type for the /// Query/UpgradedClientState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryUpgradedClientStateRequest {} /// QueryUpgradedClientStateResponse is the response type for the /// Query/UpgradedClientState RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedClientStateResponse { /// client state associated with the request identifier @@ -337,12 +312,10 @@ pub struct QueryUpgradedClientStateResponse { } /// QueryUpgradedConsensusStateRequest is the request type for the /// Query/UpgradedConsensusState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateRequest {} /// QueryUpgradedConsensusStateResponse is the response type for the /// Query/UpgradedConsensusState RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateResponse { /// Consensus state associated with the request identifier @@ -351,7 +324,13 @@ pub struct QueryUpgradedConsensusStateResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service @@ -374,8 +353,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -400,7 +379,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -447,8 +426,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -473,8 +451,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -500,8 +477,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -527,8 +503,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -553,8 +528,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -581,8 +555,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -607,8 +580,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -633,8 +605,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -661,8 +632,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -680,7 +650,6 @@ pub mod query_client { } } /// MsgCreateClient defines a message to create an IBC client -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateClient { /// light client state @@ -695,12 +664,10 @@ pub struct MsgCreateClient { pub signer: ::prost::alloc::string::String, } /// MsgCreateClientResponse defines the Msg/CreateClient response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCreateClientResponse {} /// MsgUpdateClient defines an sdk.Msg to update a IBC client state using /// the given header. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateClient { /// client unique identifier @@ -714,12 +681,10 @@ pub struct MsgUpdateClient { pub signer: ::prost::alloc::string::String, } /// MsgUpdateClientResponse defines the Msg/UpdateClient response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpdateClientResponse {} /// MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client /// state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpgradeClient { /// client unique identifier @@ -743,12 +708,10 @@ pub struct MsgUpgradeClient { pub signer: ::prost::alloc::string::String, } /// MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgUpgradeClientResponse {} /// MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for /// light client misbehaviour. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitMisbehaviour { /// client unique identifier @@ -763,12 +726,17 @@ pub struct MsgSubmitMisbehaviour { } /// MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response /// type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSubmitMisbehaviourResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the ibc/client Msg service. @@ -791,8 +759,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -817,7 +785,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -864,8 +832,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -890,8 +857,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -916,8 +882,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -942,8 +907,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.core.commitment.v1.rs b/cosmos_sdk_proto/src/prost/ibc.core.commitment.v1.rs index b87d8fd..c772a9c 100644 --- a/cosmos_sdk_proto/src/prost/ibc.core.commitment.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.core.commitment.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// MerkleRoot defines a merkle root hash. /// In the Cosmos SDK, the AppHash of a block header becomes the root. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerkleRoot { #[prost(bytes = "vec", tag = "1")] @@ -9,7 +9,6 @@ pub struct MerkleRoot { /// MerklePrefix is merkle path prefixed to the key. /// The constructed key from the Path and the key will be append(Path.KeyPath, /// append(Path.KeyPrefix, key...)) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerklePrefix { #[prost(bytes = "vec", tag = "1")] @@ -18,7 +17,6 @@ pub struct MerklePrefix { /// MerklePath is the path used to verify commitment proofs, which can be an /// arbitrary structured object (defined by a commitment type). /// MerklePath is represented from root-to-leaf -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerklePath { #[prost(string, repeated, tag = "1")] @@ -29,7 +27,6 @@ pub struct MerklePath { /// elements, verifiable in conjunction with a known commitment root. Proofs /// should be succinct. /// MerkleProofs are ordered from leaf-to-root -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerkleProof { #[prost(message, repeated, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/ibc.core.connection.v1.rs b/cosmos_sdk_proto/src/prost/ibc.core.connection.v1.rs index 2406cbd..fa52c6c 100644 --- a/cosmos_sdk_proto/src/prost/ibc.core.connection.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.core.connection.v1.rs @@ -1,8 +1,8 @@ +// This file is @generated by prost-build. /// ConnectionEnd defines a stateful object on a chain connected to another /// separate one. /// NOTE: there must only be 2 defined ConnectionEnds to establish /// a connection between two chains. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionEnd { /// client associated with this connection. @@ -26,7 +26,6 @@ pub struct ConnectionEnd { } /// IdentifiedConnection defines a connection with additional connection /// identifier field. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedConnection { /// connection identifier. @@ -50,7 +49,6 @@ pub struct IdentifiedConnection { pub delay_period: u64, } /// Counterparty defines the counterparty chain associated with a connection end. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Counterparty { /// identifies the client on the counterparty chain associated with a given @@ -66,7 +64,6 @@ pub struct Counterparty { pub prefix: ::core::option::Option, } /// ClientPaths define all the connection paths for a client state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientPaths { /// list of connection paths @@ -74,7 +71,6 @@ pub struct ClientPaths { pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// ConnectionPaths define all the connection paths for a given client state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionPaths { /// client state unique identifier @@ -86,7 +82,6 @@ pub struct ConnectionPaths { } /// Version defines the versioning scheme used to negotiate the IBC verison in /// the connection handshake. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Version { /// unique version identifier @@ -97,8 +92,7 @@ pub struct Version { pub features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// Params defines the set of Connection parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Params { /// maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the /// largest amount of time that the chain might reasonably take to produce the next block under normal operating @@ -128,10 +122,10 @@ impl State { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - State::UninitializedUnspecified => "STATE_UNINITIALIZED_UNSPECIFIED", - State::Init => "STATE_INIT", - State::Tryopen => "STATE_TRYOPEN", - State::Open => "STATE_OPEN", + Self::UninitializedUnspecified => "STATE_UNINITIALIZED_UNSPECIFIED", + Self::Init => "STATE_INIT", + Self::Tryopen => "STATE_TRYOPEN", + Self::Open => "STATE_OPEN", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -146,7 +140,6 @@ impl State { } } /// GenesisState defines the ibc connection submodule's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, repeated, tag = "1")] @@ -161,7 +154,6 @@ pub struct GenesisState { } /// QueryConnectionRequest is the request type for the Query/Connection RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionRequest { /// connection unique identifier @@ -171,7 +163,6 @@ pub struct QueryConnectionRequest { /// QueryConnectionResponse is the response type for the Query/Connection RPC /// method. Besides the connection end, it includes a proof and the height from /// which the proof was retrieved. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionResponse { /// connection associated with the request identifier @@ -186,7 +177,6 @@ pub struct QueryConnectionResponse { } /// QueryConnectionsRequest is the request type for the Query/Connections RPC /// method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionsRequest { #[prost(message, optional, tag = "1")] @@ -196,7 +186,6 @@ pub struct QueryConnectionsRequest { } /// QueryConnectionsResponse is the response type for the Query/Connections RPC /// method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionsResponse { /// list of stored connections of the chain. @@ -213,7 +202,6 @@ pub struct QueryConnectionsResponse { } /// QueryClientConnectionsRequest is the request type for the /// Query/ClientConnections RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientConnectionsRequest { /// client identifier associated with a connection @@ -222,7 +210,6 @@ pub struct QueryClientConnectionsRequest { } /// QueryClientConnectionsResponse is the response type for the /// Query/ClientConnections RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientConnectionsResponse { /// slice of all the connection paths associated with a client. @@ -237,7 +224,6 @@ pub struct QueryClientConnectionsResponse { } /// QueryConnectionClientStateRequest is the request type for the /// Query/ConnectionClientState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionClientStateRequest { /// connection identifier @@ -246,7 +232,6 @@ pub struct QueryConnectionClientStateRequest { } /// QueryConnectionClientStateResponse is the response type for the /// Query/ConnectionClientState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionClientStateResponse { /// client state associated with the channel @@ -263,7 +248,6 @@ pub struct QueryConnectionClientStateResponse { } /// QueryConnectionConsensusStateRequest is the request type for the /// Query/ConnectionConsensusState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionConsensusStateRequest { /// connection identifier @@ -276,7 +260,6 @@ pub struct QueryConnectionConsensusStateRequest { } /// QueryConnectionConsensusStateResponse is the response type for the /// Query/ConnectionConsensusState RPC method -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionConsensusStateResponse { /// consensus state associated with the channel @@ -294,7 +277,13 @@ pub struct QueryConnectionConsensusStateResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query provides defines the gRPC querier service @@ -317,8 +306,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -343,7 +332,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -390,8 +379,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -416,8 +404,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -443,8 +430,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -472,8 +458,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -504,8 +489,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -527,7 +511,6 @@ pub mod query_client { } /// MsgConnectionOpenInit defines the msg sent by an account on Chain A to /// initialize a connection with Chain B. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenInit { #[prost(string, tag = "1")] @@ -543,12 +526,10 @@ pub struct MsgConnectionOpenInit { } /// MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response /// type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenInitResponse {} /// MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a /// connection on Chain B. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenTry { #[prost(string, tag = "1")] @@ -583,12 +564,10 @@ pub struct MsgConnectionOpenTry { pub signer: ::prost::alloc::string::String, } /// MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenTryResponse {} /// MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to /// acknowledge the change of connection state to TRYOPEN on Chain B. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenAck { #[prost(string, tag = "1")] @@ -617,12 +596,10 @@ pub struct MsgConnectionOpenAck { pub signer: ::prost::alloc::string::String, } /// MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenAckResponse {} /// MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to /// acknowledge the change of connection state to OPEN on Chain A. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenConfirm { #[prost(string, tag = "1")] @@ -637,12 +614,17 @@ pub struct MsgConnectionOpenConfirm { } /// MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm /// response type. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenConfirmResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the ibc/connection Msg service. @@ -665,8 +647,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -691,7 +673,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -738,8 +720,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -766,8 +747,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -794,8 +774,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -823,8 +802,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/cosmos_sdk_proto/src/prost/ibc.core.types.v1.rs b/cosmos_sdk_proto/src/prost/ibc.core.types.v1.rs index 1b9a91a..a190433 100644 --- a/cosmos_sdk_proto/src/prost/ibc.core.types.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.core.types.v1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState defines the ibc module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// ICS002 - Clients genesis state diff --git a/cosmos_sdk_proto/src/prost/ibc.lightclients.localhost.v1.rs b/cosmos_sdk_proto/src/prost/ibc.lightclients.localhost.v1.rs index 980676d..95fbec9 100644 --- a/cosmos_sdk_proto/src/prost/ibc.lightclients.localhost.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.lightclients.localhost.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// ClientState defines a loopback (localhost) client. It requires (read-only) /// access to keys outside the client prefix. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { /// self chain ID diff --git a/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v1.rs b/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v1.rs index 6ce8e41..f478ca4 100644 --- a/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// ClientState defines a solo machine client that tracks the current consensus /// state and if the client is frozen. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { /// latest sequence of the client state @@ -19,7 +19,6 @@ pub struct ClientState { /// ConsensusState defines a solo machine consensus state. The sequence of a /// consensus state is contained in the "height" key used in storing the /// consensus state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// public key of the solo machine @@ -34,7 +33,6 @@ pub struct ConsensusState { pub timestamp: u64, } /// Header defines a solo machine consensus header -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { /// sequence to update solo machine public key at @@ -51,7 +49,6 @@ pub struct Header { } /// Misbehaviour defines misbehaviour for a solo machine which consists /// of a sequence and two signatures over different messages at that sequence. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { #[prost(string, tag = "1")] @@ -65,7 +62,6 @@ pub struct Misbehaviour { } /// SignatureAndData contains a signature and the data signed over to create that /// signature. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureAndData { #[prost(bytes = "vec", tag = "1")] @@ -79,7 +75,6 @@ pub struct SignatureAndData { } /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampedSignatureData { #[prost(bytes = "vec", tag = "1")] @@ -88,7 +83,6 @@ pub struct TimestampedSignatureData { pub timestamp: u64, } /// SignBytes defines the signed bytes used for signature verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignBytes { #[prost(uint64, tag = "1")] @@ -105,7 +99,6 @@ pub struct SignBytes { pub data: ::prost::alloc::vec::Vec, } /// HeaderData returns the SignBytes data for update verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HeaderData { /// header public key @@ -116,7 +109,6 @@ pub struct HeaderData { pub new_diversifier: ::prost::alloc::string::String, } /// ClientStateData returns the SignBytes data for client state verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientStateData { #[prost(bytes = "vec", tag = "1")] @@ -126,7 +118,6 @@ pub struct ClientStateData { } /// ConsensusStateData returns the SignBytes data for consensus state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusStateData { #[prost(bytes = "vec", tag = "1")] @@ -136,7 +127,6 @@ pub struct ConsensusStateData { } /// ConnectionStateData returns the SignBytes data for connection state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionStateData { #[prost(bytes = "vec", tag = "1")] @@ -148,7 +138,6 @@ pub struct ConnectionStateData { } /// ChannelStateData returns the SignBytes data for channel state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChannelStateData { #[prost(bytes = "vec", tag = "1")] @@ -158,7 +147,6 @@ pub struct ChannelStateData { } /// PacketCommitmentData returns the SignBytes data for packet commitment /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketCommitmentData { #[prost(bytes = "vec", tag = "1")] @@ -168,7 +156,6 @@ pub struct PacketCommitmentData { } /// PacketAcknowledgementData returns the SignBytes data for acknowledgement /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketAcknowledgementData { #[prost(bytes = "vec", tag = "1")] @@ -178,7 +165,6 @@ pub struct PacketAcknowledgementData { } /// PacketReceiptAbsenceData returns the SignBytes data for /// packet receipt absence verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketReceiptAbsenceData { #[prost(bytes = "vec", tag = "1")] @@ -186,7 +172,6 @@ pub struct PacketReceiptAbsenceData { } /// NextSequenceRecvData returns the SignBytes data for verification of the next /// sequence to be received. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NextSequenceRecvData { #[prost(bytes = "vec", tag = "1")] @@ -227,16 +212,16 @@ impl DataType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - DataType::UninitializedUnspecified => "DATA_TYPE_UNINITIALIZED_UNSPECIFIED", - DataType::ClientState => "DATA_TYPE_CLIENT_STATE", - DataType::ConsensusState => "DATA_TYPE_CONSENSUS_STATE", - DataType::ConnectionState => "DATA_TYPE_CONNECTION_STATE", - DataType::ChannelState => "DATA_TYPE_CHANNEL_STATE", - DataType::PacketCommitment => "DATA_TYPE_PACKET_COMMITMENT", - DataType::PacketAcknowledgement => "DATA_TYPE_PACKET_ACKNOWLEDGEMENT", - DataType::PacketReceiptAbsence => "DATA_TYPE_PACKET_RECEIPT_ABSENCE", - DataType::NextSequenceRecv => "DATA_TYPE_NEXT_SEQUENCE_RECV", - DataType::Header => "DATA_TYPE_HEADER", + Self::UninitializedUnspecified => "DATA_TYPE_UNINITIALIZED_UNSPECIFIED", + Self::ClientState => "DATA_TYPE_CLIENT_STATE", + Self::ConsensusState => "DATA_TYPE_CONSENSUS_STATE", + Self::ConnectionState => "DATA_TYPE_CONNECTION_STATE", + Self::ChannelState => "DATA_TYPE_CHANNEL_STATE", + Self::PacketCommitment => "DATA_TYPE_PACKET_COMMITMENT", + Self::PacketAcknowledgement => "DATA_TYPE_PACKET_ACKNOWLEDGEMENT", + Self::PacketReceiptAbsence => "DATA_TYPE_PACKET_RECEIPT_ABSENCE", + Self::NextSequenceRecv => "DATA_TYPE_NEXT_SEQUENCE_RECV", + Self::Header => "DATA_TYPE_HEADER", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v2.rs b/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v2.rs index 1768696..ae94b1f 100644 --- a/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v2.rs +++ b/cosmos_sdk_proto/src/prost/ibc.lightclients.solomachine.v2.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// ClientState defines a solo machine client that tracks the current consensus /// state and if the client is frozen. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { /// latest sequence of the client state @@ -19,7 +19,6 @@ pub struct ClientState { /// ConsensusState defines a solo machine consensus state. The sequence of a /// consensus state is contained in the "height" key used in storing the /// consensus state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// public key of the solo machine @@ -34,7 +33,6 @@ pub struct ConsensusState { pub timestamp: u64, } /// Header defines a solo machine consensus header -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { /// sequence to update solo machine public key at @@ -51,7 +49,6 @@ pub struct Header { } /// Misbehaviour defines misbehaviour for a solo machine which consists /// of a sequence and two signatures over different messages at that sequence. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { #[prost(string, tag = "1")] @@ -65,7 +62,6 @@ pub struct Misbehaviour { } /// SignatureAndData contains a signature and the data signed over to create that /// signature. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureAndData { #[prost(bytes = "vec", tag = "1")] @@ -79,7 +75,6 @@ pub struct SignatureAndData { } /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampedSignatureData { #[prost(bytes = "vec", tag = "1")] @@ -88,7 +83,6 @@ pub struct TimestampedSignatureData { pub timestamp: u64, } /// SignBytes defines the signed bytes used for signature verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignBytes { #[prost(uint64, tag = "1")] @@ -105,7 +99,6 @@ pub struct SignBytes { pub data: ::prost::alloc::vec::Vec, } /// HeaderData returns the SignBytes data for update verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HeaderData { /// header public key @@ -116,7 +109,6 @@ pub struct HeaderData { pub new_diversifier: ::prost::alloc::string::String, } /// ClientStateData returns the SignBytes data for client state verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientStateData { #[prost(bytes = "vec", tag = "1")] @@ -126,7 +118,6 @@ pub struct ClientStateData { } /// ConsensusStateData returns the SignBytes data for consensus state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusStateData { #[prost(bytes = "vec", tag = "1")] @@ -136,7 +127,6 @@ pub struct ConsensusStateData { } /// ConnectionStateData returns the SignBytes data for connection state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionStateData { #[prost(bytes = "vec", tag = "1")] @@ -148,7 +138,6 @@ pub struct ConnectionStateData { } /// ChannelStateData returns the SignBytes data for channel state /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChannelStateData { #[prost(bytes = "vec", tag = "1")] @@ -158,7 +147,6 @@ pub struct ChannelStateData { } /// PacketCommitmentData returns the SignBytes data for packet commitment /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketCommitmentData { #[prost(bytes = "vec", tag = "1")] @@ -168,7 +156,6 @@ pub struct PacketCommitmentData { } /// PacketAcknowledgementData returns the SignBytes data for acknowledgement /// verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketAcknowledgementData { #[prost(bytes = "vec", tag = "1")] @@ -178,7 +165,6 @@ pub struct PacketAcknowledgementData { } /// PacketReceiptAbsenceData returns the SignBytes data for /// packet receipt absence verification. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketReceiptAbsenceData { #[prost(bytes = "vec", tag = "1")] @@ -186,7 +172,6 @@ pub struct PacketReceiptAbsenceData { } /// NextSequenceRecvData returns the SignBytes data for verification of the next /// sequence to be received. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NextSequenceRecvData { #[prost(bytes = "vec", tag = "1")] @@ -227,16 +212,16 @@ impl DataType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - DataType::UninitializedUnspecified => "DATA_TYPE_UNINITIALIZED_UNSPECIFIED", - DataType::ClientState => "DATA_TYPE_CLIENT_STATE", - DataType::ConsensusState => "DATA_TYPE_CONSENSUS_STATE", - DataType::ConnectionState => "DATA_TYPE_CONNECTION_STATE", - DataType::ChannelState => "DATA_TYPE_CHANNEL_STATE", - DataType::PacketCommitment => "DATA_TYPE_PACKET_COMMITMENT", - DataType::PacketAcknowledgement => "DATA_TYPE_PACKET_ACKNOWLEDGEMENT", - DataType::PacketReceiptAbsence => "DATA_TYPE_PACKET_RECEIPT_ABSENCE", - DataType::NextSequenceRecv => "DATA_TYPE_NEXT_SEQUENCE_RECV", - DataType::Header => "DATA_TYPE_HEADER", + Self::UninitializedUnspecified => "DATA_TYPE_UNINITIALIZED_UNSPECIFIED", + Self::ClientState => "DATA_TYPE_CLIENT_STATE", + Self::ConsensusState => "DATA_TYPE_CONSENSUS_STATE", + Self::ConnectionState => "DATA_TYPE_CONNECTION_STATE", + Self::ChannelState => "DATA_TYPE_CHANNEL_STATE", + Self::PacketCommitment => "DATA_TYPE_PACKET_COMMITMENT", + Self::PacketAcknowledgement => "DATA_TYPE_PACKET_ACKNOWLEDGEMENT", + Self::PacketReceiptAbsence => "DATA_TYPE_PACKET_RECEIPT_ABSENCE", + Self::NextSequenceRecv => "DATA_TYPE_NEXT_SEQUENCE_RECV", + Self::Header => "DATA_TYPE_HEADER", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/ibc.lightclients.tendermint.v1.rs b/cosmos_sdk_proto/src/prost/ibc.lightclients.tendermint.v1.rs index 45e9ef8..70577b7 100644 --- a/cosmos_sdk_proto/src/prost/ibc.lightclients.tendermint.v1.rs +++ b/cosmos_sdk_proto/src/prost/ibc.lightclients.tendermint.v1.rs @@ -1,6 +1,6 @@ +// This file is @generated by prost-build. /// ClientState from Tendermint tracks the current validator set, latest height, /// and a possible frozen height. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { #[prost(string, tag = "1")] @@ -51,7 +51,6 @@ pub struct ClientState { pub allow_update_after_misbehaviour: bool, } /// ConsensusState defines the consensus state from Tendermint. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// timestamp that corresponds to the block height in which the ConsensusState @@ -68,7 +67,6 @@ pub struct ConsensusState { } /// Misbehaviour is a wrapper over two conflicting Headers /// that implements Misbehaviour interface expected by ICS-02 -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { #[prost(string, tag = "1")] @@ -90,7 +88,6 @@ pub struct Misbehaviour { /// current time in order to correctly verify, and the TrustedValidators must /// hash to TrustedConsensusState.NextValidatorsHash since that is the last /// trusted validator set at the TrustedHeight. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { #[prost(message, optional, tag = "1")] @@ -112,8 +109,7 @@ pub struct Header { } /// Fraction defines the protobuf message type for tmmath.Fraction that only /// supports positive values. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Fraction { #[prost(uint64, tag = "1")] pub numerator: u64, diff --git a/cosmos_sdk_proto/src/prost/ics23.rs b/cosmos_sdk_proto/src/prost/ics23.rs index 0f545e5..0d59b98 100644 --- a/cosmos_sdk_proto/src/prost/ics23.rs +++ b/cosmos_sdk_proto/src/prost/ics23.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. /// * /// ExistenceProof takes a key and a value and a set of steps to perform on it. /// The result of peforming all these steps will provide a "root hash", which can @@ -18,7 +19,6 @@ /// With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field /// in the ProofSpec is valuable to prevent this mutability. And why all trees should /// length-prefix the data before hashing it. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExistenceProof { #[prost(bytes = "vec", tag = "1")] @@ -34,7 +34,6 @@ pub struct ExistenceProof { /// NonExistenceProof takes a proof of two neighbors, one left of the desired key, /// one right of the desired key. If both proofs are valid AND they are neighbors, /// then there is no valid proof for the given key. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NonExistenceProof { /// TODO: remove this as unnecessary??? we prove a range @@ -47,7 +46,6 @@ pub struct NonExistenceProof { } /// /// CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitmentProof { #[prost(oneof = "commitment_proof::Proof", tags = "1, 2, 3, 4")] @@ -55,7 +53,6 @@ pub struct CommitmentProof { } /// Nested message and enum types in `CommitmentProof`. pub mod commitment_proof { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { #[prost(message, tag = "1")] @@ -83,7 +80,6 @@ pub mod commitment_proof { /// /// Then combine the bytes, and hash it /// output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LeafOp { #[prost(enumeration = "HashOp", tag = "1")] @@ -115,7 +111,6 @@ pub struct LeafOp { /// Any special data, like prepending child with the length, or prepending the entire operation with /// some value to differentiate from leaf nodes, should be included in prefix and suffix. /// If either of prefix or suffix is empty, we just treat it as an empty string -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InnerOp { #[prost(enumeration = "HashOp", tag = "1")] @@ -136,7 +131,6 @@ pub struct InnerOp { /// generate a given hash (by interpretting the preimage differently). /// We need this for proper security, requires client knows a priori what /// tree format server uses. But not in code, rather a configuration object. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofSpec { /// any field in the ExistenceProof must be the same as in this spec. @@ -161,7 +155,6 @@ pub struct ProofSpec { /// isLeftMost(spec: InnerSpec, op: InnerOp) /// isRightMost(spec: InnerSpec, op: InnerOp) /// isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InnerSpec { /// Child order is the ordering of the children node, must count from 0 @@ -184,14 +177,12 @@ pub struct InnerSpec { } /// /// BatchProof is a group of multiple proof types than can be compressed -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BatchProof { #[prost(message, repeated, tag = "1")] pub entries: ::prost::alloc::vec::Vec, } /// Use BatchEntry not CommitmentProof, to avoid recursion -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BatchEntry { #[prost(oneof = "batch_entry::Proof", tags = "1, 2")] @@ -199,7 +190,6 @@ pub struct BatchEntry { } /// Nested message and enum types in `BatchEntry`. pub mod batch_entry { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { #[prost(message, tag = "1")] @@ -208,7 +198,6 @@ pub mod batch_entry { Nonexist(super::NonExistenceProof), } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedBatchProof { #[prost(message, repeated, tag = "1")] @@ -217,7 +206,6 @@ pub struct CompressedBatchProof { pub lookup_inners: ::prost::alloc::vec::Vec, } /// Use BatchEntry not CommitmentProof, to avoid recursion -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedBatchEntry { #[prost(oneof = "compressed_batch_entry::Proof", tags = "1, 2")] @@ -225,7 +213,6 @@ pub struct CompressedBatchEntry { } /// Nested message and enum types in `CompressedBatchEntry`. pub mod compressed_batch_entry { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { #[prost(message, tag = "1")] @@ -234,7 +221,6 @@ pub mod compressed_batch_entry { Nonexist(super::CompressedNonExistenceProof), } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedExistenceProof { #[prost(bytes = "vec", tag = "1")] @@ -247,7 +233,6 @@ pub struct CompressedExistenceProof { #[prost(int32, repeated, tag = "4")] pub path: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedNonExistenceProof { /// TODO: remove this as unnecessary??? we prove a range @@ -277,12 +262,12 @@ impl HashOp { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - HashOp::NoHash => "NO_HASH", - HashOp::Sha256 => "SHA256", - HashOp::Sha512 => "SHA512", - HashOp::Keccak => "KECCAK", - HashOp::Ripemd160 => "RIPEMD160", - HashOp::Bitcoin => "BITCOIN", + Self::NoHash => "NO_HASH", + Self::Sha256 => "SHA256", + Self::Sha512 => "SHA512", + Self::Keccak => "KECCAK", + Self::Ripemd160 => "RIPEMD160", + Self::Bitcoin => "BITCOIN", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -332,15 +317,15 @@ impl LengthOp { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - LengthOp::NoPrefix => "NO_PREFIX", - LengthOp::VarProto => "VAR_PROTO", - LengthOp::VarRlp => "VAR_RLP", - LengthOp::Fixed32Big => "FIXED32_BIG", - LengthOp::Fixed32Little => "FIXED32_LITTLE", - LengthOp::Fixed64Big => "FIXED64_BIG", - LengthOp::Fixed64Little => "FIXED64_LITTLE", - LengthOp::Require32Bytes => "REQUIRE_32_BYTES", - LengthOp::Require64Bytes => "REQUIRE_64_BYTES", + Self::NoPrefix => "NO_PREFIX", + Self::VarProto => "VAR_PROTO", + Self::VarRlp => "VAR_RLP", + Self::Fixed32Big => "FIXED32_BIG", + Self::Fixed32Little => "FIXED32_LITTLE", + Self::Fixed64Big => "FIXED64_BIG", + Self::Fixed64Little => "FIXED64_LITTLE", + Self::Require32Bytes => "REQUIRE_32_BYTES", + Self::Require64Bytes => "REQUIRE_64_BYTES", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/tendermint.abci.rs b/cosmos_sdk_proto/src/prost/tendermint.abci.rs index f4c0b8a..fd8f9df 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.abci.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.abci.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct Request { #[prost( @@ -9,7 +9,6 @@ pub struct Request { } /// Nested message and enum types in `Request`. pub mod request { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { #[prost(message, tag = "1")] @@ -44,16 +43,13 @@ pub mod request { ApplySnapshotChunk(super::RequestApplySnapshotChunk), } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestEcho { #[prost(string, tag = "1")] pub message: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestFlush {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestInfo { #[prost(string, tag = "1")] @@ -64,7 +60,6 @@ pub struct RequestInfo { pub p2p_version: u64, } /// nondeterministic -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestSetOption { #[prost(string, tag = "1")] @@ -72,7 +67,6 @@ pub struct RequestSetOption { #[prost(string, tag = "2")] pub value: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestInitChain { #[prost(message, optional, tag = "1")] @@ -88,7 +82,6 @@ pub struct RequestInitChain { #[prost(int64, tag = "6")] pub initial_height: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestQuery { #[prost(bytes = "vec", tag = "1")] @@ -100,7 +93,6 @@ pub struct RequestQuery { #[prost(bool, tag = "4")] pub prove: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestBeginBlock { #[prost(bytes = "vec", tag = "1")] @@ -112,7 +104,6 @@ pub struct RequestBeginBlock { #[prost(message, repeated, tag = "4")] pub byzantine_validators: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestCheckTx { #[prost(bytes = "vec", tag = "1")] @@ -120,27 +111,22 @@ pub struct RequestCheckTx { #[prost(enumeration = "CheckTxType", tag = "2")] pub r#type: i32, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestDeliverTx { #[prost(bytes = "vec", tag = "1")] pub tx: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestEndBlock { #[prost(int64, tag = "1")] pub height: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestCommit {} /// lists available snapshots -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestListSnapshots {} /// offers a snapshot to the application -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestOfferSnapshot { /// snapshot offered by peers @@ -151,8 +137,7 @@ pub struct RequestOfferSnapshot { pub app_hash: ::prost::alloc::vec::Vec, } /// loads a snapshot chunk -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestLoadSnapshotChunk { #[prost(uint64, tag = "1")] pub height: u64, @@ -162,7 +147,6 @@ pub struct RequestLoadSnapshotChunk { pub chunk: u32, } /// Applies a snapshot chunk -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestApplySnapshotChunk { #[prost(uint32, tag = "1")] @@ -172,7 +156,6 @@ pub struct RequestApplySnapshotChunk { #[prost(string, tag = "3")] pub sender: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Response { #[prost( @@ -183,7 +166,6 @@ pub struct Response { } /// Nested message and enum types in `Response`. pub mod response { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { #[prost(message, tag = "1")] @@ -221,22 +203,18 @@ pub mod response { } } /// nondeterministic -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseException { #[prost(string, tag = "1")] pub error: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseEcho { #[prost(string, tag = "1")] pub message: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ResponseFlush {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseInfo { #[prost(string, tag = "1")] @@ -251,7 +229,6 @@ pub struct ResponseInfo { pub last_block_app_hash: ::prost::alloc::vec::Vec, } /// nondeterministic -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseSetOption { #[prost(uint32, tag = "1")] @@ -262,7 +239,6 @@ pub struct ResponseSetOption { #[prost(string, tag = "4")] pub info: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseInitChain { #[prost(message, optional, tag = "1")] @@ -272,7 +248,6 @@ pub struct ResponseInitChain { #[prost(bytes = "vec", tag = "3")] pub app_hash: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseQuery { #[prost(uint32, tag = "1")] @@ -298,13 +273,11 @@ pub struct ResponseQuery { #[prost(string, tag = "10")] pub codespace: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseBeginBlock { #[prost(message, repeated, tag = "1")] pub events: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseCheckTx { #[prost(uint32, tag = "1")] @@ -334,7 +307,6 @@ pub struct ResponseCheckTx { #[prost(string, tag = "11")] pub mempool_error: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseDeliverTx { #[prost(uint32, tag = "1")] @@ -357,7 +329,6 @@ pub struct ResponseDeliverTx { #[prost(string, tag = "8")] pub codespace: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseEndBlock { #[prost(message, repeated, tag = "1")] @@ -367,7 +338,6 @@ pub struct ResponseEndBlock { #[prost(message, repeated, tag = "3")] pub events: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseCommit { /// reserve 1 @@ -376,14 +346,12 @@ pub struct ResponseCommit { #[prost(int64, tag = "3")] pub retain_height: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseListSnapshots { #[prost(message, repeated, tag = "1")] pub snapshots: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ResponseOfferSnapshot { #[prost(enumeration = "response_offer_snapshot::Result", tag = "1")] pub result: i32, @@ -423,12 +391,12 @@ pub mod response_offer_snapshot { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Result::Unknown => "UNKNOWN", - Result::Accept => "ACCEPT", - Result::Abort => "ABORT", - Result::Reject => "REJECT", - Result::RejectFormat => "REJECT_FORMAT", - Result::RejectSender => "REJECT_SENDER", + Self::Unknown => "UNKNOWN", + Self::Accept => "ACCEPT", + Self::Abort => "ABORT", + Self::Reject => "REJECT", + Self::RejectFormat => "REJECT_FORMAT", + Self::RejectSender => "REJECT_SENDER", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -445,13 +413,11 @@ pub mod response_offer_snapshot { } } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseLoadSnapshotChunk { #[prost(bytes = "vec", tag = "1")] pub chunk: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseApplySnapshotChunk { #[prost(enumeration = "response_apply_snapshot_chunk::Result", tag = "1")] @@ -498,12 +464,12 @@ pub mod response_apply_snapshot_chunk { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Result::Unknown => "UNKNOWN", - Result::Accept => "ACCEPT", - Result::Abort => "ABORT", - Result::Retry => "RETRY", - Result::RetrySnapshot => "RETRY_SNAPSHOT", - Result::RejectSnapshot => "REJECT_SNAPSHOT", + Self::Unknown => "UNKNOWN", + Self::Accept => "ACCEPT", + Self::Abort => "ABORT", + Self::Retry => "RETRY", + Self::RetrySnapshot => "RETRY_SNAPSHOT", + Self::RejectSnapshot => "REJECT_SNAPSHOT", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -522,7 +488,6 @@ pub mod response_apply_snapshot_chunk { } /// ConsensusParams contains all consensus-relevant parameters /// that can be adjusted by the abci app -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusParams { #[prost(message, optional, tag = "1")] @@ -535,8 +500,7 @@ pub struct ConsensusParams { pub version: ::core::option::Option, } /// BlockParams contains limits on the block size. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BlockParams { /// Note: must be greater than 0 #[prost(int64, tag = "1")] @@ -545,7 +509,6 @@ pub struct BlockParams { #[prost(int64, tag = "2")] pub max_gas: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LastCommitInfo { #[prost(int32, tag = "1")] @@ -556,7 +519,6 @@ pub struct LastCommitInfo { /// Event allows application developers to attach additional information to /// ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. /// Later, transactions may be queried using these events. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { #[prost(string, tag = "1")] @@ -565,7 +527,6 @@ pub struct Event { pub attributes: ::prost::alloc::vec::Vec, } /// EventAttribute is a single key-value pair, associated with an event. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventAttribute { #[prost(bytes = "vec", tag = "1")] @@ -579,7 +540,6 @@ pub struct EventAttribute { /// TxResult contains results of executing the transaction. /// /// One usage is indexing transaction results. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxResult { #[prost(int64, tag = "1")] @@ -592,7 +552,6 @@ pub struct TxResult { pub result: ::core::option::Option, } /// Validator -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validator { /// The first 20 bytes of SHA256(public key) @@ -605,7 +564,6 @@ pub struct Validator { pub power: i64, } /// ValidatorUpdate -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorUpdate { #[prost(message, optional, tag = "1")] @@ -614,7 +572,6 @@ pub struct ValidatorUpdate { pub power: i64, } /// VoteInfo -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VoteInfo { #[prost(message, optional, tag = "1")] @@ -622,7 +579,6 @@ pub struct VoteInfo { #[prost(bool, tag = "2")] pub signed_last_block: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Evidence { #[prost(enumeration = "EvidenceType", tag = "1")] @@ -642,7 +598,6 @@ pub struct Evidence { #[prost(int64, tag = "5")] pub total_voting_power: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Snapshot { /// The height at which the snapshot was taken @@ -674,8 +629,8 @@ impl CheckTxType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - CheckTxType::New => "NEW", - CheckTxType::Recheck => "RECHECK", + Self::New => "NEW", + Self::Recheck => "RECHECK", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -701,9 +656,9 @@ impl EvidenceType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - EvidenceType::Unknown => "UNKNOWN", - EvidenceType::DuplicateVote => "DUPLICATE_VOTE", - EvidenceType::LightClientAttack => "LIGHT_CLIENT_ATTACK", + Self::Unknown => "UNKNOWN", + Self::DuplicateVote => "DUPLICATE_VOTE", + Self::LightClientAttack => "LIGHT_CLIENT_ATTACK", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/tendermint.blockchain.rs b/cosmos_sdk_proto/src/prost/tendermint.blockchain.rs index 4480ece..41a78a6 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.blockchain.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.blockchain.rs @@ -1,38 +1,33 @@ +// This file is @generated by prost-build. /// BlockRequest requests a block for a specific height -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BlockRequest { #[prost(int64, tag = "1")] pub height: i64, } /// NoBlockResponse informs the node that the peer does not have block at the requested height -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NoBlockResponse { #[prost(int64, tag = "1")] pub height: i64, } /// BlockResponse returns block to the requested -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockResponse { #[prost(message, optional, tag = "1")] pub block: ::core::option::Option, } /// StatusRequest requests the status of a peer. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct StatusRequest {} /// StatusResponse is a peer response to inform their status. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct StatusResponse { #[prost(int64, tag = "1")] pub height: i64, #[prost(int64, tag = "2")] pub base: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5")] @@ -40,7 +35,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.consensus.rs b/cosmos_sdk_proto/src/prost/tendermint.consensus.rs index 475d9b0..ba0ee7b 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.consensus.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.consensus.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// NewRoundStep is sent for every step taken in the ConsensusState. /// For every height/round/step transition -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NewRoundStep { #[prost(int64, tag = "1")] pub height: i64, @@ -17,7 +17,6 @@ pub struct NewRoundStep { /// NewValidBlock is sent when a validator observes a valid block B in some round r, /// i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r. /// In case the block is also committed, then IsCommit flag is set to true. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewValidBlock { #[prost(int64, tag = "1")] @@ -32,14 +31,12 @@ pub struct NewValidBlock { pub is_commit: bool, } /// Proposal is sent when a new block is proposed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { #[prost(message, optional, tag = "1")] pub proposal: ::core::option::Option, } /// ProposalPOL is sent when a previous proposal is re-proposed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProposalPol { #[prost(int64, tag = "1")] @@ -50,7 +47,6 @@ pub struct ProposalPol { pub proposal_pol: ::core::option::Option, } /// BlockPart is sent when gossipping a piece of the proposed block. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockPart { #[prost(int64, tag = "1")] @@ -61,15 +57,13 @@ pub struct BlockPart { pub part: ::core::option::Option, } /// Vote is sent when voting for a proposal (or lack thereof). -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Vote { #[prost(message, optional, tag = "1")] pub vote: ::core::option::Option, } /// HasVote is sent to indicate that a particular vote has been received. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HasVote { #[prost(int64, tag = "1")] pub height: i64, @@ -81,7 +75,6 @@ pub struct HasVote { pub index: i32, } /// VoteSetMaj23 is sent to indicate that a given BlockID has seen +2/3 votes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VoteSetMaj23 { #[prost(int64, tag = "1")] @@ -94,7 +87,6 @@ pub struct VoteSetMaj23 { pub block_id: ::core::option::Option, } /// VoteSetBits is sent to communicate the bit-array of votes seen for the BlockID. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VoteSetBits { #[prost(int64, tag = "1")] @@ -108,7 +100,6 @@ pub struct VoteSetBits { #[prost(message, optional, tag = "5")] pub votes: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9")] @@ -116,7 +107,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -140,7 +130,6 @@ pub mod message { } } /// MsgInfo are msgs from the reactor which may update the state -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgInfo { #[prost(message, optional, tag = "1")] @@ -149,8 +138,7 @@ pub struct MsgInfo { pub peer_id: ::prost::alloc::string::String, } /// TimeoutInfo internally generated messages which may update the state -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TimeoutInfo { #[prost(message, optional, tag = "1")] pub duration: ::core::option::Option<::prost_types::Duration>, @@ -163,13 +151,11 @@ pub struct TimeoutInfo { } /// EndHeight marks the end of the given height inside WAL. /// @internal used by scripts/wal2json util. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EndHeight { #[prost(int64, tag = "1")] pub height: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WalMessage { #[prost(oneof = "wal_message::Sum", tags = "1, 2, 3, 4")] @@ -177,7 +163,6 @@ pub struct WalMessage { } /// Nested message and enum types in `WALMessage`. pub mod wal_message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -191,7 +176,6 @@ pub mod wal_message { } } /// TimedWALMessage wraps WALMessage and adds Time for debugging purposes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimedWalMessage { #[prost(message, optional, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.crypto.rs b/cosmos_sdk_proto/src/prost/tendermint.crypto.rs index 0eb429f..a80e97d 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.crypto.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.crypto.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proof { #[prost(int64, tag = "1")] @@ -10,7 +10,6 @@ pub struct Proof { #[prost(bytes = "vec", repeated, tag = "4")] pub aunts: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValueOp { /// Encoded in ProofOp.Key. @@ -20,7 +19,6 @@ pub struct ValueOp { #[prost(message, optional, tag = "2")] pub proof: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DominoOp { #[prost(string, tag = "1")] @@ -33,7 +31,6 @@ pub struct DominoOp { /// ProofOp defines an operation used for calculating Merkle root /// The data could be arbitrary format, providing nessecary data /// for example neighbouring node hash -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOp { #[prost(string, tag = "1")] @@ -44,14 +41,12 @@ pub struct ProofOp { pub data: ::prost::alloc::vec::Vec, } /// ProofOps is Merkle proof defined by the list of ProofOps -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOps { #[prost(message, repeated, tag = "1")] pub ops: ::prost::alloc::vec::Vec, } /// PublicKey defines the keys available for use with Validators -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PublicKey { #[prost(oneof = "public_key::Sum", tags = "1, 2")] @@ -59,7 +54,6 @@ pub struct PublicKey { } /// Nested message and enum types in `PublicKey`. pub mod public_key { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(bytes, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.libs.bits.rs b/cosmos_sdk_proto/src/prost/tendermint.libs.bits.rs index 398a0cc..d5b830d 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.libs.bits.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.libs.bits.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct BitArray { #[prost(int64, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.mempool.rs b/cosmos_sdk_proto/src/prost/tendermint.mempool.rs index 9fec137..2d4527c 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.mempool.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.mempool.rs @@ -1,10 +1,9 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct Txs { #[prost(bytes = "vec", repeated, tag = "1")] pub txs: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1")] @@ -12,7 +11,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.p2p.rs b/cosmos_sdk_proto/src/prost/tendermint.p2p.rs index bfaa808..502037a 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.p2p.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.p2p.rs @@ -1,10 +1,8 @@ -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +// This file is @generated by prost-build. +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PacketPing {} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PacketPong {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketMsg { #[prost(int32, tag = "1")] @@ -14,7 +12,6 @@ pub struct PacketMsg { #[prost(bytes = "vec", tag = "3")] pub data: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Packet { #[prost(oneof = "packet::Sum", tags = "1, 2, 3")] @@ -22,7 +19,6 @@ pub struct Packet { } /// Nested message and enum types in `Packet`. pub mod packet { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -33,7 +29,6 @@ pub mod packet { PacketMsg(super::PacketMsg), } } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthSigMessage { #[prost(message, optional, tag = "1")] @@ -41,7 +36,6 @@ pub struct AuthSigMessage { #[prost(bytes = "vec", tag = "2")] pub sig: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NetAddress { #[prost(string, tag = "1")] @@ -51,8 +45,7 @@ pub struct NetAddress { #[prost(uint32, tag = "3")] pub port: u32, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ProtocolVersion { #[prost(uint64, tag = "1")] pub p2p: u64, @@ -61,7 +54,6 @@ pub struct ProtocolVersion { #[prost(uint64, tag = "3")] pub app: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DefaultNodeInfo { #[prost(message, optional, tag = "1")] @@ -81,7 +73,6 @@ pub struct DefaultNodeInfo { #[prost(message, optional, tag = "8")] pub other: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DefaultNodeInfoOther { #[prost(string, tag = "1")] @@ -89,16 +80,13 @@ pub struct DefaultNodeInfoOther { #[prost(string, tag = "2")] pub rpc_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PexRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PexAddrs { #[prost(message, repeated, tag = "1")] pub addrs: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1, 2")] @@ -106,7 +94,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.privval.rs b/cosmos_sdk_proto/src/prost/tendermint.privval.rs index 8485c38..842e909 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.privval.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.privval.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoteSignerError { #[prost(int32, tag = "1")] @@ -7,14 +7,12 @@ pub struct RemoteSignerError { pub description: ::prost::alloc::string::String, } /// PubKeyRequest requests the consensus public key from the remote signer. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKeyRequest { #[prost(string, tag = "1")] pub chain_id: ::prost::alloc::string::String, } /// PubKeyResponse is a response message containing the public key. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKeyResponse { #[prost(message, optional, tag = "1")] @@ -23,7 +21,6 @@ pub struct PubKeyResponse { pub error: ::core::option::Option, } /// SignVoteRequest is a request to sign a vote -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignVoteRequest { #[prost(message, optional, tag = "1")] @@ -32,7 +29,6 @@ pub struct SignVoteRequest { pub chain_id: ::prost::alloc::string::String, } /// SignedVoteResponse is a response containing a signed vote or an error -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedVoteResponse { #[prost(message, optional, tag = "1")] @@ -41,7 +37,6 @@ pub struct SignedVoteResponse { pub error: ::core::option::Option, } /// SignProposalRequest is a request to sign a proposal -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignProposalRequest { #[prost(message, optional, tag = "1")] @@ -50,7 +45,6 @@ pub struct SignProposalRequest { pub chain_id: ::prost::alloc::string::String, } /// SignedProposalResponse is response containing a signed proposal or an error -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedProposalResponse { #[prost(message, optional, tag = "1")] @@ -59,14 +53,11 @@ pub struct SignedProposalResponse { pub error: ::core::option::Option, } /// PingRequest is a request to confirm that the connection is alive. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PingRequest {} /// PingResponse is a response to confirm that the connection is alive. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PingResponse {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5, 6, 7, 8")] @@ -74,7 +65,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -112,12 +102,12 @@ impl Errors { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Errors::Unknown => "ERRORS_UNKNOWN", - Errors::UnexpectedResponse => "ERRORS_UNEXPECTED_RESPONSE", - Errors::NoConnection => "ERRORS_NO_CONNECTION", - Errors::ConnectionTimeout => "ERRORS_CONNECTION_TIMEOUT", - Errors::ReadTimeout => "ERRORS_READ_TIMEOUT", - Errors::WriteTimeout => "ERRORS_WRITE_TIMEOUT", + Self::Unknown => "ERRORS_UNKNOWN", + Self::UnexpectedResponse => "ERRORS_UNEXPECTED_RESPONSE", + Self::NoConnection => "ERRORS_NO_CONNECTION", + Self::ConnectionTimeout => "ERRORS_CONNECTION_TIMEOUT", + Self::ReadTimeout => "ERRORS_READ_TIMEOUT", + Self::WriteTimeout => "ERRORS_WRITE_TIMEOUT", } } /// Creates an enum from field names used in the ProtoBuf definition. diff --git a/cosmos_sdk_proto/src/prost/tendermint.rpc.grpc.rs b/cosmos_sdk_proto/src/prost/tendermint.rpc.grpc.rs index 5630cb5..8af4fd5 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.rpc.grpc.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.rpc.grpc.rs @@ -1,16 +1,13 @@ -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +// This file is @generated by prost-build. +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RequestPing {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestBroadcastTx { #[prost(bytes = "vec", tag = "1")] pub tx: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ResponsePing {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResponseBroadcastTx { #[prost(message, optional, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.state.rs b/cosmos_sdk_proto/src/prost/tendermint.state.rs index a95fef2..bd73f0c 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.state.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.state.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// ABCIResponses retains the responses /// of the various ABCI calls during block processing. /// It is persisted to disk for each height before calling Commit. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciResponses { #[prost(message, repeated, tag = "1")] @@ -12,7 +12,6 @@ pub struct AbciResponses { pub begin_block: ::core::option::Option, } /// ValidatorsInfo represents the latest validator set, or the last height it changed -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorsInfo { #[prost(message, optional, tag = "1")] @@ -21,7 +20,6 @@ pub struct ValidatorsInfo { pub last_height_changed: i64, } /// ConsensusParamsInfo represents the latest consensus params, or the last height it changed -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusParamsInfo { #[prost(message, optional, tag = "1")] @@ -29,7 +27,6 @@ pub struct ConsensusParamsInfo { #[prost(int64, tag = "2")] pub last_height_changed: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciResponsesInfo { #[prost(message, optional, tag = "1")] @@ -37,7 +34,6 @@ pub struct AbciResponsesInfo { #[prost(int64, tag = "2")] pub height: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Version { #[prost(message, optional, tag = "1")] @@ -45,7 +41,6 @@ pub struct Version { #[prost(string, tag = "2")] pub software: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct State { #[prost(message, optional, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.statesync.rs b/cosmos_sdk_proto/src/prost/tendermint.statesync.rs index a2ad034..6743e9a 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.statesync.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.statesync.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4")] @@ -6,7 +6,6 @@ pub struct Message { } /// Nested message and enum types in `Message`. pub mod message { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -19,10 +18,8 @@ pub mod message { ChunkResponse(super::ChunkResponse), } } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SnapshotsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotsResponse { #[prost(uint64, tag = "1")] @@ -36,8 +33,7 @@ pub struct SnapshotsResponse { #[prost(bytes = "vec", tag = "5")] pub metadata: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ChunkRequest { #[prost(uint64, tag = "1")] pub height: u64, @@ -46,7 +42,6 @@ pub struct ChunkRequest { #[prost(uint32, tag = "3")] pub index: u32, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChunkResponse { #[prost(uint64, tag = "1")] diff --git a/cosmos_sdk_proto/src/prost/tendermint.store.rs b/cosmos_sdk_proto/src/prost/tendermint.store.rs index 98d20b0..20bb53d 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.store.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.store.rs @@ -1,5 +1,5 @@ -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +// This file is @generated by prost-build. +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BlockStoreState { #[prost(int64, tag = "1")] pub base: i64, diff --git a/cosmos_sdk_proto/src/prost/tendermint.types.rs b/cosmos_sdk_proto/src/prost/tendermint.types.rs index 50dbaca..ff5c9fa 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.types.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.types.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSet { #[prost(message, repeated, tag = "1")] @@ -8,7 +8,6 @@ pub struct ValidatorSet { #[prost(int64, tag = "3")] pub total_voting_power: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validator { #[prost(bytes = "vec", tag = "1")] @@ -20,7 +19,6 @@ pub struct Validator { #[prost(int64, tag = "4")] pub proposer_priority: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimpleValidator { #[prost(message, optional, tag = "1")] @@ -29,7 +27,6 @@ pub struct SimpleValidator { pub voting_power: i64, } /// PartsetHeader -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PartSetHeader { #[prost(uint32, tag = "1")] @@ -37,7 +34,6 @@ pub struct PartSetHeader { #[prost(bytes = "vec", tag = "2")] pub hash: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Part { #[prost(uint32, tag = "1")] @@ -48,7 +44,6 @@ pub struct Part { pub proof: ::core::option::Option, } /// BlockID -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockId { #[prost(bytes = "vec", tag = "1")] @@ -57,7 +52,6 @@ pub struct BlockId { pub part_set_header: ::core::option::Option, } /// Header defines the structure of a block header. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { /// basic block info @@ -107,7 +101,6 @@ pub struct Header { pub proposer_address: ::prost::alloc::vec::Vec, } /// Data contains the set of transactions included in the block -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Data { /// Txs that will be applied by state @ block.Height+1. @@ -118,7 +111,6 @@ pub struct Data { } /// Vote represents a prevote, precommit, or commit vote from validators for /// consensus. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Vote { #[prost(enumeration = "SignedMsgType", tag = "1")] @@ -140,7 +132,6 @@ pub struct Vote { pub signature: ::prost::alloc::vec::Vec, } /// Commit contains the evidence that a block was committed by a set of validators. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Commit { #[prost(int64, tag = "1")] @@ -153,7 +144,6 @@ pub struct Commit { pub signatures: ::prost::alloc::vec::Vec, } /// CommitSig is a part of the Vote included in a Commit. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitSig { #[prost(enumeration = "BlockIdFlag", tag = "1")] @@ -165,7 +155,6 @@ pub struct CommitSig { #[prost(bytes = "vec", tag = "4")] pub signature: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { #[prost(enumeration = "SignedMsgType", tag = "1")] @@ -183,7 +172,6 @@ pub struct Proposal { #[prost(bytes = "vec", tag = "7")] pub signature: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignedHeader { #[prost(message, optional, tag = "1")] @@ -191,7 +179,6 @@ pub struct SignedHeader { #[prost(message, optional, tag = "2")] pub commit: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LightBlock { #[prost(message, optional, tag = "1")] @@ -199,7 +186,6 @@ pub struct LightBlock { #[prost(message, optional, tag = "2")] pub validator_set: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockMeta { #[prost(message, optional, tag = "1")] @@ -212,7 +198,6 @@ pub struct BlockMeta { pub num_txs: i64, } /// TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxProof { #[prost(bytes = "vec", tag = "1")] @@ -238,10 +223,10 @@ impl BlockIdFlag { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - BlockIdFlag::Unknown => "BLOCK_ID_FLAG_UNKNOWN", - BlockIdFlag::Absent => "BLOCK_ID_FLAG_ABSENT", - BlockIdFlag::Commit => "BLOCK_ID_FLAG_COMMIT", - BlockIdFlag::Nil => "BLOCK_ID_FLAG_NIL", + Self::Unknown => "BLOCK_ID_FLAG_UNKNOWN", + Self::Absent => "BLOCK_ID_FLAG_ABSENT", + Self::Commit => "BLOCK_ID_FLAG_COMMIT", + Self::Nil => "BLOCK_ID_FLAG_NIL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -273,10 +258,10 @@ impl SignedMsgType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - SignedMsgType::Unknown => "SIGNED_MSG_TYPE_UNKNOWN", - SignedMsgType::Prevote => "SIGNED_MSG_TYPE_PREVOTE", - SignedMsgType::Precommit => "SIGNED_MSG_TYPE_PRECOMMIT", - SignedMsgType::Proposal => "SIGNED_MSG_TYPE_PROPOSAL", + Self::Unknown => "SIGNED_MSG_TYPE_UNKNOWN", + Self::Prevote => "SIGNED_MSG_TYPE_PREVOTE", + Self::Precommit => "SIGNED_MSG_TYPE_PRECOMMIT", + Self::Proposal => "SIGNED_MSG_TYPE_PROPOSAL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -292,7 +277,6 @@ impl SignedMsgType { } /// ConsensusParams contains consensus critical parameters that determine the /// validity of blocks. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusParams { #[prost(message, optional, tag = "1")] @@ -305,8 +289,7 @@ pub struct ConsensusParams { pub version: ::core::option::Option, } /// BlockParams contains limits on the block size. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BlockParams { /// Max block size, in bytes. /// Note: must be greater than 0 @@ -324,8 +307,7 @@ pub struct BlockParams { pub time_iota_ms: i64, } /// EvidenceParams determine how we handle evidence of malfeasance. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EvidenceParams { /// Max age of evidence, in blocks. /// @@ -348,15 +330,13 @@ pub struct EvidenceParams { } /// ValidatorParams restrict the public key types validators can use. /// NOTE: uses ABCI pubkey naming, not Amino names. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorParams { #[prost(string, repeated, tag = "1")] pub pub_key_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// VersionParams contains the ABCI application version. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VersionParams { #[prost(uint64, tag = "1")] pub app_version: u64, @@ -364,15 +344,13 @@ pub struct VersionParams { /// HashedParams is a subset of ConsensusParams. /// /// It is hashed into the Header.ConsensusHash. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HashedParams { #[prost(int64, tag = "1")] pub block_max_bytes: i64, #[prost(int64, tag = "2")] pub block_max_gas: i64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Evidence { #[prost(oneof = "evidence::Sum", tags = "1, 2")] @@ -380,7 +358,6 @@ pub struct Evidence { } /// Nested message and enum types in `Evidence`. pub mod evidence { - #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { #[prost(message, tag = "1")] @@ -390,7 +367,6 @@ pub mod evidence { } } /// DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DuplicateVoteEvidence { #[prost(message, optional, tag = "1")] @@ -405,7 +381,6 @@ pub struct DuplicateVoteEvidence { pub timestamp: ::core::option::Option<::prost_types::Timestamp>, } /// LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LightClientAttackEvidence { #[prost(message, optional, tag = "1")] @@ -419,13 +394,11 @@ pub struct LightClientAttackEvidence { #[prost(message, optional, tag = "5")] pub timestamp: ::core::option::Option<::prost_types::Timestamp>, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EvidenceList { #[prost(message, repeated, tag = "1")] pub evidence: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Block { #[prost(message, optional, tag = "1")] @@ -437,7 +410,6 @@ pub struct Block { #[prost(message, optional, tag = "4")] pub last_commit: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventDataRoundState { #[prost(int64, tag = "1")] @@ -447,7 +419,6 @@ pub struct EventDataRoundState { #[prost(string, tag = "3")] pub step: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CanonicalBlockId { #[prost(bytes = "vec", tag = "1")] @@ -455,7 +426,6 @@ pub struct CanonicalBlockId { #[prost(message, optional, tag = "2")] pub part_set_header: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CanonicalPartSetHeader { #[prost(uint32, tag = "1")] @@ -463,7 +433,6 @@ pub struct CanonicalPartSetHeader { #[prost(bytes = "vec", tag = "2")] pub hash: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CanonicalProposal { /// type alias for byte @@ -484,7 +453,6 @@ pub struct CanonicalProposal { #[prost(string, tag = "7")] pub chain_id: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CanonicalVote { /// type alias for byte diff --git a/cosmos_sdk_proto/src/prost/tendermint.version.rs b/cosmos_sdk_proto/src/prost/tendermint.version.rs index 791a6ce..d414fe3 100644 --- a/cosmos_sdk_proto/src/prost/tendermint.version.rs +++ b/cosmos_sdk_proto/src/prost/tendermint.version.rs @@ -1,7 +1,7 @@ +// This file is @generated by prost-build. /// App includes the protocol and software version for the application. /// This information is included in ResponseInfo. The App.Protocol can be /// updated in ResponseEndBlock. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct App { #[prost(uint64, tag = "1")] @@ -12,8 +12,7 @@ pub struct App { /// Consensus captures the consensus rules for processing a block in the blockchain, /// including all blockchain data structures and the rules of the application's /// state transition machine. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Consensus { #[prost(uint64, tag = "1")] pub block: u64, diff --git a/gravity_proto/Cargo.toml b/gravity_proto/Cargo.toml index 3906577..ac1a8f3 100644 --- a/gravity_proto/Cargo.toml +++ b/gravity_proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gravity_proto" -version = "0.5.0" +version = "0.6.0" description = "Protobuf stuct defintions for interacting with Gravity Bridge Chain" authors = ["Justin Kilpatrick ", "Christian Borst "] edition = "2021" @@ -15,6 +15,6 @@ keywords = ["blockchain", "cosmos", "tendermint", "proto"] [dependencies] prost = {workspace = true} prost-types = {workspace = true} -cosmos-sdk-proto = {package="cosmos-sdk-proto-althea", version="0.17", path = "../cosmos_sdk_proto", features = ["ethermint", "bech32ibc"]} +cosmos-sdk-proto = {package="cosmos-sdk-proto-althea", version="0.18", path = "../cosmos_sdk_proto", features = ["ethermint", "bech32ibc"]} tonic = {workspace = true} diff --git a/gravity_proto/src/prost/auction.v1.rs b/gravity_proto/src/prost/auction.v1.rs index 656417f..4987f55 100644 --- a/gravity_proto/src/prost/auction.v1.rs +++ b/gravity_proto/src/prost/auction.v1.rs @@ -1,8 +1,8 @@ +// This file is @generated by prost-build. /// AuctionPeriod represents a period of auctions. /// An AuctionPeriod applies to as many auctionable tokens exist in the auction pool /// Note: see params for a list of non-auctionable tokens -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AuctionPeriod { /// Block height at which the AuctionPeriod starts. #[prost(uint64, tag = "1")] @@ -13,7 +13,6 @@ pub struct AuctionPeriod { } /// Auction represents a single auction. /// An Auction has a unique identifier relative to its Auction Period Id , an amount being auctioned, a status, and a highest bid. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Auction { /// Unique identifier for the Auction. @@ -28,7 +27,6 @@ pub struct Auction { } /// Bid represents a bid on an Auction. /// A Bid includes the identifier of the Auction, the amount of the bid, and the address of the bidder. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bid { /// Amount of the bid. @@ -39,14 +37,12 @@ pub struct Bid { pub bidder_address: ::prost::alloc::string::String, } /// AuctionId enables easy storage and retrieval of the most recently used AuctionId -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AuctionId { #[prost(uint64, tag = "1")] pub id: u64, } /// Params defines the parameters for the GravityBridge auction module. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// AuctionLength is the number of blocks that the AuctionPeriod will be active @@ -69,7 +65,6 @@ pub struct Params { pub enabled: bool, } /// GenesisState defines the auction module's genesis state. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -85,7 +80,6 @@ pub struct GenesisState { /// `bid_fee` is the native token amount sent to the auction pool, and should be at least equal to the min bid fee param /// /// Additionally, all bids must meet or exceed `min_bid_amount` -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBid { /// ID of the auction to bid on @@ -101,12 +95,17 @@ pub struct MsgBid { #[prost(uint64, tag = "4")] pub bid_fee: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgBidResponse {} /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the state transitions possible within auction @@ -129,8 +128,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -155,7 +154,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -198,8 +197,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -211,73 +209,59 @@ pub mod msg_client { } } } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuctionPeriodRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuctionPeriodResponse { #[prost(message, optional, tag = "1")] pub auction_period: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuctionsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuctionsResponse { #[prost(message, repeated, tag = "1")] pub auctions: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuctionByIdRequest { #[prost(uint64, tag = "1")] pub auction_id: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuctionByIdResponse { #[prost(message, optional, tag = "1")] pub auction: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuctionByDenomRequest { #[prost(string, tag = "1")] pub auction_denom: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuctionByDenomResponse { #[prost(message, optional, tag = "1")] pub auction: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllAuctionsByBidderRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllAuctionsByBidderResponse { #[prost(message, repeated, tag = "1")] pub auctions: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryAuctionPoolRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuctionPoolResponse { #[prost(string, tag = "1")] @@ -287,7 +271,13 @@ pub struct QueryAuctionPoolResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -310,8 +300,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -336,7 +326,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -383,8 +373,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -406,8 +395,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -432,8 +420,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -457,8 +444,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -483,8 +469,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -509,8 +494,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -536,8 +520,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/gravity_proto/src/prost/gaia.globalfee.v1beta1.rs b/gravity_proto/src/prost/gaia.globalfee.v1beta1.rs index 8785462..277be0d 100644 --- a/gravity_proto/src/prost/gaia.globalfee.v1beta1.rs +++ b/gravity_proto/src/prost/gaia.globalfee.v1beta1.rs @@ -1,5 +1,5 @@ +// This file is @generated by prost-build. /// GenesisState - initial state of module -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// Params of this module @@ -7,7 +7,6 @@ pub struct GenesisState { pub params: ::core::option::Option, } /// Params defines the set of module parameters. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// Minimum stores the minimum gas price(s) for all TX on the chain. @@ -22,12 +21,10 @@ pub struct Params { } /// QueryMinimumGasPricesRequest is the request type for the /// Query/MinimumGasPrices RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryMinimumGasPricesRequest {} /// QueryMinimumGasPricesResponse is the response type for the /// Query/MinimumGasPrices RPC method. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMinimumGasPricesResponse { #[prost(message, repeated, tag = "1")] @@ -37,7 +34,13 @@ pub struct QueryMinimumGasPricesResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service. @@ -60,8 +63,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -86,7 +89,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -132,8 +135,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/gravity_proto/src/prost/gaia.icaauth.v1.rs b/gravity_proto/src/prost/gaia.icaauth.v1.rs index f5e19db..4d8137e 100644 --- a/gravity_proto/src/prost/gaia.icaauth.v1.rs +++ b/gravity_proto/src/prost/gaia.icaauth.v1.rs @@ -1,4 +1,4 @@ -#[allow(clippy::derive_partial_eq_without_eq)] +// This file is @generated by prost-build. #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRegisterInterchainAccount { #[prost(string, tag = "1")] @@ -8,7 +8,6 @@ pub struct EventRegisterInterchainAccount { #[prost(string, tag = "3")] pub version: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSubmitTx { #[prost(string, tag = "1")] @@ -18,48 +17,51 @@ pub struct EventSubmitTx { #[prost(message, repeated, tag = "3")] pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// MsgRegisterAccount defines the payload for Msg/RegisterAccount -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressRequest is the request type for the Query/InterchainAccountAddress RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgRegisterAccount { +pub struct QueryInterchainAccountFromAddressRequest { #[prost(string, tag = "1")] pub owner: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub version: ::prost::alloc::string::String, } -/// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountFromAddress RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgRegisterAccountResponse {} -/// MsgSubmitTx defines the payload for Msg/SubmitTx -#[allow(clippy::derive_partial_eq_without_eq)] +pub struct QueryInterchainAccountFromAddressResponse { + #[prost(string, tag = "1")] + pub interchain_account_address: ::prost::alloc::string::String, +} +/// QueryInterchainAccountsWithConnectionRequest is the request type for the Query/InterchainAccountsWithConnection RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgSubmitTx { +pub struct QueryInterchainAccountsWithConnectionRequest { #[prost(string, tag = "1")] - pub owner: ::prost::alloc::string::String, - #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, - /// msgs represents the transactions to be submitted to the host chain - #[prost(message, repeated, tag = "3")] - pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// MsgSubmitTxResponse defines the response for Msg/SubmitTx -#[allow(clippy::derive_partial_eq_without_eq)] +/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountsWithConnection RPC #[derive(Clone, PartialEq, ::prost::Message)] -pub struct MsgSubmitTxResponse {} +pub struct QueryInterchainAccountsWithConnectionResponse { + #[prost(message, repeated, tag = "1")] + pub interchain_accounts: ::prost::alloc::vec::Vec< + cosmos_sdk_proto::ibc::applications::interchain_accounts::v1::RegisteredInterchainAccount, + >, +} /// Generated client implementations. -pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] +pub mod query_client { + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; - /// Msg defines the icaauth Msg service. + /// Query defines the gRPC querier service. #[derive(Debug, Clone)] - pub struct MsgClient { + pub struct QueryClient { inner: tonic::client::Grpc, } - impl MsgClient { + impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result where @@ -70,12 +72,12 @@ pub mod msg_client { Ok(Self::new(conn)) } } - impl MsgClient + impl QueryClient where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -88,7 +90,7 @@ pub mod msg_client { pub fn with_interceptor( inner: T, interceptor: F, - ) -> MsgClient> + ) -> QueryClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -100,9 +102,9 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { - MsgClient::new(InterceptedService::new(inner, interceptor)) + QueryClient::new(InterceptedService::new(inner, interceptor)) } /// Compress requests with the given encoding. /// @@ -135,103 +137,116 @@ pub mod msg_client { self.inner = self.inner.max_encoding_message_size(limit); self } - /// Register defines a rpc handler for MsgRegisterAccount - pub async fn register_account( + /// QueryInterchainAccountFromAddress returns the interchain account for given owner address on a given connection + pub async fn interchain_account_from_address( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryInterchainAccountFromAddressRequest, + >, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Msg/RegisterAccount", + "/gaia.icaauth.v1.Query/InterchainAccountFromAddress", ); let mut req = request.into_request(); req.extensions_mut() - .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "RegisterAccount")); + .insert( + GrpcMethod::new( + "gaia.icaauth.v1.Query", + "InterchainAccountFromAddress", + ), + ); self.inner.unary(req, path, codec).await } - /// SubmitTx defines a rpc handler for MsgSubmitTx - pub async fn submit_tx( + /// QueryInterchainAccountsWithConnection returns all the interchain accounts on a given connection + pub async fn interchain_accounts_with_connection( &mut self, - request: impl tonic::IntoRequest, + request: impl tonic::IntoRequest< + super::QueryInterchainAccountsWithConnectionRequest, + >, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Msg/SubmitTx", + "/gaia.icaauth.v1.Query/InterchainAccountsWithConnection", ); let mut req = request.into_request(); req.extensions_mut() - .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "SubmitTx")); + .insert( + GrpcMethod::new( + "gaia.icaauth.v1.Query", + "InterchainAccountsWithConnection", + ), + ); self.inner.unary(req, path, codec).await } } } -/// QueryInterchainAccountFromAddressRequest is the request type for the Query/InterchainAccountAddress RPC -#[allow(clippy::derive_partial_eq_without_eq)] +/// MsgRegisterAccount defines the payload for Msg/RegisterAccount #[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountFromAddressRequest { +pub struct MsgRegisterAccount { #[prost(string, tag = "1")] pub owner: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub version: ::prost::alloc::string::String, } -/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountFromAddress RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountFromAddressResponse { - #[prost(string, tag = "1")] - pub interchain_account_address: ::prost::alloc::string::String, -} -/// QueryInterchainAccountsWithConnectionRequest is the request type for the Query/InterchainAccountsWithConnection RPC -#[allow(clippy::derive_partial_eq_without_eq)] +/// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct MsgRegisterAccountResponse {} +/// MsgSubmitTx defines the payload for Msg/SubmitTx #[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountsWithConnectionRequest { +pub struct MsgSubmitTx { #[prost(string, tag = "1")] + pub owner: ::prost::alloc::string::String, + #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, + /// msgs represents the transactions to be submitted to the host chain + #[prost(message, repeated, tag = "3")] + pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, } -/// QueryInterchainAccountFromAddressResponse the response type for the Query/InterchainAccountsWithConnection RPC -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QueryInterchainAccountsWithConnectionResponse { - #[prost(message, repeated, tag = "1")] - pub interchain_accounts: ::prost::alloc::vec::Vec< - cosmos_sdk_proto::ibc::applications::interchain_accounts::v1::RegisteredInterchainAccount, - >, -} +/// MsgSubmitTxResponse defines the response for Msg/SubmitTx +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct MsgSubmitTxResponse {} /// Generated client implementations. -pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] +pub mod msg_client { + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; - /// Query defines the gRPC querier service. + /// Msg defines the icaauth Msg service. #[derive(Debug, Clone)] - pub struct QueryClient { + pub struct MsgClient { inner: tonic::client::Grpc, } - impl QueryClient { + impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result where @@ -242,12 +257,12 @@ pub mod query_client { Ok(Self::new(conn)) } } - impl QueryClient + impl MsgClient where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -260,7 +275,7 @@ pub mod query_client { pub fn with_interceptor( inner: T, interceptor: F, - ) -> QueryClient> + ) -> MsgClient> where F: tonic::service::Interceptor, T::ResponseBody: Default, @@ -272,9 +287,9 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { - QueryClient::new(InterceptedService::new(inner, interceptor)) + MsgClient::new(InterceptedService::new(inner, interceptor)) } /// Compress requests with the given encoding. /// @@ -307,70 +322,54 @@ pub mod query_client { self.inner = self.inner.max_encoding_message_size(limit); self } - /// QueryInterchainAccountFromAddress returns the interchain account for given owner address on a given connection - pub async fn interchain_account_from_address( + /// Register defines a rpc handler for MsgRegisterAccount + pub async fn register_account( &mut self, - request: impl tonic::IntoRequest< - super::QueryInterchainAccountFromAddressRequest, - >, + request: impl tonic::IntoRequest, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Query/InterchainAccountFromAddress", + "/gaia.icaauth.v1.Msg/RegisterAccount", ); let mut req = request.into_request(); req.extensions_mut() - .insert( - GrpcMethod::new( - "gaia.icaauth.v1.Query", - "InterchainAccountFromAddress", - ), - ); + .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "RegisterAccount")); self.inner.unary(req, path, codec).await } - /// QueryInterchainAccountsWithConnection returns all the interchain accounts on a given connection - pub async fn interchain_accounts_with_connection( + /// SubmitTx defines a rpc handler for MsgSubmitTx + pub async fn submit_tx( &mut self, - request: impl tonic::IntoRequest< - super::QueryInterchainAccountsWithConnectionRequest, - >, + request: impl tonic::IntoRequest, ) -> std::result::Result< - tonic::Response, + tonic::Response, tonic::Status, > { self.inner .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; let codec = tonic::codec::ProstCodec::default(); let path = http::uri::PathAndQuery::from_static( - "/gaia.icaauth.v1.Query/InterchainAccountsWithConnection", + "/gaia.icaauth.v1.Msg/SubmitTx", ); let mut req = request.into_request(); req.extensions_mut() - .insert( - GrpcMethod::new( - "gaia.icaauth.v1.Query", - "InterchainAccountsWithConnection", - ), - ); + .insert(GrpcMethod::new("gaia.icaauth.v1.Msg", "SubmitTx")); self.inner.unary(req, path, codec).await } } diff --git a/gravity_proto/src/prost/gravity.v1.rs b/gravity_proto/src/prost/gravity.v1.rs index ae25b7a..cb7ecb8 100644 --- a/gravity_proto/src/prost/gravity.v1.rs +++ b/gravity_proto/src/prost/gravity.v1.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. /// Attestation is an aggregate of `claims` that eventually becomes `observed` by /// all orchestrators /// EVENT_NONCE: @@ -13,7 +14,6 @@ /// the key in which the attestation is stored is keyed on the 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, ::prost::Message)] pub struct Attestation { #[prost(bool, tag = "1")] @@ -30,7 +30,6 @@ pub struct Attestation { /// The contract address on ETH of the token, this could be a Cosmos /// originated token, if so it will be the ERC20 address of the representation /// (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, ::prost::Message)] pub struct Erc20Token { #[prost(string, tag = "1")] @@ -38,7 +37,6 @@ pub struct Erc20Token { #[prost(string, tag = "2")] pub amount: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventObservation { #[prost(string, tag = "1")] @@ -52,7 +50,6 @@ pub struct EventObservation { #[prost(string, tag = "5")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventInvalidSendToCosmosReceiver { #[prost(string, tag = "1")] @@ -64,7 +61,6 @@ pub struct EventInvalidSendToCosmosReceiver { #[prost(string, tag = "4")] pub sender: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSendToCosmos { #[prost(string, tag = "1")] @@ -74,7 +70,6 @@ pub struct EventSendToCosmos { #[prost(string, tag = "3")] pub token: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSendToCosmosLocal { #[prost(string, tag = "1")] @@ -86,7 +81,6 @@ pub struct EventSendToCosmosLocal { #[prost(string, tag = "4")] pub amount: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSendToCosmosPendingIbcAutoForward { #[prost(string, tag = "1")] @@ -100,7 +94,6 @@ pub struct EventSendToCosmosPendingIbcAutoForward { #[prost(string, tag = "5")] pub channel: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSendToCosmosExecutedIbcAutoForward { #[prost(string, tag = "1")] @@ -143,12 +136,12 @@ impl ClaimType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - ClaimType::Unspecified => "CLAIM_TYPE_UNSPECIFIED", - ClaimType::SendToCosmos => "CLAIM_TYPE_SEND_TO_COSMOS", - ClaimType::BatchSendToEth => "CLAIM_TYPE_BATCH_SEND_TO_ETH", - ClaimType::Erc20Deployed => "CLAIM_TYPE_ERC20_DEPLOYED", - ClaimType::LogicCallExecuted => "CLAIM_TYPE_LOGIC_CALL_EXECUTED", - ClaimType::ValsetUpdated => "CLAIM_TYPE_VALSET_UPDATED", + Self::Unspecified => "CLAIM_TYPE_UNSPECIFIED", + Self::SendToCosmos => "CLAIM_TYPE_SEND_TO_COSMOS", + Self::BatchSendToEth => "CLAIM_TYPE_BATCH_SEND_TO_ETH", + Self::Erc20Deployed => "CLAIM_TYPE_ERC20_DEPLOYED", + Self::LogicCallExecuted => "CLAIM_TYPE_LOGIC_CALL_EXECUTED", + Self::ValsetUpdated => "CLAIM_TYPE_VALSET_UPDATED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -165,7 +158,6 @@ impl ClaimType { } } /// OutgoingTxBatch represents a batch of transactions going from gravity to ETH -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OutgoingTxBatch { #[prost(uint64, tag = "1")] @@ -180,7 +172,6 @@ pub struct OutgoingTxBatch { pub cosmos_block_created: u64, } /// OutgoingTransferTx represents an individual send from gravity to ETH -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OutgoingTransferTx { #[prost(uint64, tag = "1")] @@ -195,7 +186,6 @@ pub struct OutgoingTransferTx { pub erc20_fee: ::core::option::Option, } /// OutgoingLogicCall represents an individual logic call from gravity to ETH -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OutgoingLogicCall { #[prost(message, repeated, tag = "1")] @@ -215,7 +205,6 @@ pub struct OutgoingLogicCall { #[prost(uint64, tag = "8")] pub cosmos_block_created: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOutgoingBatchCanceled { #[prost(string, tag = "1")] @@ -227,7 +216,6 @@ pub struct EventOutgoingBatchCanceled { #[prost(string, tag = "4")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOutgoingBatch { #[prost(string, tag = "1")] @@ -257,11 +245,11 @@ impl SignType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - SignType::Unspecified => "SIGN_TYPE_UNSPECIFIED", - SignType::OrchestratorSignedMultiSigUpdate => { + Self::Unspecified => "SIGN_TYPE_UNSPECIFIED", + Self::OrchestratorSignedMultiSigUpdate => { "SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE" } - SignType::OrchestratorSignedWithdrawBatch => { + Self::OrchestratorSignedWithdrawBatch => { "SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH" } } @@ -281,7 +269,6 @@ impl SignType { } } /// BridgeValidator represents a validator's ETH address and its power -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BridgeValidator { #[prost(uint64, tag = "1")] @@ -292,7 +279,6 @@ pub struct BridgeValidator { /// Valset is the Ethereum Bridge Multsig Set, each gravity validator also /// 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, ::prost::Message)] pub struct Valset { #[prost(uint64, tag = "1")] @@ -312,8 +298,7 @@ pub struct Valset { /// it was observed at. These two numbers can be used to project /// 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, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct LastObservedEthereumBlockHeight { #[prost(uint64, tag = "1")] pub cosmos_block_height: u64, @@ -322,7 +307,6 @@ pub struct LastObservedEthereumBlockHeight { } /// 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, ::prost::Message)] pub struct Erc20ToDenom { #[prost(string, tag = "1")] @@ -336,7 +320,6 @@ pub struct Erc20ToDenom { /// handling of cases where for example an Ethereum hardfork has occured and more than 1/3 of the vlaidtor set /// disagrees with the rest. Normally this would require a chain halt, manual genesis editing and restar to resolve /// with this feature a governance proposal can be used instead -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnhaltBridgeProposal { #[prost(string, tag = "1")] @@ -350,7 +333,6 @@ pub struct UnhaltBridgeProposal { /// fashion. A list of destination addresses and an amount per airdrop recipient is provided. The funds for this /// airdrop are removed from the Community Pool, if the community pool does not have sufficient funding to perform /// the airdrop to all provided recipients nothing will occur -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AirdropProposal { #[prost(string, tag = "1")] @@ -373,7 +355,6 @@ pub struct AirdropProposal { /// Display: the token display name (only used on Cosmos to decide ERC20 Decimals) /// Deicmals: the decimals for the display unit /// ibc_denom is the denom of the token in question on this chain -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IbcMetadataProposal { #[prost(string, tag = "1")] @@ -387,7 +368,6 @@ pub struct IbcMetadataProposal { } /// PendingIbcAutoForward represents a SendToCosmos transaction with a foreign CosmosReceiver which will be added to the /// PendingIbcAutoForward queue in attestation_handler and sent over IBC on some submission of a MsgExecuteIbcAutoForwards -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PendingIbcAutoForward { /// the destination address. sdk.AccAddress does not preserve foreign prefixes @@ -416,7 +396,6 @@ pub struct PendingIbcAutoForward { /// ETH_ADDRESS /// 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, ::prost::Message)] pub struct MsgSetOrchestratorAddress { #[prost(string, tag = "1")] @@ -426,8 +405,7 @@ pub struct MsgSetOrchestratorAddress { #[prost(string, tag = "3")] pub eth_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSetOrchestratorAddressResponse {} /// MsgValsetConfirm /// this is the message sent by the validators when they wish to submit their @@ -444,7 +422,6 @@ pub struct MsgSetOrchestratorAddressResponse {} /// signatures it is then possible for anyone to view these signatures in the /// chain store and submit them to Ethereum to update the validator set /// ------------- -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgValsetConfirm { #[prost(uint64, tag = "1")] @@ -456,8 +433,7 @@ pub struct MsgValsetConfirm { #[prost(string, tag = "4")] pub signature: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgValsetConfirmResponse {} /// MsgSendToEth /// This is the message that a user calls when they want to bridge an asset @@ -475,7 +451,6 @@ pub struct MsgValsetConfirmResponse {} /// the fee paid to the chain for handling the request, which must be a /// certain percentage of the AMOUNT, as determined by governance. /// This Msg will be rejected if CHAIN_FEE is insufficient. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendToEth { #[prost(string, tag = "1")] @@ -489,8 +464,7 @@ pub struct MsgSendToEth { #[prost(message, optional, tag = "5")] pub chain_fee: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSendToEthResponse {} /// MsgRequestBatch /// this is a message anyone can send that requests a batch of transactions to @@ -501,7 +475,6 @@ pub struct MsgSendToEthResponse {} /// batch, sign it, submit the signatures with a MsgConfirmBatch before a relayer /// can finally submit the batch /// ------------- -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRequestBatch { #[prost(string, tag = "1")] @@ -509,8 +482,7 @@ pub struct MsgRequestBatch { #[prost(string, tag = "2")] pub denom: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgRequestBatchResponse {} /// MsgConfirmBatch /// When validators observe a MsgRequestBatch they form a batch by ordering @@ -520,7 +492,6 @@ pub struct MsgRequestBatchResponse {} /// (TODO determine this without nondeterminism) This message includes the batch /// as well as an Ethereum signature over this batch by the validator /// ------------- -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConfirmBatch { #[prost(uint64, tag = "1")] @@ -534,8 +505,7 @@ pub struct MsgConfirmBatch { #[prost(string, tag = "5")] pub signature: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConfirmBatchResponse {} /// MsgConfirmLogicCall /// When validators observe a MsgRequestBatch they form a batch by ordering @@ -545,7 +515,6 @@ pub struct MsgConfirmBatchResponse {} /// (TODO determine this without nondeterminism) This message includes the batch /// as well as an Ethereum signature over this batch by the validator /// ------------- -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConfirmLogicCall { #[prost(string, tag = "1")] @@ -559,15 +528,13 @@ pub struct MsgConfirmLogicCall { #[prost(string, tag = "5")] pub signature: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgConfirmLogicCallResponse {} /// MsgSendToCosmosClaim /// When more than 66% of the active validator set has /// claimed to have seen the deposit enter the ethereum blockchain coins are /// issued to the Cosmos address in question /// ------------- -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendToCosmosClaim { #[prost(uint64, tag = "1")] @@ -585,14 +552,12 @@ pub struct MsgSendToCosmosClaim { #[prost(string, tag = "7")] pub orchestrator: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSendToCosmosClaimResponse {} /// MsgExecuteIbcAutoForwards /// Prompts the forwarding of Pending IBC Auto-Forwards in the queue /// The Pending forwards will be executed in order of their original SendToCosmos.EventNonce /// The funds in the queue will be sent to a local gravity-prefixed address if IBC transfer is not possible -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecuteIbcAutoForwards { /// How many queued forwards to clear, be careful about gas limits @@ -602,12 +567,10 @@ pub struct MsgExecuteIbcAutoForwards { #[prost(string, tag = "2")] pub executor: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgExecuteIbcAutoForwardsResponse {} /// BatchSendToEthClaim claims that a batch of send to eth /// operations on the bridge contract was executed. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBatchSendToEthClaim { #[prost(uint64, tag = "1")] @@ -621,13 +584,11 @@ pub struct MsgBatchSendToEthClaim { #[prost(string, tag = "5")] pub orchestrator: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgBatchSendToEthClaimResponse {} /// 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, ::prost::Message)] pub struct MsgErc20DeployedClaim { #[prost(uint64, tag = "1")] @@ -647,12 +608,10 @@ pub struct MsgErc20DeployedClaim { #[prost(string, tag = "8")] pub orchestrator: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgErc20DeployedClaimResponse {} /// This informs the Cosmos module that a logic /// call has been executed -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgLogicCallExecutedClaim { #[prost(uint64, tag = "1")] @@ -666,12 +625,10 @@ pub struct MsgLogicCallExecutedClaim { #[prost(string, tag = "5")] pub orchestrator: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgLogicCallExecutedClaimResponse {} /// This informs the Cosmos module that a validator /// set has been updated. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgValsetUpdatedClaim { #[prost(uint64, tag = "1")] @@ -689,13 +646,11 @@ pub struct MsgValsetUpdatedClaim { #[prost(string, tag = "7")] pub orchestrator: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgValsetUpdatedClaimResponse {} /// 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, ::prost::Message)] pub struct MsgCancelSendToEth { #[prost(uint64, tag = "1")] @@ -703,14 +658,12 @@ pub struct MsgCancelSendToEth { #[prost(string, tag = "2")] pub sender: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgCancelSendToEthResponse {} /// This call allows anyone to submit evidence that a /// validator has signed a valset, batch, or logic call that never /// existed on the Cosmos chain. /// Subject contains the batch, valset, or logic call. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitBadSignatureEvidence { #[prost(message, optional, tag = "1")] @@ -720,10 +673,8 @@ pub struct MsgSubmitBadSignatureEvidence { #[prost(string, tag = "3")] pub sender: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MsgSubmitBadSignatureEvidenceResponse {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSetOperatorAddress { #[prost(string, tag = "1")] @@ -731,7 +682,6 @@ pub struct EventSetOperatorAddress { #[prost(string, tag = "2")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventValsetConfirmKey { #[prost(string, tag = "1")] @@ -739,7 +689,6 @@ pub struct EventValsetConfirmKey { #[prost(string, tag = "2")] pub key: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBatchCreated { #[prost(string, tag = "1")] @@ -747,7 +696,6 @@ pub struct EventBatchCreated { #[prost(string, tag = "2")] pub batch_nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBatchConfirmKey { #[prost(string, tag = "1")] @@ -755,13 +703,11 @@ pub struct EventBatchConfirmKey { #[prost(string, tag = "2")] pub batch_confirm_key: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBatchSendToEthClaim { #[prost(string, tag = "1")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventClaim { #[prost(string, tag = "1")] @@ -771,7 +717,6 @@ pub struct EventClaim { #[prost(string, tag = "3")] pub attestation_id: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBadSignatureEvidence { #[prost(string, tag = "1")] @@ -781,7 +726,6 @@ pub struct EventBadSignatureEvidence { #[prost(string, tag = "3")] pub bad_eth_signature_subject: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventErc20DeployedClaim { #[prost(string, tag = "1")] @@ -789,13 +733,11 @@ pub struct EventErc20DeployedClaim { #[prost(string, tag = "2")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventValsetUpdatedClaim { #[prost(string, tag = "1")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMultisigUpdateRequest { #[prost(string, tag = "1")] @@ -807,7 +749,6 @@ pub struct EventMultisigUpdateRequest { #[prost(string, tag = "4")] pub nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOutgoingLogicCallCanceled { #[prost(string, tag = "1")] @@ -815,7 +756,6 @@ pub struct EventOutgoingLogicCallCanceled { #[prost(string, tag = "2")] pub logic_call_invalidation_nonce: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSignatureSlashing { #[prost(string, tag = "1")] @@ -823,7 +763,6 @@ pub struct EventSignatureSlashing { #[prost(string, tag = "2")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventOutgoingTxId { #[prost(string, tag = "1")] @@ -831,7 +770,6 @@ pub struct EventOutgoingTxId { #[prost(string, tag = "2")] pub tx_id: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSendToEthFeeCollected { #[prost(string, tag = "1")] @@ -843,7 +781,13 @@ pub struct EventSendToEthFeeCollected { } /// Generated client implementations. pub mod msg_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Msg defines the state transitions possible within gravity @@ -866,8 +810,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -892,7 +836,7 @@ pub mod msg_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -938,8 +882,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -963,8 +906,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -985,8 +927,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1010,8 +951,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1035,8 +975,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1060,8 +999,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1085,8 +1023,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1110,8 +1047,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1135,8 +1071,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1160,8 +1095,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1185,8 +1119,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1210,8 +1143,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1235,8 +1167,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1260,8 +1191,7 @@ pub mod msg_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1276,47 +1206,6 @@ pub mod msg_client { } } } -/// IDSet represents a set of IDs -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IdSet { - #[prost(uint64, repeated, tag = "1")] - pub ids: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BatchFees { - #[prost(string, tag = "1")] - pub token: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub total_fees: ::prost::alloc::string::String, - #[prost(uint64, tag = "3")] - pub tx_count: u64, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventWithdrawalReceived { - #[prost(string, tag = "1")] - pub bridge_contract: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub bridge_chain_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub outgoing_tx_id: ::prost::alloc::string::String, - #[prost(string, tag = "4")] - pub nonce: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventWithdrawCanceled { - #[prost(string, tag = "1")] - pub sender: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub tx_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub bridge_contract: ::prost::alloc::string::String, - #[prost(string, tag = "4")] - pub bridge_chain_id: ::prost::alloc::string::String, -} /// The slashing fractions for the various gravity related slashing conditions. The first three /// refer to not submitting a particular message, the third for submitting a different claim /// for the same Ethereum event @@ -1357,7 +1246,6 @@ pub struct EventWithdrawCanceled { /// /// Specifies what fraction of the SendToEth `chain_fee` amount should go to the auction pool. /// e.g. "0.5" gives a 50% auction pool / staker split while "0.9" would cause 90% of the fee to go to the pool -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { #[prost(string, tag = "1")] @@ -1404,7 +1292,6 @@ pub struct Params { pub chain_fee_auction_pool_fraction: ::prost::alloc::string::String, } /// GenesisState struct, containing all persistant data required by the Gravity module -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, optional, tag = "1")] @@ -1435,8 +1322,7 @@ pub struct GenesisState { pub pending_ibc_auto_forwards: ::prost::alloc::vec::Vec, } /// GravityCounters contains the many noces and counters required to maintain the bridge state in the genesis -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GravityNonces { /// the nonce of the last generated validator set #[prost(uint64, tag = "1")] @@ -1464,37 +1350,67 @@ pub struct GravityNonces { #[prost(uint64, tag = "7")] pub last_batch_id: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] +/// IDSet represents a set of IDs +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IdSet { + #[prost(uint64, repeated, tag = "1")] + pub ids: ::prost::alloc::vec::Vec, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BatchFees { + #[prost(string, tag = "1")] + pub token: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub total_fees: ::prost::alloc::string::String, + #[prost(uint64, tag = "3")] + pub tx_count: u64, +} #[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventWithdrawalReceived { + #[prost(string, tag = "1")] + pub bridge_contract: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub bridge_chain_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub outgoing_tx_id: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub nonce: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventWithdrawCanceled { + #[prost(string, tag = "1")] + pub sender: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub tx_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub bridge_contract: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub bridge_chain_id: ::prost::alloc::string::String, +} +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryCurrentValsetRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentValsetResponse { #[prost(message, optional, tag = "1")] pub valset: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryValsetRequestRequest { #[prost(uint64, tag = "1")] pub nonce: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValsetRequestResponse { #[prost(message, optional, tag = "1")] pub valset: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValsetConfirmRequest { #[prost(uint64, tag = "1")] @@ -1502,97 +1418,79 @@ pub struct QueryValsetConfirmRequest { #[prost(string, tag = "2")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValsetConfirmResponse { #[prost(message, optional, tag = "1")] pub confirm: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryValsetConfirmsByNonceRequest { #[prost(uint64, tag = "1")] pub nonce: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValsetConfirmsByNonceResponse { #[prost(message, repeated, tag = "1")] pub confirms: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastValsetRequestsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastValsetRequestsResponse { #[prost(message, repeated, tag = "1")] pub valsets: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingValsetRequestByAddrRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingValsetRequestByAddrResponse { #[prost(message, repeated, tag = "1")] pub valsets: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryBatchFeeRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBatchFeeResponse { #[prost(message, repeated, tag = "1")] pub batch_fees: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingBatchRequestByAddrRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingBatchRequestByAddrResponse { #[prost(message, repeated, tag = "1")] pub batch: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingLogicCallByAddrRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastPendingLogicCallByAddrResponse { #[prost(message, repeated, tag = "1")] pub call: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryOutgoingTxBatchesRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOutgoingTxBatchesResponse { #[prost(message, repeated, tag = "1")] pub batches: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryOutgoingLogicCallsRequest {} -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOutgoingLogicCallsResponse { #[prost(message, repeated, tag = "1")] pub calls: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBatchRequestByNonceRequest { #[prost(uint64, tag = "1")] @@ -1600,13 +1498,11 @@ pub struct QueryBatchRequestByNonceRequest { #[prost(string, tag = "2")] pub contract_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBatchRequestByNonceResponse { #[prost(message, optional, tag = "1")] pub batch: ::core::option::Option, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBatchConfirmsRequest { #[prost(uint64, tag = "1")] @@ -1614,13 +1510,11 @@ pub struct QueryBatchConfirmsRequest { #[prost(string, tag = "2")] pub contract_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBatchConfirmsResponse { #[prost(message, repeated, tag = "1")] pub confirms: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLogicConfirmsRequest { #[prost(bytes = "vec", tag = "1")] @@ -1628,31 +1522,26 @@ pub struct QueryLogicConfirmsRequest { #[prost(uint64, tag = "2")] pub invalidation_nonce: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLogicConfirmsResponse { #[prost(message, repeated, tag = "1")] pub confirms: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryLastEventNonceByAddrRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastEventNonceByAddrResponse { #[prost(uint64, tag = "1")] pub event_nonce: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryErc20ToDenomRequest { #[prost(string, tag = "1")] pub erc20: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryErc20ToDenomResponse { #[prost(string, tag = "1")] @@ -1660,13 +1549,11 @@ pub struct QueryErc20ToDenomResponse { #[prost(bool, tag = "2")] pub cosmos_originated: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomToErc20Request { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomToErc20Response { #[prost(string, tag = "1")] @@ -1678,16 +1565,14 @@ pub struct QueryDenomToErc20Response { /// last applied Ethereum Event on the bridge. This is expected to lag the actual /// Ethereum block height significantly due to 1. Ethereum Finality and /// 2. Consensus mirroring the state on Ethereum -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastObservedEthBlockRequest { /// indicates whether to search for store data using the old Gravity v1 key "LastObservedEthereumBlockHeightKey" /// Note that queries before the Mercury upgrade at height 1282013 must set this to true #[prost(bool, tag = "1")] pub use_v1_key: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastObservedEthBlockResponse { /// a response of 0 indicates that no Ethereum events have been observed, and thus /// the bridge is inactive @@ -1698,16 +1583,14 @@ pub struct QueryLastObservedEthBlockResponse { /// of the last applied Ethereum Event on the bridge. /// Note that this is likely to lag the last executed event a little /// due to 1. Ethereum Finality and 2. Consensus mirroring the Ethereum state -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastObservedEthNonceRequest { /// indicates whether to search for store data using the old Gravity v1 key "LastObservedEventNonceKey" /// Note that queries before the Mercury upgrade at height 1282013 must set this to true #[prost(bool, tag = "1")] pub use_v1_key: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryLastObservedEthNonceResponse { /// a response of 0 indicates that no Ethereum events have been observed, and thus /// the bridge is inactive @@ -1721,7 +1604,6 @@ pub struct QueryLastObservedEthNonceResponse { /// Filtering criteria may also be provided, including nonce, claim type, and /// height. Note, that an attestation will be returned if it matches ANY of the /// filter query parameters provided. -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttestationsRequest { /// limit defines how many attestations to limit in the response. @@ -1746,19 +1628,16 @@ pub struct QueryAttestationsRequest { #[prost(bool, tag = "6")] pub use_v1_key: bool, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAttestationsResponse { #[prost(message, repeated, tag = "1")] pub attestations: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByValidatorAddress { #[prost(string, tag = "1")] pub validator_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByValidatorAddressResponse { #[prost(string, tag = "1")] @@ -1766,13 +1645,11 @@ pub struct QueryDelegateKeysByValidatorAddressResponse { #[prost(string, tag = "2")] pub orchestrator_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByEthAddress { #[prost(string, tag = "1")] pub eth_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByEthAddressResponse { #[prost(string, tag = "1")] @@ -1780,13 +1657,11 @@ pub struct QueryDelegateKeysByEthAddressResponse { #[prost(string, tag = "2")] pub orchestrator_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByOrchestratorAddress { #[prost(string, tag = "1")] pub orchestrator_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegateKeysByOrchestratorAddressResponse { #[prost(string, tag = "1")] @@ -1794,13 +1669,11 @@ pub struct QueryDelegateKeysByOrchestratorAddressResponse { #[prost(string, tag = "2")] pub eth_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPendingSendToEth { #[prost(string, tag = "1")] pub sender_address: ::prost::alloc::string::String, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPendingSendToEthResponse { #[prost(message, repeated, tag = "1")] @@ -1808,14 +1681,12 @@ pub struct QueryPendingSendToEthResponse { #[prost(message, repeated, tag = "2")] pub unbatched_transfers: ::prost::alloc::vec::Vec, } -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QueryPendingIbcAutoForwards { /// limit defines the number of pending forwards to return, in order of their SendToCosmos.EventNonce #[prost(uint64, tag = "1")] pub limit: u64, } -#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPendingIbcAutoForwardsResponse { #[prost(message, repeated, tag = "1")] @@ -1823,7 +1694,13 @@ pub struct QueryPendingIbcAutoForwardsResponse { } /// Generated client implementations. pub mod query_client { - #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + #![allow( + unused_variables, + dead_code, + missing_docs, + clippy::wildcard_imports, + clippy::let_unit_value, + )] use tonic::codegen::*; use tonic::codegen::http::Uri; /// Query defines the gRPC querier service @@ -1846,8 +1723,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -1872,7 +1749,7 @@ pub mod query_client { >, , - >>::Error: Into + Send + Sync, + >>::Error: Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -1919,8 +1796,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1941,8 +1817,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1966,8 +1841,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -1991,8 +1865,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2016,8 +1889,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2041,8 +1913,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2068,8 +1939,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2097,8 +1967,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2126,8 +1995,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2153,8 +2021,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2178,8 +2045,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2203,8 +2069,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2228,8 +2093,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2253,8 +2117,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2278,8 +2141,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2303,8 +2165,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2328,8 +2189,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2353,8 +2213,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2378,8 +2237,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2403,8 +2261,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2428,8 +2285,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2453,8 +2309,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2480,8 +2335,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2507,8 +2361,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2534,8 +2387,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; @@ -2559,8 +2411,7 @@ pub mod query_client { .ready() .await .map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, + tonic::Status::unknown( format!("Service was not ready: {}", e.into()), ) })?; diff --git a/proto_build/Cargo.toml b/proto_build/Cargo.toml index 16807c9..ca8abd8 100644 --- a/proto_build/Cargo.toml +++ b/proto_build/Cargo.toml @@ -13,6 +13,7 @@ prost-types = {workspace = true} tonic-build = {workspace = true} log = {workspace=true} env_logger = {workspace=true} +protobuf-src = "2.1.0" walkdir = "2" regex = "1.5" diff --git a/proto_build/src/main.rs b/proto_build/src/main.rs index 5f30748..268af5c 100644 --- a/proto_build/src/main.rs +++ b/proto_build/src/main.rs @@ -83,6 +83,8 @@ pub const IBC_PROTO_REGEX_REPLACE: RegexReplace = fn main() { env_logger::Builder::from_env(Env::default().default_filter_or("info")).init(); + // used by protobuf-src in order to compile protoc on the fly rather than depend on system protoc + std::env::set_var("PROTOC", protobuf_src::protoc()); // Initiate Althea althea_main(ALTHEA_ROOT, TMP_PATH, ALTHEA_OUT_PATH); @@ -158,7 +160,7 @@ fn compile_protos( .build_client(true) .build_server(false) .out_dir(tmp_path) - .compile(&protos, proto_include_paths) + .compile_protos(&protos, proto_include_paths) .unwrap(); copy_generated_files(