diff --git a/Cargo.lock b/Cargo.lock index 5b70bca7..e7dd8668 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -51,7 +51,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -62,7 +62,7 @@ checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -264,7 +264,7 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cosmos-sdk-proto" -version = "0.20.0" +version = "0.21.1" dependencies = [ "prost", "prost-types", @@ -274,7 +274,7 @@ dependencies = [ [[package]] name = "cosmrs" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bip32", "cosmos-sdk-proto", @@ -573,7 +573,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -646,9 +646,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", @@ -656,7 +656,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.3", + "indexmap 2.0.2", "slab", "tokio", "tokio-util", @@ -943,13 +943,13 @@ checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "num-derive" -version = "0.3.3" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn", ] [[package]] @@ -1006,9 +1006,9 @@ checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "peg" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07c0b841ea54f523f7aa556956fbd293bcbe06f2e67d2eb732b7278aaf1d166a" +checksum = "400bcab7d219c38abf8bd7cc2054eb9bbbd4312d66f6a5557d572a203f646f61" dependencies = [ "peg-macros", "peg-runtime", @@ -1016,9 +1016,9 @@ dependencies = [ [[package]] name = "peg-macros" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aa52829b8decbef693af90202711348ab001456803ba2a98eb4ec8fb70844c" +checksum = "46e61cce859b76d19090f62da50a9fe92bab7c2a5f09e183763559a2ac392c90" dependencies = [ "peg-runtime", "proc-macro2", @@ -1027,9 +1027,9 @@ dependencies = [ [[package]] name = "peg-runtime" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c719dcf55f09a3a7e764c6649ab594c18a177e3599c467983cdf644bfc0a4088" +checksum = "36bae92c60fa2398ce4678b98b2c4b5a7c61099961ca1fa305aec04a9ad28922" [[package]] name = "percent-encoding" @@ -1064,7 +1064,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -1102,7 +1102,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ "proc-macro2", - "syn 2.0.37", + "syn", ] [[package]] @@ -1116,9 +1116,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4fdd22f3b9c31b53c060df4a0613a1c7f062d4115a2b984dd15b1858f7e340d" +checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" dependencies = [ "bytes", "prost-derive", @@ -1126,9 +1126,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bdf592881d821b83d471f8af290226c8d51402259e9bb5be7f9f8bdebbb11ac" +checksum = "c55e02e35260070b6f716a2423c2ff1c3bb1642ddca6f99e1f26d06268a0e2d2" dependencies = [ "bytes", "heck", @@ -1141,29 +1141,29 @@ dependencies = [ "prost", "prost-types", "regex", - "syn 2.0.37", + "syn", "tempfile", "which", ] [[package]] name = "prost-derive" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "265baba7fabd416cf5078179f7d2cbeca4ce7a9041111900675ea7c4cb8a4c32" +checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" dependencies = [ "anyhow", "itertools", "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] name = "prost-types" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e081b29f63d83a4bc75cfc9f3fe424f9156cf92d8a4f0c9407cce9a1b67327cf" +checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" dependencies = [ "prost", ] @@ -1502,7 +1502,7 @@ checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -1524,7 +1524,16 @@ checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", +] + +[[package]] +name = "serde_spanned" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +dependencies = [ + "serde", ] [[package]] @@ -1639,17 +1648,6 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "734676eb262c623cec13c3155096e08d1f8f29adce39ba17948b18dad1e54142" -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - [[package]] name = "syn" version = "2.0.37" @@ -1703,9 +1701,9 @@ dependencies = [ [[package]] name = "tendermint" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc2294fa667c8b548ee27a9ba59115472d0a09c2ba255771092a7f1dcf03a789" +checksum = "43f8a10105d0a7c4af0a242e23ed5a12519afe5cc0e68419da441bb5981a6802" dependencies = [ "bytes", "digest 0.10.7", @@ -1734,9 +1732,9 @@ dependencies = [ [[package]] name = "tendermint-config" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a25dbe8b953e80f3d61789fbdb83bf9ad6c0ef16df5ca6546f49912542cc137" +checksum = "ac6bf36c613bb113737c333e3c1d6dfd3c99f8ac679e84feb58dd6456d77fb2e" dependencies = [ "flex-error", "serde", @@ -1748,9 +1746,9 @@ dependencies = [ [[package]] name = "tendermint-proto" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc728a4f9e891d71adf66af6ecaece146f9c7a11312288a3107b3e1d6979aaf" +checksum = "ff525d5540a9fc535c38dc0d92a98da3ee36fcdfbda99cecb9f3cce5cd4d41d7" dependencies = [ "bytes", "flex-error", @@ -1766,9 +1764,9 @@ dependencies = [ [[package]] name = "tendermint-rpc" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbf0a4753b46a190f367337e0163d0b552a2674a6bac54e74f9f2cdcde2969b" +checksum = "2d8fe61b1772cd50038bdeeadf53773bb37a09e639dd8e6d996668fd220ddb29" dependencies = [ "async-trait", "bytes", @@ -1777,6 +1775,7 @@ dependencies = [ "getrandom", "peg", "pin-project", + "rand", "reqwest", "semver", "serde", @@ -1813,7 +1812,7 @@ checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -1893,7 +1892,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -1933,18 +1932,43 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.11" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af06656561d28735e9c1cd63dfd57132c8155426aa6af24f36a00a351f88c48e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.22.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +checksum = "18769cd1cec395d70860ceb4d932812a0b4d06b1a4bb336745a4d21b9496e992" dependencies = [ + "indexmap 2.0.2", "serde", + "serde_spanned", + "toml_datetime", + "winnow", ] [[package]] name = "tonic" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" +checksum = "76c4eb7a4e9ef9d4763600161f12f5070b92a578e1b634db88a6887844c91a13" dependencies = [ "async-stream", "async-trait", @@ -1969,15 +1993,15 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889" +checksum = "be4ef6dd70a610078cb4e338a0f79d06bc759ff1b22d2120c2ff02ae264ba9c2" dependencies = [ "prettyplease", "proc-macro2", "prost-build", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -2032,7 +2056,7 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] [[package]] @@ -2096,9 +2120,9 @@ dependencies = [ [[package]] name = "uuid" -version = "0.8.2" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" [[package]] name = "version_check" @@ -2152,7 +2176,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.37", + "syn", "wasm-bindgen-shared", ] @@ -2186,7 +2210,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2316,6 +2340,15 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "winnow" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +dependencies = [ + "memchr", +] + [[package]] name = "winreg" version = "0.50.0" @@ -2343,5 +2376,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn", ] diff --git a/cosmos-sdk-proto/CHANGELOG.md b/cosmos-sdk-proto/CHANGELOG.md index d1d26ce2..4e6f84bf 100644 --- a/cosmos-sdk-proto/CHANGELOG.md +++ b/cosmos-sdk-proto/CHANGELOG.md @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.21.1 (2024-03-15) +### Removed +- Deprecated `MessageExt` methods: missed from v0.21.0, technically a breaking + change, but the just-published v0.21.0 release will be yanked ([#465]) + +[#465]: https://github.com/cosmos/cosmos-rust/pull/465 + +## 0.21.0 (2024-03-15) [YANKED] +### Changed +- Update `tonic` to v0.11 ([#460]) +- Bump `tendermint-proto` dependency to v0.35 ([#461]) +- Use `prost-build` to gen IBC `Name` impls ([#462]) + +[#460]: https://github.com/cosmos/cosmos-rust/pull/460 +[#461]: https://github.com/cosmos/cosmos-rust/pull/461 +[#462]: https://github.com/cosmos/cosmos-rust/pull/462 + ## 0.20.0 (2023-10-03) ### Added - Expose `gov::v1` module ([#437]) diff --git a/cosmos-sdk-proto/Cargo.toml b/cosmos-sdk-proto/Cargo.toml index 31a77553..5870e145 100644 --- a/cosmos-sdk-proto/Cargo.toml +++ b/cosmos-sdk-proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmos-sdk-proto" -version = "0.20.0" +version = "0.21.1" authors = [ "Justin Kilpatrick ", "Greg Szabo ", @@ -16,12 +16,12 @@ edition = "2021" rust-version = "1.72" [dependencies] -prost = "0.12" +prost = "0.12.3" prost-types = "0.12" -tendermint-proto = "0.34" +tendermint-proto = "0.35" # Optional dependencies -tonic = { version = "0.10", optional = true, default-features = false, features = ["codegen", "prost"] } +tonic = { version = "0.11", optional = true, default-features = false, features = ["codegen", "prost"] } [features] default = ["grpc-transport"] diff --git a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.auth.v1beta1.rs b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.auth.v1beta1.rs index 51ea652d..35d4edb8 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.auth.v1beta1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.auth.v1beta1.rs @@ -13,6 +13,13 @@ pub struct BaseAccount { #[prost(uint64, tag = "4")] pub sequence: u64, } +impl ::prost::Name for BaseAccount { + const NAME: &'static str = "BaseAccount"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// ModuleAccount defines an account for modules that holds coins on a pool. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -24,6 +31,13 @@ pub struct ModuleAccount { #[prost(string, repeated, tag = "3")] pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ModuleAccount { + const NAME: &'static str = "ModuleAccount"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// Params defines the parameters for the auth module. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -39,3 +53,10 @@ pub struct Params { #[prost(uint64, tag = "5")] pub sig_verify_cost_secp256k1: u64, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.query.v1beta1.rs b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.query.v1beta1.rs index fa391c8e..58314ebc 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.query.v1beta1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.query.v1beta1.rs @@ -29,6 +29,13 @@ pub struct PageRequest { #[prost(bool, tag = "4")] pub count_total: bool, } +impl ::prost::Name for PageRequest { + const NAME: &'static str = "PageRequest"; + const PACKAGE: &'static str = "cosmos.base.query.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.query.v1beta1.{}", Self::NAME) + } +} /// PageResponse is to be embedded in gRPC response messages where the /// corresponding request message has used PageRequest. /// @@ -48,3 +55,10 @@ pub struct PageResponse { #[prost(uint64, tag = "2")] pub total: u64, } +impl ::prost::Name for PageResponse { + const NAME: &'static str = "PageResponse"; + const PACKAGE: &'static str = "cosmos.base.query.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.query.v1beta1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.v1beta1.rs b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.v1beta1.rs index 325bf8df..e3497310 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.v1beta1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.base.v1beta1.rs @@ -10,6 +10,13 @@ pub struct Coin { #[prost(string, tag = "2")] pub amount: ::prost::alloc::string::String, } +impl ::prost::Name for Coin { + const NAME: &'static str = "Coin"; + const PACKAGE: &'static str = "cosmos.base.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME) + } +} /// DecCoin defines a token with a denomination and a decimal amount. /// /// NOTE: The amount field is an Dec which implements the custom method @@ -22,6 +29,13 @@ pub struct DecCoin { #[prost(string, tag = "2")] pub amount: ::prost::alloc::string::String, } +impl ::prost::Name for DecCoin { + const NAME: &'static str = "DecCoin"; + const PACKAGE: &'static str = "cosmos.base.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME) + } +} /// IntProto defines a Protobuf wrapper around an Int object. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -29,6 +43,13 @@ pub struct IntProto { #[prost(string, tag = "1")] pub int: ::prost::alloc::string::String, } +impl ::prost::Name for IntProto { + const NAME: &'static str = "IntProto"; + const PACKAGE: &'static str = "cosmos.base.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME) + } +} /// DecProto defines a Protobuf wrapper around a Dec object. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -36,3 +57,10 @@ pub struct DecProto { #[prost(string, tag = "1")] pub dec: ::prost::alloc::string::String, } +impl ::prost::Name for DecProto { + const NAME: &'static str = "DecProto"; + const PACKAGE: &'static str = "cosmos.base.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.upgrade.v1beta1.rs b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.upgrade.v1beta1.rs index afd49768..dd2af2f7 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/cosmos.upgrade.v1beta1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/cosmos.upgrade.v1beta1.rs @@ -24,6 +24,13 @@ pub struct Plan { #[prost(string, tag = "4")] pub info: ::prost::alloc::string::String, } +impl ::prost::Name for Plan { + const NAME: &'static str = "Plan"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// SoftwareUpgradeProposal is a gov Content type for initiating a software /// upgrade. #[allow(clippy::derive_partial_eq_without_eq)] @@ -36,6 +43,13 @@ pub struct SoftwareUpgradeProposal { #[prost(message, optional, tag = "3")] pub plan: ::core::option::Option, } +impl ::prost::Name for SoftwareUpgradeProposal { + const NAME: &'static str = "SoftwareUpgradeProposal"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software /// upgrade. #[allow(clippy::derive_partial_eq_without_eq)] @@ -46,3 +60,10 @@ pub struct CancelSoftwareUpgradeProposal { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, } +impl ::prost::Name for CancelSoftwareUpgradeProposal { + const NAME: &'static str = "CancelSoftwareUpgradeProposal"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs index dbee6544..fc059366 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs @@ -7,10 +7,30 @@ pub struct Params { #[prost(bool, tag = "1")] pub controller_enabled: bool, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.controller.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.controller.v1.{}", + Self::NAME + ) + } +} /// 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 {} +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.controller.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.controller.v1.{}", + Self::NAME + ) + } +} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -19,6 +39,16 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryParamsResponse { + const NAME: &'static str = "QueryParamsResponse"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.controller.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.controller.v1.{}", + Self::NAME + ) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs index f049f24e..4ce4090c 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs @@ -10,10 +10,30 @@ pub struct Params { #[prost(string, repeated, tag = "2")] pub allow_messages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.host.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.host.v1.{}", + Self::NAME + ) + } +} /// 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 {} +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.host.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.host.v1.{}", + Self::NAME + ) + } +} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -22,6 +42,16 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryParamsResponse { + const NAME: &'static str = "QueryParamsResponse"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.host.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.host.v1.{}", + Self::NAME + ) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.v1.rs index 1eef5c48..fa4a0ef3 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.v1.rs @@ -8,6 +8,13 @@ pub struct InterchainAccount { #[prost(string, tag = "2")] pub account_owner: ::prost::alloc::string::String, } +impl ::prost::Name for InterchainAccount { + const NAME: &'static str = "InterchainAccount"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// 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)] @@ -19,6 +26,13 @@ pub struct InterchainAccountPacketData { #[prost(string, tag = "3")] pub memo: ::prost::alloc::string::String, } +impl ::prost::Name for InterchainAccountPacketData { + const NAME: &'static str = "InterchainAccountPacketData"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// 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)] @@ -26,6 +40,13 @@ pub struct CosmosTx { #[prost(message, repeated, tag = "1")] pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, } +impl ::prost::Name for CosmosTx { + const NAME: &'static str = "CosmosTx"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// Type defines a classification of message issued from a controller chain to its associated interchain accounts /// host #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -81,6 +102,13 @@ pub struct Metadata { #[prost(string, tag = "6")] pub tx_type: ::prost::alloc::string::String, } +impl ::prost::Name for Metadata { + const NAME: &'static str = "Metadata"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// GenesisState defines the interchain accounts genesis state #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -90,6 +118,13 @@ pub struct GenesisState { #[prost(message, optional, tag = "2")] pub host_genesis_state: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// ControllerGenesisState defines the interchain accounts controller genesis state #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -103,6 +138,13 @@ pub struct ControllerGenesisState { #[prost(message, optional, tag = "4")] pub params: ::core::option::Option, } +impl ::prost::Name for ControllerGenesisState { + const NAME: &'static str = "ControllerGenesisState"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// HostGenesisState defines the interchain accounts host genesis state #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -116,6 +158,13 @@ pub struct HostGenesisState { #[prost(message, optional, tag = "4")] pub params: ::core::option::Option, } +impl ::prost::Name for HostGenesisState { + const NAME: &'static str = "HostGenesisState"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// ActiveChannel contains a connection ID, port ID and associated active channel ID #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -127,6 +176,13 @@ pub struct ActiveChannel { #[prost(string, tag = "3")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for ActiveChannel { + const NAME: &'static str = "ActiveChannel"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} /// RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -138,3 +194,10 @@ pub struct RegisteredInterchainAccount { #[prost(string, tag = "3")] pub account_address: ::prost::alloc::string::String, } +impl ::prost::Name for RegisteredInterchainAccount { + const NAME: &'static str = "RegisteredInterchainAccount"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.interchain_accounts.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs index 97d401cf..7bd0ad00 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs @@ -28,10 +28,24 @@ pub struct MsgTransfer { #[prost(uint64, tag = "7")] pub timeout_timestamp: u64, } +impl ::prost::Name for MsgTransfer { + const NAME: &'static str = "MsgTransfer"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// MsgTransferResponse defines the Msg/Transfer response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTransferResponse {} +impl ::prost::Name for MsgTransferResponse { + const NAME: &'static str = "MsgTransferResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod msg_client { @@ -153,6 +167,13 @@ pub struct DenomTrace { #[prost(string, tag = "2")] pub base_denom: ::prost::alloc::string::String, } +impl ::prost::Name for DenomTrace { + const NAME: &'static str = "DenomTrace"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// Params defines the set of IBC transfer parameters. /// NOTE: To prevent a single token from being transferred, set the /// TransfersEnabled parameter to true and then set the bank module's SendEnabled @@ -169,6 +190,13 @@ pub struct Params { #[prost(bool, tag = "2")] pub receive_enabled: bool, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -178,6 +206,13 @@ pub struct QueryDenomTraceRequest { #[prost(string, tag = "1")] pub hash: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDenomTraceRequest { + const NAME: &'static str = "QueryDenomTraceRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -187,6 +222,13 @@ pub struct QueryDenomTraceResponse { #[prost(message, optional, tag = "1")] pub denom_trace: ::core::option::Option, } +impl ::prost::Name for QueryDenomTraceResponse { + const NAME: &'static str = "QueryDenomTraceResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryConnectionsRequest is the request type for the Query/DenomTraces RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -198,6 +240,13 @@ pub struct QueryDenomTracesRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDenomTracesRequest { + const NAME: &'static str = "QueryDenomTracesRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryConnectionsResponse is the response type for the Query/DenomTraces RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -212,10 +261,24 @@ pub struct QueryDenomTracesResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDenomTracesResponse { + const NAME: &'static str = "QueryDenomTracesResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// 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 {} +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -224,6 +287,13 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryParamsResponse { + const NAME: &'static str = "QueryParamsResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryDenomHashRequest is the request type for the Query/DenomHash RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -233,6 +303,13 @@ pub struct QueryDenomHashRequest { #[prost(string, tag = "1")] pub trace: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDenomHashRequest { + const NAME: &'static str = "QueryDenomHashRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryDenomHashResponse is the response type for the Query/DenomHash RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -242,6 +319,13 @@ pub struct QueryDenomHashResponse { #[prost(string, tag = "1")] pub hash: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDenomHashResponse { + const NAME: &'static str = "QueryDenomHashResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { @@ -433,3 +517,10 @@ pub struct GenesisState { #[prost(message, optional, tag = "3")] pub params: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v2.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v2.rs index cf073398..a7024f2f 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v2.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v2.rs @@ -17,3 +17,10 @@ pub struct FungibleTokenPacketData { #[prost(string, tag = "4")] pub receiver: ::prost::alloc::string::String, } +impl ::prost::Name for FungibleTokenPacketData { + const NAME: &'static str = "FungibleTokenPacketData"; + const PACKAGE: &'static str = "ibc.applications.transfer.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v2.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs index dddd8b56..ae0e4254 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs @@ -21,6 +21,13 @@ pub struct Channel { #[prost(string, tag = "5")] pub version: ::prost::alloc::string::String, } +impl ::prost::Name for Channel { + const NAME: &'static str = "Channel"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// IdentifiedChannel defines a channel with additional port and channel /// identifier fields. #[allow(clippy::derive_partial_eq_without_eq)] @@ -49,6 +56,13 @@ pub struct IdentifiedChannel { #[prost(string, tag = "7")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for IdentifiedChannel { + const NAME: &'static str = "IdentifiedChannel"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// Counterparty defines a channel end counterparty #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -60,6 +74,13 @@ pub struct Counterparty { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for Counterparty { + const NAME: &'static str = "Counterparty"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// Packet defines a type that carries data across different chains through IBC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -91,6 +112,13 @@ pub struct Packet { #[prost(uint64, tag = "8")] pub timeout_timestamp: u64, } +impl ::prost::Name for Packet { + const NAME: &'static str = "Packet"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// PacketState defines the generic type necessary to retrieve and store /// packet commitments, acknowledgements, and receipts. /// Caller is responsible for knowing the context necessary to interpret this @@ -111,6 +139,13 @@ pub struct PacketState { #[prost(bytes = "vec", tag = "4")] pub data: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketState { + const NAME: &'static str = "PacketState"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// Acknowledgement is the recommended acknowledgement format to be used by /// app-specific protocols. /// NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental @@ -137,6 +172,13 @@ pub mod acknowledgement { Error(::prost::alloc::string::String), } } +impl ::prost::Name for Acknowledgement { + const NAME: &'static str = "Acknowledgement"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// State defines if a channel is in one of the following states: /// CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -227,6 +269,13 @@ pub struct MsgChannelOpenInit { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelOpenInit { + const NAME: &'static str = "MsgChannelOpenInit"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -234,6 +283,13 @@ pub struct MsgChannelOpenInitResponse { #[prost(string, tag = "1")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelOpenInitResponse { + const NAME: &'static str = "MsgChannelOpenInitResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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. @@ -258,10 +314,24 @@ pub struct MsgChannelOpenTry { #[prost(string, tag = "7")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelOpenTry { + const NAME: &'static str = "MsgChannelOpenTry"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenTryResponse {} +impl ::prost::Name for MsgChannelOpenTryResponse { + const NAME: &'static str = "MsgChannelOpenTryResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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)] @@ -282,10 +352,24 @@ pub struct MsgChannelOpenAck { #[prost(string, tag = "7")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelOpenAck { + const NAME: &'static str = "MsgChannelOpenAck"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenAckResponse {} +impl ::prost::Name for MsgChannelOpenAckResponse { + const NAME: &'static str = "MsgChannelOpenAckResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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)] @@ -302,11 +386,25 @@ pub struct MsgChannelOpenConfirm { #[prost(string, tag = "5")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelOpenConfirm { + const NAME: &'static str = "MsgChannelOpenConfirm"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response /// type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenConfirmResponse {} +impl ::prost::Name for MsgChannelOpenConfirmResponse { + const NAME: &'static str = "MsgChannelOpenConfirmResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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)] @@ -319,10 +417,24 @@ pub struct MsgChannelCloseInit { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelCloseInit { + const NAME: &'static str = "MsgChannelCloseInit"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseInitResponse {} +impl ::prost::Name for MsgChannelCloseInitResponse { + const NAME: &'static str = "MsgChannelCloseInitResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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)] @@ -339,11 +451,25 @@ pub struct MsgChannelCloseConfirm { #[prost(string, tag = "5")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgChannelCloseConfirm { + const NAME: &'static str = "MsgChannelCloseConfirm"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response /// type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseConfirmResponse {} +impl ::prost::Name for MsgChannelCloseConfirmResponse { + const NAME: &'static str = "MsgChannelCloseConfirmResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgRecvPacket receives incoming IBC packet #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -357,6 +483,13 @@ pub struct MsgRecvPacket { #[prost(string, tag = "4")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRecvPacket { + const NAME: &'static str = "MsgRecvPacket"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgRecvPacketResponse defines the Msg/RecvPacket response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -364,6 +497,13 @@ pub struct MsgRecvPacketResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } +impl ::prost::Name for MsgRecvPacketResponse { + const NAME: &'static str = "MsgRecvPacketResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgTimeout receives timed-out packet #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -379,6 +519,13 @@ pub struct MsgTimeout { #[prost(string, tag = "5")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgTimeout { + const NAME: &'static str = "MsgTimeout"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgTimeoutResponse defines the Msg/Timeout response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -386,6 +533,13 @@ pub struct MsgTimeoutResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } +impl ::prost::Name for MsgTimeoutResponse { + const NAME: &'static str = "MsgTimeoutResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgTimeoutOnClose timed-out packet upon counterparty channel closure. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -403,6 +557,13 @@ pub struct MsgTimeoutOnClose { #[prost(string, tag = "6")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgTimeoutOnClose { + const NAME: &'static str = "MsgTimeoutOnClose"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -410,6 +571,13 @@ pub struct MsgTimeoutOnCloseResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } +impl ::prost::Name for MsgTimeoutOnCloseResponse { + const NAME: &'static str = "MsgTimeoutOnCloseResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgAcknowledgement receives incoming IBC acknowledgement #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -425,6 +593,13 @@ pub struct MsgAcknowledgement { #[prost(string, tag = "5")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgAcknowledgement { + const NAME: &'static str = "MsgAcknowledgement"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -432,6 +607,13 @@ pub struct MsgAcknowledgementResponse { #[prost(enumeration = "ResponseResultType", tag = "1")] pub result: i32, } +impl ::prost::Name for MsgAcknowledgementResponse { + const NAME: &'static str = "MsgAcknowledgementResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// ResponseResultType defines the possible outcomes of the execution of a message #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -774,6 +956,13 @@ pub struct QueryChannelRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryChannelRequest { + const NAME: &'static str = "QueryChannelRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// 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. @@ -790,6 +979,13 @@ pub struct QueryChannelResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryChannelResponse { + const NAME: &'static str = "QueryChannelResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelsRequest is the request type for the Query/Channels RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -800,6 +996,13 @@ pub struct QueryChannelsRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryChannelsRequest { + const NAME: &'static str = "QueryChannelsRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelsResponse is the response type for the Query/Channels RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -816,6 +1019,13 @@ pub struct QueryChannelsResponse { #[prost(message, optional, tag = "3")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryChannelsResponse { + const NAME: &'static str = "QueryChannelsResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryConnectionChannelsRequest is the request type for the /// Query/QueryConnectionChannels RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -830,6 +1040,13 @@ pub struct QueryConnectionChannelsRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryConnectionChannelsRequest { + const NAME: &'static str = "QueryConnectionChannelsRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryConnectionChannelsResponse is the Response type for the /// Query/QueryConnectionChannels RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -847,6 +1064,13 @@ pub struct QueryConnectionChannelsResponse { #[prost(message, optional, tag = "3")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryConnectionChannelsResponse { + const NAME: &'static str = "QueryConnectionChannelsResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelClientStateRequest is the request type for the Query/ClientState /// RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -859,6 +1083,13 @@ pub struct QueryChannelClientStateRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryChannelClientStateRequest { + const NAME: &'static str = "QueryChannelClientStateRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -875,6 +1106,13 @@ pub struct QueryChannelClientStateResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryChannelClientStateResponse { + const NAME: &'static str = "QueryChannelClientStateResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelConsensusStateRequest is the request type for the /// Query/ConsensusState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -893,6 +1131,13 @@ pub struct QueryChannelConsensusStateRequest { #[prost(uint64, tag = "4")] pub revision_height: u64, } +impl ::prost::Name for QueryChannelConsensusStateRequest { + const NAME: &'static str = "QueryChannelConsensusStateRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -911,6 +1156,13 @@ pub struct QueryChannelConsensusStateResponse { #[prost(message, optional, tag = "4")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryChannelConsensusStateResponse { + const NAME: &'static str = "QueryChannelConsensusStateResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketCommitmentRequest is the request type for the /// Query/PacketCommitment RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -926,6 +1178,13 @@ pub struct QueryPacketCommitmentRequest { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for QueryPacketCommitmentRequest { + const NAME: &'static str = "QueryPacketCommitmentRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketCommitmentResponse defines the client query response for a packet /// which also includes a proof and the height from which the proof was /// retrieved @@ -942,6 +1201,13 @@ pub struct QueryPacketCommitmentResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryPacketCommitmentResponse { + const NAME: &'static str = "QueryPacketCommitmentResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketCommitmentsRequest is the request type for the /// Query/QueryPacketCommitments RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -959,6 +1225,13 @@ pub struct QueryPacketCommitmentsRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryPacketCommitmentsRequest { + const NAME: &'static str = "QueryPacketCommitmentsRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketCommitmentsResponse is the request type for the /// Query/QueryPacketCommitments RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -975,6 +1248,13 @@ pub struct QueryPacketCommitmentsResponse { #[prost(message, optional, tag = "3")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryPacketCommitmentsResponse { + const NAME: &'static str = "QueryPacketCommitmentsResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketReceiptRequest is the request type for the /// Query/PacketReceipt RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -990,6 +1270,13 @@ pub struct QueryPacketReceiptRequest { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for QueryPacketReceiptRequest { + const NAME: &'static str = "QueryPacketReceiptRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketReceiptResponse defines the client query response for a packet /// receipt which also includes a proof, and the height from which the proof was /// retrieved @@ -1006,6 +1293,13 @@ pub struct QueryPacketReceiptResponse { #[prost(message, optional, tag = "4")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryPacketReceiptResponse { + const NAME: &'static str = "QueryPacketReceiptResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketAcknowledgementRequest is the request type for the /// Query/PacketAcknowledgement RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1021,6 +1315,13 @@ pub struct QueryPacketAcknowledgementRequest { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for QueryPacketAcknowledgementRequest { + const NAME: &'static str = "QueryPacketAcknowledgementRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketAcknowledgementResponse defines the client query response for a /// packet which also includes a proof and the height from which the /// proof was retrieved @@ -1037,6 +1338,13 @@ pub struct QueryPacketAcknowledgementResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryPacketAcknowledgementResponse { + const NAME: &'static str = "QueryPacketAcknowledgementResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketAcknowledgementsRequest is the request type for the /// Query/QueryPacketCommitments RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1057,6 +1365,13 @@ pub struct QueryPacketAcknowledgementsRequest { #[prost(uint64, repeated, tag = "4")] pub packet_commitment_sequences: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryPacketAcknowledgementsRequest { + const NAME: &'static str = "QueryPacketAcknowledgementsRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryPacketAcknowledgemetsResponse is the request type for the /// Query/QueryPacketAcknowledgements RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1073,6 +1388,13 @@ pub struct QueryPacketAcknowledgementsResponse { #[prost(message, optional, tag = "3")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryPacketAcknowledgementsResponse { + const NAME: &'static str = "QueryPacketAcknowledgementsResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryUnreceivedPacketsRequest is the request type for the /// Query/UnreceivedPackets RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1088,6 +1410,13 @@ pub struct QueryUnreceivedPacketsRequest { #[prost(uint64, repeated, tag = "3")] pub packet_commitment_sequences: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryUnreceivedPacketsRequest { + const NAME: &'static str = "QueryUnreceivedPacketsRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryUnreceivedPacketsResponse is the response type for the /// Query/UnreceivedPacketCommitments RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1100,6 +1429,13 @@ pub struct QueryUnreceivedPacketsResponse { #[prost(message, optional, tag = "2")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryUnreceivedPacketsResponse { + const NAME: &'static str = "QueryUnreceivedPacketsResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryUnreceivedAcks is the request type for the /// Query/UnreceivedAcks RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1115,6 +1451,13 @@ pub struct QueryUnreceivedAcksRequest { #[prost(uint64, repeated, tag = "3")] pub packet_ack_sequences: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryUnreceivedAcksRequest { + const NAME: &'static str = "QueryUnreceivedAcksRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryUnreceivedAcksResponse is the response type for the /// Query/UnreceivedAcks RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1127,6 +1470,13 @@ pub struct QueryUnreceivedAcksResponse { #[prost(message, optional, tag = "2")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryUnreceivedAcksResponse { + const NAME: &'static str = "QueryUnreceivedAcksResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryNextSequenceReceiveRequest is the request type for the /// Query/QueryNextSequenceReceiveRequest RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1139,6 +1489,13 @@ pub struct QueryNextSequenceReceiveRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryNextSequenceReceiveRequest { + const NAME: &'static str = "QueryNextSequenceReceiveRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QuerySequenceResponse is the request type for the /// Query/QueryNextSequenceReceiveResponse RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1154,6 +1511,13 @@ pub struct QueryNextSequenceReceiveResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryNextSequenceReceiveResponse { + const NAME: &'static str = "QueryNextSequenceReceiveResponse"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { @@ -1577,6 +1941,13 @@ pub struct GenesisState { #[prost(uint64, tag = "8")] pub next_channel_sequence: u64, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// PacketSequence defines the genesis type necessary to retrieve and store /// next send and receive sequences. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1589,3 +1960,10 @@ pub struct PacketSequence { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for PacketSequence { + const NAME: &'static str = "PacketSequence"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs index 0000a1fa..18e98186 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs @@ -10,6 +10,13 @@ pub struct IdentifiedClientState { #[prost(message, optional, tag = "2")] pub client_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for IdentifiedClientState { + const NAME: &'static str = "IdentifiedClientState"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// ConsensusStateWithHeight defines a consensus state with an additional height /// field. #[allow(clippy::derive_partial_eq_without_eq)] @@ -22,6 +29,13 @@ pub struct ConsensusStateWithHeight { #[prost(message, optional, tag = "2")] pub consensus_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for ConsensusStateWithHeight { + const NAME: &'static str = "ConsensusStateWithHeight"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// ClientConsensusStates defines all the stored consensus states for a given /// client. #[allow(clippy::derive_partial_eq_without_eq)] @@ -34,6 +48,13 @@ pub struct ClientConsensusStates { #[prost(message, repeated, tag = "2")] pub consensus_states: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ClientConsensusStates { + const NAME: &'static str = "ClientConsensusStates"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// ClientUpdateProposal is a governance proposal. If it passes, the substitute /// 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 @@ -55,6 +76,13 @@ pub struct ClientUpdateProposal { #[prost(string, tag = "4")] pub substitute_client_id: ::prost::alloc::string::String, } +impl ::prost::Name for ClientUpdateProposal { + const NAME: &'static str = "ClientUpdateProposal"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// UpgradeProposal is a gov Content type for initiating an IBC breaking /// upgrade. #[allow(clippy::derive_partial_eq_without_eq)] @@ -75,6 +103,13 @@ pub struct UpgradeProposal { #[prost(message, optional, tag = "4")] pub upgraded_client_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for UpgradeProposal { + const NAME: &'static str = "UpgradeProposal"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// Height is a monotonically increasing data type /// that can be compared against another Height for the purposes of updating and /// freezing clients @@ -95,6 +130,13 @@ pub struct Height { #[prost(uint64, tag = "2")] pub revision_height: u64, } +impl ::prost::Name for Height { + const NAME: &'static str = "Height"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// Params defines the set of IBC light client parameters. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -103,6 +145,13 @@ pub struct Params { #[prost(string, repeated, tag = "1")] pub allowed_clients: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgCreateClient defines a message to create an IBC client #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -118,10 +167,24 @@ pub struct MsgCreateClient { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgCreateClient { + const NAME: &'static str = "MsgCreateClient"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgCreateClientResponse defines the Msg/CreateClient response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateClientResponse {} +impl ::prost::Name for MsgCreateClientResponse { + const NAME: &'static str = "MsgCreateClientResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpdateClient defines an sdk.Msg to update a IBC client state using /// the given header. #[allow(clippy::derive_partial_eq_without_eq)] @@ -137,10 +200,24 @@ pub struct MsgUpdateClient { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgUpdateClient { + const NAME: &'static str = "MsgUpdateClient"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpdateClientResponse defines the Msg/UpdateClient response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateClientResponse {} +impl ::prost::Name for MsgUpdateClientResponse { + const NAME: &'static str = "MsgUpdateClientResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client /// state #[allow(clippy::derive_partial_eq_without_eq)] @@ -166,10 +243,24 @@ pub struct MsgUpgradeClient { #[prost(string, tag = "6")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgUpgradeClient { + const NAME: &'static str = "MsgUpgradeClient"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpgradeClientResponse {} +impl ::prost::Name for MsgUpgradeClientResponse { + const NAME: &'static str = "MsgUpgradeClientResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for /// light client misbehaviour. #[allow(clippy::derive_partial_eq_without_eq)] @@ -185,11 +276,25 @@ pub struct MsgSubmitMisbehaviour { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgSubmitMisbehaviour { + const NAME: &'static str = "MsgSubmitMisbehaviour"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response /// type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitMisbehaviourResponse {} +impl ::prost::Name for MsgSubmitMisbehaviourResponse { + const NAME: &'static str = "MsgSubmitMisbehaviourResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod msg_client { @@ -365,6 +470,13 @@ pub struct QueryClientStateRequest { #[prost(string, tag = "1")] pub client_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryClientStateRequest { + const NAME: &'static str = "QueryClientStateRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// 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. @@ -381,6 +493,13 @@ pub struct QueryClientStateResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryClientStateResponse { + const NAME: &'static str = "QueryClientStateResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryClientStatesRequest is the request type for the Query/ClientStates RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -392,6 +511,13 @@ pub struct QueryClientStatesRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryClientStatesRequest { + const NAME: &'static str = "QueryClientStatesRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryClientStatesResponse is the response type for the Query/ClientStates RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -406,6 +532,13 @@ pub struct QueryClientStatesResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryClientStatesResponse { + const NAME: &'static str = "QueryClientStatesResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// 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. @@ -426,6 +559,13 @@ pub struct QueryConsensusStateRequest { #[prost(bool, tag = "4")] pub latest_height: bool, } +impl ::prost::Name for QueryConsensusStateRequest { + const NAME: &'static str = "QueryConsensusStateRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryConsensusStateResponse is the response type for the Query/ConsensusState /// RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -441,6 +581,13 @@ pub struct QueryConsensusStateResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryConsensusStateResponse { + const NAME: &'static str = "QueryConsensusStateResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryConsensusStatesRequest is the request type for the Query/ConsensusStates /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -455,6 +602,13 @@ pub struct QueryConsensusStatesRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryConsensusStatesRequest { + const NAME: &'static str = "QueryConsensusStatesRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryConsensusStatesResponse is the response type for the /// Query/ConsensusStates RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -469,6 +623,13 @@ pub struct QueryConsensusStatesResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryConsensusStatesResponse { + const NAME: &'static str = "QueryConsensusStatesResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryClientStatusRequest is the request type for the Query/ClientStatus RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -478,6 +639,13 @@ pub struct QueryClientStatusRequest { #[prost(string, tag = "1")] pub client_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryClientStatusRequest { + const NAME: &'static str = "QueryClientStatusRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// 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)] @@ -486,11 +654,25 @@ pub struct QueryClientStatusResponse { #[prost(string, tag = "1")] pub status: ::prost::alloc::string::String, } +impl ::prost::Name for QueryClientStatusResponse { + const NAME: &'static str = "QueryClientStatusResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryClientParamsRequest is the request type for the Query/ClientParams RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientParamsRequest {} +impl ::prost::Name for QueryClientParamsRequest { + const NAME: &'static str = "QueryClientParamsRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryClientParamsResponse is the response type for the Query/ClientParams RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -500,11 +682,25 @@ pub struct QueryClientParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryClientParamsResponse { + const NAME: &'static str = "QueryClientParamsResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryUpgradedClientStateRequest is the request type for the /// Query/UpgradedClientState RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedClientStateRequest {} +impl ::prost::Name for QueryUpgradedClientStateRequest { + const NAME: &'static str = "QueryUpgradedClientStateRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryUpgradedClientStateResponse is the response type for the /// Query/UpgradedClientState RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -514,11 +710,25 @@ pub struct QueryUpgradedClientStateResponse { #[prost(message, optional, tag = "1")] pub upgraded_client_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for QueryUpgradedClientStateResponse { + const NAME: &'static str = "QueryUpgradedClientStateResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryUpgradedConsensusStateRequest is the request type for the /// Query/UpgradedConsensusState RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateRequest {} +impl ::prost::Name for QueryUpgradedConsensusStateRequest { + const NAME: &'static str = "QueryUpgradedConsensusStateRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryUpgradedConsensusStateResponse is the response type for the /// Query/UpgradedConsensusState RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -528,6 +738,13 @@ pub struct QueryUpgradedConsensusStateResponse { #[prost(message, optional, tag = "1")] pub upgraded_consensus_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for QueryUpgradedConsensusStateResponse { + const NAME: &'static str = "QueryUpgradedConsensusStateResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { @@ -815,6 +1032,13 @@ pub struct GenesisState { #[prost(uint64, tag = "6")] pub next_client_sequence: u64, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// GenesisMetadata defines the genesis type for metadata that clients may return /// with ExportMetadata #[allow(clippy::derive_partial_eq_without_eq)] @@ -827,6 +1051,13 @@ pub struct GenesisMetadata { #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GenesisMetadata { + const NAME: &'static str = "GenesisMetadata"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// IdentifiedGenesisMetadata has the client metadata with the corresponding /// client id. #[allow(clippy::derive_partial_eq_without_eq)] @@ -837,3 +1068,10 @@ pub struct IdentifiedGenesisMetadata { #[prost(message, repeated, tag = "2")] pub client_metadata: ::prost::alloc::vec::Vec, } +impl ::prost::Name for IdentifiedGenesisMetadata { + const NAME: &'static str = "IdentifiedGenesisMetadata"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.commitment.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.commitment.v1.rs index db7ce7c5..1c0cc6ff 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.commitment.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.commitment.v1.rs @@ -6,6 +6,13 @@ pub struct MerkleRoot { #[prost(bytes = "vec", tag = "1")] pub hash: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MerkleRoot { + const NAME: &'static str = "MerkleRoot"; + const PACKAGE: &'static str = "ibc.core.commitment.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.commitment.v1.{}", Self::NAME) + } +} /// 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...)) @@ -15,6 +22,13 @@ pub struct MerklePrefix { #[prost(bytes = "vec", tag = "1")] pub key_prefix: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MerklePrefix { + const NAME: &'static str = "MerklePrefix"; + const PACKAGE: &'static str = "ibc.core.commitment.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.commitment.v1.{}", Self::NAME) + } +} /// 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 @@ -24,6 +38,13 @@ pub struct MerklePath { #[prost(string, repeated, tag = "1")] pub key_path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for MerklePath { + const NAME: &'static str = "MerklePath"; + const PACKAGE: &'static str = "ibc.core.commitment.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.commitment.v1.{}", Self::NAME) + } +} /// MerkleProof is a wrapper type over a chain of CommitmentProofs. /// It demonstrates membership or non-membership for an element or set of /// elements, verifiable in conjunction with a known commitment root. Proofs @@ -35,3 +56,10 @@ pub struct MerkleProof { #[prost(message, repeated, tag = "1")] pub proofs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MerkleProof { + const NAME: &'static str = "MerkleProof"; + const PACKAGE: &'static str = "ibc.core.commitment.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.commitment.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs index 46ab99ba..2a41cc77 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs @@ -24,6 +24,13 @@ pub struct ConnectionEnd { #[prost(uint64, tag = "5")] pub delay_period: u64, } +impl ::prost::Name for ConnectionEnd { + const NAME: &'static str = "ConnectionEnd"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// IdentifiedConnection defines a connection with additional connection /// identifier field. #[allow(clippy::derive_partial_eq_without_eq)] @@ -49,6 +56,13 @@ pub struct IdentifiedConnection { #[prost(uint64, tag = "6")] pub delay_period: u64, } +impl ::prost::Name for IdentifiedConnection { + const NAME: &'static str = "IdentifiedConnection"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// Counterparty defines the counterparty chain associated with a connection end. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -65,6 +79,13 @@ pub struct Counterparty { #[prost(message, optional, tag = "3")] pub prefix: ::core::option::Option, } +impl ::prost::Name for Counterparty { + const NAME: &'static str = "Counterparty"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// ClientPaths define all the connection paths for a client state. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -73,6 +94,13 @@ pub struct ClientPaths { #[prost(string, repeated, tag = "1")] pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ClientPaths { + const NAME: &'static str = "ClientPaths"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// ConnectionPaths define all the connection paths for a given client state. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -84,6 +112,13 @@ pub struct ConnectionPaths { #[prost(string, repeated, tag = "2")] pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ConnectionPaths { + const NAME: &'static str = "ConnectionPaths"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// Version defines the versioning scheme used to negotiate the IBC verison in /// the connection handshake. #[allow(clippy::derive_partial_eq_without_eq)] @@ -96,6 +131,13 @@ pub struct Version { #[prost(string, repeated, tag = "2")] pub features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for Version { + const NAME: &'static str = "Version"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// Params defines the set of Connection parameters. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -106,6 +148,13 @@ pub struct Params { #[prost(uint64, tag = "1")] pub max_expected_time_per_block: u64, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// State defines if a connection is in one of the following states: /// INIT, TRYOPEN, OPEN or UNINITIALIZED. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -161,11 +210,25 @@ pub struct MsgConnectionOpenInit { #[prost(string, tag = "5")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgConnectionOpenInit { + const NAME: &'static str = "MsgConnectionOpenInit"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response /// type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenInitResponse {} +impl ::prost::Name for MsgConnectionOpenInitResponse { + const NAME: &'static str = "MsgConnectionOpenInitResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a /// connection on Chain B. #[allow(clippy::derive_partial_eq_without_eq)] @@ -202,10 +265,24 @@ pub struct MsgConnectionOpenTry { #[prost(string, tag = "12")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgConnectionOpenTry { + const NAME: &'static str = "MsgConnectionOpenTry"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenTryResponse {} +impl ::prost::Name for MsgConnectionOpenTryResponse { + const NAME: &'static str = "MsgConnectionOpenTryResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// 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)] @@ -236,10 +313,24 @@ pub struct MsgConnectionOpenAck { #[prost(string, tag = "10")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgConnectionOpenAck { + const NAME: &'static str = "MsgConnectionOpenAck"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenAckResponse {} +impl ::prost::Name for MsgConnectionOpenAckResponse { + const NAME: &'static str = "MsgConnectionOpenAckResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// 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)] @@ -255,11 +346,25 @@ pub struct MsgConnectionOpenConfirm { #[prost(string, tag = "4")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgConnectionOpenConfirm { + const NAME: &'static str = "MsgConnectionOpenConfirm"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm /// response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenConfirmResponse {} +impl ::prost::Name for MsgConnectionOpenConfirmResponse { + const NAME: &'static str = "MsgConnectionOpenConfirmResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod msg_client { @@ -450,6 +555,13 @@ pub struct QueryConnectionRequest { #[prost(string, tag = "1")] pub connection_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryConnectionRequest { + const NAME: &'static str = "QueryConnectionRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// 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. @@ -466,6 +578,13 @@ pub struct QueryConnectionResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryConnectionResponse { + const NAME: &'static str = "QueryConnectionResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionsRequest is the request type for the Query/Connections RPC /// method #[allow(clippy::derive_partial_eq_without_eq)] @@ -476,6 +595,13 @@ pub struct QueryConnectionsRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryConnectionsRequest { + const NAME: &'static str = "QueryConnectionsRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionsResponse is the response type for the Query/Connections RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -493,6 +619,13 @@ pub struct QueryConnectionsResponse { #[prost(message, optional, tag = "3")] pub height: ::core::option::Option, } +impl ::prost::Name for QueryConnectionsResponse { + const NAME: &'static str = "QueryConnectionsResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryClientConnectionsRequest is the request type for the /// Query/ClientConnections RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -502,6 +635,13 @@ pub struct QueryClientConnectionsRequest { #[prost(string, tag = "1")] pub client_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryClientConnectionsRequest { + const NAME: &'static str = "QueryClientConnectionsRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryClientConnectionsResponse is the response type for the /// Query/ClientConnections RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -517,6 +657,13 @@ pub struct QueryClientConnectionsResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryClientConnectionsResponse { + const NAME: &'static str = "QueryClientConnectionsResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionClientStateRequest is the request type for the /// Query/ConnectionClientState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -526,6 +673,13 @@ pub struct QueryConnectionClientStateRequest { #[prost(string, tag = "1")] pub connection_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryConnectionClientStateRequest { + const NAME: &'static str = "QueryConnectionClientStateRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionClientStateResponse is the response type for the /// Query/ConnectionClientState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -542,6 +696,13 @@ pub struct QueryConnectionClientStateResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryConnectionClientStateResponse { + const NAME: &'static str = "QueryConnectionClientStateResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionConsensusStateRequest is the request type for the /// Query/ConnectionConsensusState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -555,6 +716,13 @@ pub struct QueryConnectionConsensusStateRequest { #[prost(uint64, tag = "3")] pub revision_height: u64, } +impl ::prost::Name for QueryConnectionConsensusStateRequest { + const NAME: &'static str = "QueryConnectionConsensusStateRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionConsensusStateResponse is the response type for the /// Query/ConnectionConsensusState RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -573,6 +741,13 @@ pub struct QueryConnectionConsensusStateResponse { #[prost(message, optional, tag = "4")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryConnectionConsensusStateResponse { + const NAME: &'static str = "QueryConnectionConsensusStateResponse"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "grpc")] pub mod query_client { @@ -798,3 +973,10 @@ pub struct GenesisState { #[prost(message, optional, tag = "4")] pub params: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.types.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.types.v1.rs index 9d882d7c..06e4e3d3 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.types.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.types.v1.rs @@ -12,3 +12,10 @@ pub struct GenesisState { #[prost(message, optional, tag = "3")] pub channel_genesis: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.core.types.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.types.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.localhost.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.localhost.v1.rs index 980676d1..4fe8fe76 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.localhost.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.localhost.v1.rs @@ -10,3 +10,10 @@ pub struct ClientState { #[prost(message, optional, tag = "2")] pub height: ::core::option::Option, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.localhost.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.localhost.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v1.rs index 82b43ca2..f8ca6373 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v1.rs @@ -16,6 +16,13 @@ pub struct ClientState { #[prost(bool, tag = "4")] pub allow_update_after_proposal: bool, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// 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. @@ -33,6 +40,13 @@ pub struct ConsensusState { #[prost(uint64, tag = "3")] pub timestamp: u64, } +impl ::prost::Name for ConsensusState { + const NAME: &'static str = "ConsensusState"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// Header defines a solo machine consensus header #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -49,6 +63,13 @@ pub struct Header { #[prost(string, tag = "5")] pub new_diversifier: ::prost::alloc::string::String, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// 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)] @@ -63,6 +84,13 @@ pub struct Misbehaviour { #[prost(message, optional, tag = "4")] pub signature_two: ::core::option::Option, } +impl ::prost::Name for Misbehaviour { + const NAME: &'static str = "Misbehaviour"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// SignatureAndData contains a signature and the data signed over to create that /// signature. #[allow(clippy::derive_partial_eq_without_eq)] @@ -77,6 +105,13 @@ pub struct SignatureAndData { #[prost(uint64, tag = "4")] pub timestamp: u64, } +impl ::prost::Name for SignatureAndData { + const NAME: &'static str = "SignatureAndData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. #[allow(clippy::derive_partial_eq_without_eq)] @@ -87,6 +122,13 @@ pub struct TimestampedSignatureData { #[prost(uint64, tag = "2")] pub timestamp: u64, } +impl ::prost::Name for TimestampedSignatureData { + const NAME: &'static str = "TimestampedSignatureData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// SignBytes defines the signed bytes used for signature verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -104,6 +146,13 @@ pub struct SignBytes { #[prost(bytes = "vec", tag = "5")] pub data: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SignBytes { + const NAME: &'static str = "SignBytes"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// HeaderData returns the SignBytes data for update verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -115,6 +164,13 @@ pub struct HeaderData { #[prost(string, tag = "2")] pub new_diversifier: ::prost::alloc::string::String, } +impl ::prost::Name for HeaderData { + const NAME: &'static str = "HeaderData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// ClientStateData returns the SignBytes data for client state verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -124,6 +180,13 @@ pub struct ClientStateData { #[prost(message, optional, tag = "2")] pub client_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for ClientStateData { + const NAME: &'static str = "ClientStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// ConsensusStateData returns the SignBytes data for consensus state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -134,6 +197,13 @@ pub struct ConsensusStateData { #[prost(message, optional, tag = "2")] pub consensus_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for ConsensusStateData { + const NAME: &'static str = "ConsensusStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// ConnectionStateData returns the SignBytes data for connection state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -145,6 +215,13 @@ pub struct ConnectionStateData { pub connection: ::core::option::Option, } +impl ::prost::Name for ConnectionStateData { + const NAME: &'static str = "ConnectionStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// ChannelStateData returns the SignBytes data for channel state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -155,6 +232,13 @@ pub struct ChannelStateData { #[prost(message, optional, tag = "2")] pub channel: ::core::option::Option, } +impl ::prost::Name for ChannelStateData { + const NAME: &'static str = "ChannelStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// PacketCommitmentData returns the SignBytes data for packet commitment /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -165,6 +249,13 @@ pub struct PacketCommitmentData { #[prost(bytes = "vec", tag = "2")] pub commitment: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketCommitmentData { + const NAME: &'static str = "PacketCommitmentData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// PacketAcknowledgementData returns the SignBytes data for acknowledgement /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -175,6 +266,13 @@ pub struct PacketAcknowledgementData { #[prost(bytes = "vec", tag = "2")] pub acknowledgement: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketAcknowledgementData { + const NAME: &'static str = "PacketAcknowledgementData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// PacketReceiptAbsenceData returns the SignBytes data for /// packet receipt absence verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -183,6 +281,13 @@ pub struct PacketReceiptAbsenceData { #[prost(bytes = "vec", tag = "1")] pub path: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketReceiptAbsenceData { + const NAME: &'static str = "PacketReceiptAbsenceData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// NextSequenceRecvData returns the SignBytes data for verification of the next /// sequence to be received. #[allow(clippy::derive_partial_eq_without_eq)] @@ -193,6 +298,13 @@ pub struct NextSequenceRecvData { #[prost(uint64, tag = "2")] pub next_seq_recv: u64, } +impl ::prost::Name for NextSequenceRecvData { + const NAME: &'static str = "NextSequenceRecvData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v1.{}", Self::NAME) + } +} /// DataType defines the type of solo machine proof being created. This is done /// to preserve uniqueness of different data sign byte encodings. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v2.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v2.rs index 879c9322..958de772 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v2.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.solomachine.v2.rs @@ -16,6 +16,13 @@ pub struct ClientState { #[prost(bool, tag = "4")] pub allow_update_after_proposal: bool, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// 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. @@ -33,6 +40,13 @@ pub struct ConsensusState { #[prost(uint64, tag = "3")] pub timestamp: u64, } +impl ::prost::Name for ConsensusState { + const NAME: &'static str = "ConsensusState"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// Header defines a solo machine consensus header #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -49,6 +63,13 @@ pub struct Header { #[prost(string, tag = "5")] pub new_diversifier: ::prost::alloc::string::String, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// 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)] @@ -63,6 +84,13 @@ pub struct Misbehaviour { #[prost(message, optional, tag = "4")] pub signature_two: ::core::option::Option, } +impl ::prost::Name for Misbehaviour { + const NAME: &'static str = "Misbehaviour"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// SignatureAndData contains a signature and the data signed over to create that /// signature. #[allow(clippy::derive_partial_eq_without_eq)] @@ -77,6 +105,13 @@ pub struct SignatureAndData { #[prost(uint64, tag = "4")] pub timestamp: u64, } +impl ::prost::Name for SignatureAndData { + const NAME: &'static str = "SignatureAndData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. #[allow(clippy::derive_partial_eq_without_eq)] @@ -87,6 +122,13 @@ pub struct TimestampedSignatureData { #[prost(uint64, tag = "2")] pub timestamp: u64, } +impl ::prost::Name for TimestampedSignatureData { + const NAME: &'static str = "TimestampedSignatureData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// SignBytes defines the signed bytes used for signature verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -104,6 +146,13 @@ pub struct SignBytes { #[prost(bytes = "vec", tag = "5")] pub data: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SignBytes { + const NAME: &'static str = "SignBytes"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// HeaderData returns the SignBytes data for update verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -115,6 +164,13 @@ pub struct HeaderData { #[prost(string, tag = "2")] pub new_diversifier: ::prost::alloc::string::String, } +impl ::prost::Name for HeaderData { + const NAME: &'static str = "HeaderData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// ClientStateData returns the SignBytes data for client state verification. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -124,6 +180,13 @@ pub struct ClientStateData { #[prost(message, optional, tag = "2")] pub client_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for ClientStateData { + const NAME: &'static str = "ClientStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// ConsensusStateData returns the SignBytes data for consensus state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -134,6 +197,13 @@ pub struct ConsensusStateData { #[prost(message, optional, tag = "2")] pub consensus_state: ::core::option::Option<::prost_types::Any>, } +impl ::prost::Name for ConsensusStateData { + const NAME: &'static str = "ConsensusStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// ConnectionStateData returns the SignBytes data for connection state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -145,6 +215,13 @@ pub struct ConnectionStateData { pub connection: ::core::option::Option, } +impl ::prost::Name for ConnectionStateData { + const NAME: &'static str = "ConnectionStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// ChannelStateData returns the SignBytes data for channel state /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -155,6 +232,13 @@ pub struct ChannelStateData { #[prost(message, optional, tag = "2")] pub channel: ::core::option::Option, } +impl ::prost::Name for ChannelStateData { + const NAME: &'static str = "ChannelStateData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// PacketCommitmentData returns the SignBytes data for packet commitment /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -165,6 +249,13 @@ pub struct PacketCommitmentData { #[prost(bytes = "vec", tag = "2")] pub commitment: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketCommitmentData { + const NAME: &'static str = "PacketCommitmentData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// PacketAcknowledgementData returns the SignBytes data for acknowledgement /// verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -175,6 +266,13 @@ pub struct PacketAcknowledgementData { #[prost(bytes = "vec", tag = "2")] pub acknowledgement: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketAcknowledgementData { + const NAME: &'static str = "PacketAcknowledgementData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// PacketReceiptAbsenceData returns the SignBytes data for /// packet receipt absence verification. #[allow(clippy::derive_partial_eq_without_eq)] @@ -183,6 +281,13 @@ pub struct PacketReceiptAbsenceData { #[prost(bytes = "vec", tag = "1")] pub path: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketReceiptAbsenceData { + const NAME: &'static str = "PacketReceiptAbsenceData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// NextSequenceRecvData returns the SignBytes data for verification of the next /// sequence to be received. #[allow(clippy::derive_partial_eq_without_eq)] @@ -193,6 +298,13 @@ pub struct NextSequenceRecvData { #[prost(uint64, tag = "2")] pub next_seq_recv: u64, } +impl ::prost::Name for NextSequenceRecvData { + const NAME: &'static str = "NextSequenceRecvData"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v2.{}", Self::NAME) + } +} /// DataType defines the type of solo machine proof being created. This is done /// to preserve uniqueness of different data sign byte encodings. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.tendermint.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.tendermint.v1.rs index 3a936208..4819686b 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.tendermint.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.lightclients.tendermint.v1.rs @@ -44,6 +44,13 @@ pub struct ClientState { #[prost(bool, tag = "11")] pub allow_update_after_misbehaviour: bool, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.tendermint.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.tendermint.v1.{}", Self::NAME) + } +} /// ConsensusState defines the consensus state from Tendermint. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -58,6 +65,13 @@ pub struct ConsensusState { #[prost(bytes = "vec", tag = "3")] pub next_validators_hash: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ConsensusState { + const NAME: &'static str = "ConsensusState"; + const PACKAGE: &'static str = "ibc.lightclients.tendermint.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.tendermint.v1.{}", Self::NAME) + } +} /// Misbehaviour is a wrapper over two conflicting Headers /// that implements Misbehaviour interface expected by ICS-02 #[allow(clippy::derive_partial_eq_without_eq)] @@ -70,6 +84,13 @@ pub struct Misbehaviour { #[prost(message, optional, tag = "3")] pub header_2: ::core::option::Option
, } +impl ::prost::Name for Misbehaviour { + const NAME: &'static str = "Misbehaviour"; + const PACKAGE: &'static str = "ibc.lightclients.tendermint.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.tendermint.v1.{}", Self::NAME) + } +} /// Header defines the Tendermint client consensus Header. /// It encapsulates all the information necessary to update from a trusted /// Tendermint ConsensusState. The inclusion of TrustedHeight and @@ -94,6 +115,13 @@ pub struct Header { #[prost(message, optional, tag = "4")] pub trusted_validators: ::core::option::Option<::tendermint_proto::types::ValidatorSet>, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "ibc.lightclients.tendermint.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.tendermint.v1.{}", Self::NAME) + } +} /// Fraction defines the protobuf message type for tmmath.Fraction that only /// supports positive values. #[allow(clippy::derive_partial_eq_without_eq)] @@ -104,3 +132,10 @@ pub struct Fraction { #[prost(uint64, tag = "2")] pub denominator: u64, } +impl ::prost::Name for Fraction { + const NAME: &'static str = "Fraction"; + const PACKAGE: &'static str = "ibc.lightclients.tendermint.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.tendermint.v1.{}", Self::NAME) + } +} diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ics23.rs b/cosmos-sdk-proto/src/prost/ibc-go/ics23.rs index 0f545e54..a011ad65 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ics23.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ics23.rs @@ -30,6 +30,13 @@ pub struct ExistenceProof { #[prost(message, repeated, tag = "4")] pub path: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ExistenceProof { + const NAME: &'static str = "ExistenceProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// /// 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, @@ -45,6 +52,13 @@ pub struct NonExistenceProof { #[prost(message, optional, tag = "3")] pub right: ::core::option::Option, } +impl ::prost::Name for NonExistenceProof { + const NAME: &'static str = "NonExistenceProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// /// CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages #[allow(clippy::derive_partial_eq_without_eq)] @@ -68,6 +82,13 @@ pub mod commitment_proof { Compressed(super::CompressedBatchProof), } } +impl ::prost::Name for CommitmentProof { + const NAME: &'static str = "CommitmentProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// * /// LeafOp represents the raw key-value data we wish to prove, and /// must be flexible to represent the internal transformation from @@ -99,6 +120,13 @@ pub struct LeafOp { #[prost(bytes = "vec", tag = "5")] pub prefix: ::prost::alloc::vec::Vec, } +impl ::prost::Name for LeafOp { + const NAME: &'static str = "LeafOp"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// * /// InnerOp represents a merkle-proof step that is not a leaf. /// It represents concatenating two children and hashing them to provide the next result. @@ -125,6 +153,13 @@ pub struct InnerOp { #[prost(bytes = "vec", tag = "3")] pub suffix: ::prost::alloc::vec::Vec, } +impl ::prost::Name for InnerOp { + const NAME: &'static str = "InnerOp"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// * /// ProofSpec defines what the expected parameters are for a given proof type. /// This can be stored in the client and used to validate any incoming proofs. @@ -152,6 +187,13 @@ pub struct ProofSpec { #[prost(int32, tag = "4")] pub min_depth: i32, } +impl ::prost::Name for ProofSpec { + const NAME: &'static str = "ProofSpec"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// /// InnerSpec contains all store-specific structure info to determine if two proofs from a /// given store are neighbors. @@ -182,6 +224,13 @@ pub struct InnerSpec { #[prost(enumeration = "HashOp", tag = "6")] pub hash: i32, } +impl ::prost::Name for InnerSpec { + const NAME: &'static str = "InnerSpec"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// /// BatchProof is a group of multiple proof types than can be compressed #[allow(clippy::derive_partial_eq_without_eq)] @@ -190,6 +239,13 @@ pub struct BatchProof { #[prost(message, repeated, tag = "1")] pub entries: ::prost::alloc::vec::Vec, } +impl ::prost::Name for BatchProof { + const NAME: &'static str = "BatchProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// Use BatchEntry not CommitmentProof, to avoid recursion #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -208,6 +264,13 @@ pub mod batch_entry { Nonexist(super::NonExistenceProof), } } +impl ::prost::Name for BatchEntry { + const NAME: &'static str = "BatchEntry"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedBatchProof { @@ -216,6 +279,13 @@ pub struct CompressedBatchProof { #[prost(message, repeated, tag = "2")] pub lookup_inners: ::prost::alloc::vec::Vec, } +impl ::prost::Name for CompressedBatchProof { + const NAME: &'static str = "CompressedBatchProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} /// Use BatchEntry not CommitmentProof, to avoid recursion #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -234,6 +304,13 @@ pub mod compressed_batch_entry { Nonexist(super::CompressedNonExistenceProof), } } +impl ::prost::Name for CompressedBatchEntry { + const NAME: &'static str = "CompressedBatchEntry"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedExistenceProof { @@ -247,6 +324,13 @@ pub struct CompressedExistenceProof { #[prost(int32, repeated, tag = "4")] pub path: ::prost::alloc::vec::Vec, } +impl ::prost::Name for CompressedExistenceProof { + const NAME: &'static str = "CompressedExistenceProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedNonExistenceProof { @@ -258,6 +342,13 @@ pub struct CompressedNonExistenceProof { #[prost(message, optional, tag = "3")] pub right: ::core::option::Option, } +impl ::prost::Name for CompressedNonExistenceProof { + const NAME: &'static str = "CompressedNonExistenceProof"; + const PACKAGE: &'static str = "ics23"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ics23.{}", Self::NAME) + } +} #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum HashOp { diff --git a/cosmos-sdk-proto/src/traits.rs b/cosmos-sdk-proto/src/traits.rs index 2a156460..1484fa50 100644 --- a/cosmos-sdk-proto/src/traits.rs +++ b/cosmos-sdk-proto/src/traits.rs @@ -2,30 +2,11 @@ pub use prost::{Message, Name}; -use crate::Any; -use prost::{DecodeError, EncodeError}; +use prost::EncodeError; use std::str::FromStr; /// Extension trait for [`Message`]. pub trait MessageExt: Message { - /// Parse this message proto from [`Any`]. - #[deprecated(since = "0.20.0", note = "use Any::to_msg instead")] - fn from_any(any: &Any) -> Result - where - Self: Default + Name + Sized, - { - any.to_msg() - } - - /// Serialize this message proto as [`Any`]. - #[deprecated(since = "0.20.0", note = "use Any::from_msg instead")] - fn to_any(&self) -> Result - where - Self: Name + Sized, - { - Any::from_msg(self) - } - /// Serialize this protobuf message as a byte vector. fn to_bytes(&self) -> Result, EncodeError>; } diff --git a/cosmos-sdk-proto/src/type_names.rs b/cosmos-sdk-proto/src/type_names.rs index c00ed3b8..e555f162 100644 --- a/cosmos-sdk-proto/src/type_names.rs +++ b/cosmos-sdk-proto/src/type_names.rs @@ -3,64 +3,17 @@ // TODO(tarcieri): generate these automatically using `prost-build` // See: https://github.com/tokio-rs/prost/issues/926 -use crate::{cosmos, ibc, traits::Name}; +use crate::{cosmos, traits::Name}; macro_rules! impl_name { ($type:ty, $package:expr, $name:expr) => { impl Name for $type { const NAME: &'static str = $name; const PACKAGE: &'static str = $package; - - fn full_name() -> String { - full_name::() - } } }; } -impl_name!( - ibc::core::client::v1::ClientUpdateProposal, - "ibc.core.client.v1", - "ClientUpdateProposal" -); -impl_name!( - ibc::core::client::v1::MsgUpdateClient, - "ibc.core.client.v1", - "MsgUpdateClient" -); - -impl_name!( - ibc::core::channel::v1::MsgChannelOpenConfirm, - "ibc.core.channel.v1", - "MsgChannelOpenConfirm" -); -impl_name!( - ibc::core::channel::v1::MsgAcknowledgement, - "ibc.core.channel.v1", - "MsgAcknowledgement" -); -impl_name!( - ibc::core::channel::v1::MsgChannelOpenAck, - "ibc.core.channel.v1", - "MsgChannelOpenAck" -); -impl_name!( - ibc::core::channel::v1::MsgTimeout, - "ibc.core.channel.v1", - "MsgTimeout" -); -impl_name!( - ibc::core::channel::v1::MsgRecvPacket, - "ibc.core.channel.v1", - "MsgRecvPacket" -); - -impl_name!( - ibc::applications::transfer::v1::MsgTransfer, - "ibc.applications.transfer.v1", - "MsgTransfer" -); - impl_name!( cosmos::upgrade::v1beta1::SoftwareUpgradeProposal, "cosmos.upgrade.v1beta1", @@ -73,6 +26,17 @@ impl_name!( "ParameterChangeProposal" ); +impl_name!( + cosmos::gov::v1::MsgSubmitProposal, + "cosmos.gov.v1", + "MsgSubmitProposal" +); +impl_name!(cosmos::gov::v1::MsgDeposit, "cosmos.gov.v1", "MsgDeposit"); +impl_name!( + cosmos::gov::v1::MsgVoteWeighted, + "cosmos.gov.v1", + "MsgVoteWeighted" +); impl_name!( cosmos::gov::v1beta1::TextProposal, "cosmos.gov.v1beta1", @@ -88,6 +52,7 @@ impl_name!( "cosmos.gov.v1beta1", "MsgDeposit" ); +impl_name!(cosmos::gov::v1::MsgVote, "cosmos.gov.v1", "MsgVote"); impl_name!( cosmos::gov::v1beta1::MsgVote, "cosmos.gov.v1beta1", @@ -280,6 +245,61 @@ impl_name!( "cosmos.staking.v1beta1", "MsgDelegateResponse" ); +impl_name!( + cosmos::staking::v1beta1::CommissionRates, + "cosmos.staking.v1beta1", + "CommissionRates" +); +impl_name!( + cosmos::staking::v1beta1::Commission, + "cosmos.staking.v1beta1", + "Commission" +); +impl_name!( + cosmos::staking::v1beta1::Description, + "cosmos.staking.v1beta1", + "Description" +); +impl_name!( + cosmos::staking::v1beta1::HistoricalInfo, + "cosmos.staking.v1beta1", + "HistoricalInfo" +); +impl_name!( + cosmos::staking::v1beta1::QueryHistoricalInfoRequest, + "cosmos.staking.v1beta1", + "QueryHistoricalInfoRequest" +); +impl_name!( + cosmos::staking::v1beta1::QueryHistoricalInfoResponse, + "cosmos.staking.v1beta1", + "QueryHistoricalInfoResponse" +); +impl_name!( + cosmos::staking::v1beta1::QueryValidatorRequest, + "cosmos.staking.v1beta1", + "QueryValidatorRequest" +); +impl_name!( + cosmos::staking::v1beta1::QueryValidatorResponse, + "cosmos.staking.v1beta1", + "QueryValidatorResponse" +); +impl_name!( + cosmos::staking::v1beta1::QueryValidatorsRequest, + "cosmos.staking.v1beta1", + "QueryValidatorsRequest" +); +impl_name!( + cosmos::staking::v1beta1::QueryValidatorsResponse, + "cosmos.staking.v1beta1", + "QueryValidatorsResponse" +); +impl_name!( + cosmos::staking::v1beta1::Validator, + "cosmos.staking.v1beta1", + "Validator" +); impl_name!( cosmos::base::abci::v1beta1::MsgData, @@ -303,6 +323,11 @@ impl_name!( "ModuleAccount" ); +impl_name!( + cosmos::authz::v1beta1::MsgGrant, + "cosmos.authz.v1beta1", + "MsgGrant" +); impl_name!( cosmos::authz::v1beta1::MsgExec, "cosmos.authz.v1beta1", @@ -330,7 +355,6 @@ impl_name!( #[cfg(feature = "cosmwasm")] mod wasm { - use super::full_name; use crate::{cosmwasm, traits::Name}; const COSMWASM_PACKAGE: &str = "cosmwasm.wasm.v1"; @@ -461,8 +485,3 @@ mod wasm { "MsgClearAdminResponse" ); } - -// TODO(tarcieri): remove this when tokio-rs/prost#923 is released (v0.12.1?) -fn full_name() -> String { - format!("{}.{}", T::PACKAGE, T::NAME) -} diff --git a/cosmrs/CHANGELOG.md b/cosmrs/CHANGELOG.md index 78a288ac..30f75617 100644 --- a/cosmrs/CHANGELOG.md +++ b/cosmrs/CHANGELOG.md @@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.16.0 (2024-03-15) +### Added +- Support for uppercase Bech32 ([#444]) +- Support for `slashing` module ([#452]) +- Support for validator-related queries in `staking` module ([#453]) +- Expose `base::query` module and pagination types ([#454]) + +### Changed +- Bump `tendermint`/`tendermint-rpc` dependencies to v0.35 ([#461]) +- Bump `cosmos-sdk-proto` to v0.21.0 ([#463]) + +### Fixed +- Correctly populate `updated` and `msg` fields from proto responses ([#451]) + +[#444]: https://github.com/cosmos/cosmos-rust/pull/444 +[#451]: https://github.com/cosmos/cosmos-rust/pull/451 +[#452]: https://github.com/cosmos/cosmos-rust/pull/452 +[#453]: https://github.com/cosmos/cosmos-rust/pull/453 +[#454]: https://github.com/cosmos/cosmos-rust/pull/454 +[#461]: https://github.com/cosmos/cosmos-rust/pull/461 +[#463]: https://github.com/cosmos/cosmos-rust/pull/463 + ## 0.15.0 (2023-10-03) ### Added - Export `msg_clear_admin` and `msg_update_admin` types ([#419]) diff --git a/cosmrs/Cargo.toml b/cosmrs/Cargo.toml index 8b12a604..dd82021e 100644 --- a/cosmrs/Cargo.toml +++ b/cosmrs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmrs" -version = "0.15.0" +version = "0.16.0" authors = ["Tony Arcieri "] license = "Apache-2.0" repository = "https://github.com/cosmos/cosmos-rust/tree/main/cosmrs" @@ -12,7 +12,7 @@ edition = "2021" rust-version = "1.72" [dependencies] -cosmos-sdk-proto = { version = "0.20", default-features = false, path = "../cosmos-sdk-proto" } +cosmos-sdk-proto = { version = "0.21", default-features = false, path = "../cosmos-sdk-proto" } ecdsa = "0.16" eyre = "0.6" k256 = { version = "0.13", default-features = false, features = ["ecdsa", "sha256"] } @@ -21,12 +21,12 @@ serde = { version = "1", features = ["serde_derive"] } serde_json = "1" signature = { version = "2", features = ["std"] } subtle-encoding = { version = "0.5", features = ["bech32-preview"] } -tendermint = { version = "0.34", features = ["secp256k1"] } +tendermint = { version = "0.35", features = ["secp256k1"] } thiserror = "1" # optional dependencies bip32 = { version = "0.5", optional = true, default-features = false, features = ["alloc", "secp256k1"] } -tendermint-rpc = { version = "0.34", optional = true, features = ["http-client"] } +tendermint-rpc = { version = "0.35", optional = true, features = ["http-client"] } tokio = { version = "1", optional = true } [dev-dependencies] diff --git a/cosmrs/src/base.rs b/cosmrs/src/base.rs index 1c3fc125..1816f7ba 100644 --- a/cosmrs/src/base.rs +++ b/cosmrs/src/base.rs @@ -4,6 +4,7 @@ mod account_id; mod coin; mod denom; +/// Query support pub mod query; pub use self::{account_id::AccountId, coin::Coin, denom::Denom}; diff --git a/cosmrs/src/cosmwasm/contract_code_history_entry.rs b/cosmrs/src/cosmwasm/contract_code_history_entry.rs index eb53bb6b..f9867eec 100644 --- a/cosmrs/src/cosmwasm/contract_code_history_entry.rs +++ b/cosmrs/src/cosmwasm/contract_code_history_entry.rs @@ -34,8 +34,8 @@ impl TryFrom for ContractCo }, )?, code_id: proto.code_id, - updated: None, - msg: vec![], + updated: proto.updated.map(TryFrom::try_from).transpose()?, + msg: proto.msg, }) } } diff --git a/cosmrs/src/error.rs b/cosmrs/src/error.rs index a24d2de6..d943de3c 100644 --- a/cosmrs/src/error.rs +++ b/cosmrs/src/error.rs @@ -1,6 +1,6 @@ //! Error types -pub use eyre::{Report, Result}; +pub use eyre::Result; use tendermint::Hash; use thiserror::Error; diff --git a/cosmrs/src/lib.rs b/cosmrs/src/lib.rs index e9390cf1..7d94f0c2 100644 --- a/cosmrs/src/lib.rs +++ b/cosmrs/src/lib.rs @@ -51,7 +51,7 @@ mod base; mod error; pub use crate::{ - base::{AccountId, Amount, Coin, Denom, Gas}, + base::{query, AccountId, Amount, Coin, Denom, Gas}, error::{Error, Result}, tx::Tx, }; diff --git a/cosmrs/src/staking.rs b/cosmrs/src/staking.rs index 00f91a3b..6abd61f6 100644 --- a/cosmrs/src/staking.rs +++ b/cosmrs/src/staking.rs @@ -2,11 +2,29 @@ //! //! +mod commission; +mod commission_rates; +mod description; +mod historical_info; mod msg_begin_redelegate; mod msg_delegate; mod msg_undelegate; +mod query_historical_info_request; +mod query_historical_info_response; +mod query_validator_request; +mod query_validator_response; +mod query_validators_request; +mod query_validators_response; +mod validator; pub use self::{ - msg_begin_redelegate::MsgBeginRedelegate, msg_delegate::MsgDelegate, - msg_undelegate::MsgUndelegate, + commission::Commission, commission_rates::CommissionRates, description::Description, + historical_info::HistoricalInfo, msg_begin_redelegate::MsgBeginRedelegate, + msg_delegate::MsgDelegate, msg_undelegate::MsgUndelegate, + query_historical_info_request::QueryHistoricalInfoRequest, + query_historical_info_response::QueryHistoricalInfoResponse, + query_validator_request::QueryValidatorRequest, + query_validator_response::QueryValidatorResponse, + query_validators_request::QueryValidatorsRequest, + query_validators_response::QueryValidatorsResponse, validator::Validator, }; diff --git a/cosmrs/src/staking/commission.rs b/cosmrs/src/staking/commission.rs new file mode 100644 index 00000000..67471f2c --- /dev/null +++ b/cosmrs/src/staking/commission.rs @@ -0,0 +1,49 @@ +use crate::staking::CommissionRates; +use crate::{proto, ErrorReport, Result}; +use cosmos_sdk_proto::Timestamp; +use tendermint::Time; + +/// Commission defines commission parameters for a given validator. +#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] +pub struct Commission { + /// commission_rates defines the initial commission rates to be used for creating a validator. + pub commission_rates: Option, + + /// update_time is the last time the commission rate was changed. + pub update_time: Option