diff --git a/.changelog/unreleased/features/163-prost-name.md b/.changelog/unreleased/features/163-prost-name.md new file mode 100644 index 00000000..e67677ec --- /dev/null +++ b/.changelog/unreleased/features/163-prost-name.md @@ -0,0 +1,2 @@ +- Derive the `prost::Name` trait for all Protobuf messages + ([\#163](https://github.com/cosmos/ibc-proto-rs/pull/163)) \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index c338e700..98ba0183 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ doctest = false all-features = true [dependencies] -prost = { version = "0.12", default-features = false, features = ["prost-derive"] } +prost = { version = "0.12.3", default-features = false, features = ["prost-derive"] } bytes = { version = "1.2", default-features = false } tonic = { version = "0.10", default-features = false, optional = true } serde = { version = "1.0", default-features = false, optional = true } diff --git a/src/prost/cosmos.app.v1alpha1.rs b/src/prost/cosmos.app.v1alpha1.rs index 5460a59e..4098c8ce 100644 --- a/src/prost/cosmos.app.v1alpha1.rs +++ b/src/prost/cosmos.app.v1alpha1.rs @@ -24,6 +24,13 @@ pub struct ModuleDescriptor { #[prost(message, repeated, tag = "3")] pub can_migrate_from: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ModuleDescriptor { + const NAME: &'static str = "ModuleDescriptor"; + const PACKAGE: &'static str = "cosmos.app.v1alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.app.v1alpha1.{}", Self::NAME) + } +} /// PackageReference is a reference to a protobuf package used by a module. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -70,6 +77,13 @@ pub struct PackageReference { #[prost(uint32, tag = "2")] pub revision: u32, } +impl ::prost::Name for PackageReference { + const NAME: &'static str = "PackageReference"; + const PACKAGE: &'static str = "cosmos.app.v1alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.app.v1alpha1.{}", Self::NAME) + } +} /// MigrateFromInfo is information on a module version that a newer module /// can migrate from. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -81,3 +95,10 @@ pub struct MigrateFromInfo { #[prost(string, tag = "1")] pub module: ::prost::alloc::string::String, } +impl ::prost::Name for MigrateFromInfo { + const NAME: &'static str = "MigrateFromInfo"; + const PACKAGE: &'static str = "cosmos.app.v1alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.app.v1alpha1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.auth.module.v1.rs b/src/prost/cosmos.auth.module.v1.rs index 35a54c0e..59a0940d 100644 --- a/src/prost/cosmos.auth.module.v1.rs +++ b/src/prost/cosmos.auth.module.v1.rs @@ -12,6 +12,13 @@ pub struct Module { #[prost(string, tag = "3")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.auth.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.module.v1.{}", Self::NAME) + } +} /// ModuleAccountPermission represents permissions for a module account. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -24,3 +31,10 @@ pub struct ModuleAccountPermission { #[prost(string, repeated, tag = "2")] pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ModuleAccountPermission { + const NAME: &'static str = "ModuleAccountPermission"; + const PACKAGE: &'static str = "cosmos.auth.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.module.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.auth.v1beta1.rs b/src/prost/cosmos.auth.v1beta1.rs index 900cad3a..15ed107b 100644 --- a/src/prost/cosmos.auth.v1beta1.rs +++ b/src/prost/cosmos.auth.v1beta1.rs @@ -14,6 +14,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -26,6 +33,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) + } +} /// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules. /// /// Since: cosmos-sdk 0.47 @@ -41,6 +55,13 @@ pub struct ModuleCredential { #[prost(bytes = "vec", repeated, tag = "2")] pub derivation_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for ModuleCredential { + const NAME: &'static str = "ModuleCredential"; + 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -57,6 +78,13 @@ 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) + } +} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 @@ -73,6 +101,13 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. /// @@ -81,6 +116,13 @@ pub struct MsgUpdateParams { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -397,6 +439,13 @@ pub struct QueryAccountsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryAccountsRequest { + const NAME: &'static str = "QueryAccountsRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountsResponse is the response type for the Query/Accounts RPC method. /// /// Since: cosmos-sdk 0.43 @@ -413,6 +462,13 @@ pub struct QueryAccountsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryAccountsResponse { + const NAME: &'static str = "QueryAccountsResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountRequest is the request type for the Query/Account RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -422,6 +478,13 @@ pub struct QueryAccountRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryAccountRequest { + const NAME: &'static str = "QueryAccountRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountResponse is the response type for the Query/Account RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -431,11 +494,25 @@ pub struct QueryAccountResponse { #[prost(message, optional, tag = "1")] pub account: ::core::option::Option, } +impl ::prost::Name for QueryAccountResponse { + const NAME: &'static str = "QueryAccountResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryParamsRequest is the request type for the Query/Params RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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 = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryParamsResponse is the response type for the Query/Params RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -445,6 +522,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 = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 @@ -452,6 +536,13 @@ pub struct QueryParamsResponse { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsRequest {} +impl ::prost::Name for QueryModuleAccountsRequest { + const NAME: &'static str = "QueryModuleAccountsRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 @@ -462,6 +553,13 @@ pub struct QueryModuleAccountsResponse { #[prost(message, repeated, tag = "1")] pub accounts: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryModuleAccountsResponse { + const NAME: &'static str = "QueryModuleAccountsResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -470,6 +568,13 @@ pub struct QueryModuleAccountByNameRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } +impl ::prost::Name for QueryModuleAccountByNameRequest { + const NAME: &'static str = "QueryModuleAccountByNameRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -478,6 +583,13 @@ pub struct QueryModuleAccountByNameResponse { #[prost(message, optional, tag = "1")] pub account: ::core::option::Option, } +impl ::prost::Name for QueryModuleAccountByNameResponse { + const NAME: &'static str = "QueryModuleAccountByNameResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// Bech32PrefixRequest is the request type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 @@ -485,6 +597,13 @@ pub struct QueryModuleAccountByNameResponse { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bech32PrefixRequest {} +impl ::prost::Name for Bech32PrefixRequest { + const NAME: &'static str = "Bech32PrefixRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// Bech32PrefixResponse is the response type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 @@ -495,6 +614,13 @@ pub struct Bech32PrefixResponse { #[prost(string, tag = "1")] pub bech32_prefix: ::prost::alloc::string::String, } +impl ::prost::Name for Bech32PrefixResponse { + const NAME: &'static str = "Bech32PrefixResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// AddressBytesToStringRequest is the request type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 @@ -505,6 +631,13 @@ pub struct AddressBytesToStringRequest { #[prost(bytes = "vec", tag = "1")] pub address_bytes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for AddressBytesToStringRequest { + const NAME: &'static str = "AddressBytesToStringRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// AddressBytesToStringResponse is the response type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 @@ -515,6 +648,13 @@ pub struct AddressBytesToStringResponse { #[prost(string, tag = "1")] pub address_string: ::prost::alloc::string::String, } +impl ::prost::Name for AddressBytesToStringResponse { + const NAME: &'static str = "AddressBytesToStringResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// AddressStringToBytesRequest is the request type for AccountBytes rpc method. /// /// Since: cosmos-sdk 0.46 @@ -525,6 +665,13 @@ pub struct AddressStringToBytesRequest { #[prost(string, tag = "1")] pub address_string: ::prost::alloc::string::String, } +impl ::prost::Name for AddressStringToBytesRequest { + const NAME: &'static str = "AddressStringToBytesRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// AddressStringToBytesResponse is the response type for AddressBytes rpc method. /// /// Since: cosmos-sdk 0.46 @@ -535,6 +682,13 @@ pub struct AddressStringToBytesResponse { #[prost(bytes = "vec", tag = "1")] pub address_bytes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for AddressStringToBytesResponse { + const NAME: &'static str = "AddressStringToBytesResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 @@ -556,6 +710,13 @@ pub struct QueryAccountAddressByIdRequest { #[prost(uint64, tag = "2")] pub account_id: u64, } +impl ::prost::Name for QueryAccountAddressByIdRequest { + const NAME: &'static str = "QueryAccountAddressByIDRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 @@ -566,6 +727,13 @@ pub struct QueryAccountAddressByIdResponse { #[prost(string, tag = "1")] pub account_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryAccountAddressByIdResponse { + const NAME: &'static str = "QueryAccountAddressByIDResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountInfoRequest is the Query/AccountInfo request type. /// /// Since: cosmos-sdk 0.47 @@ -577,6 +745,13 @@ pub struct QueryAccountInfoRequest { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryAccountInfoRequest { + const NAME: &'static str = "QueryAccountInfoRequest"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// QueryAccountInfoResponse is the Query/AccountInfo response type. /// /// Since: cosmos-sdk 0.47 @@ -588,6 +763,13 @@ pub struct QueryAccountInfoResponse { #[prost(message, optional, tag = "1")] pub info: ::core::option::Option, } +impl ::prost::Name for QueryAccountInfoResponse { + const NAME: &'static str = "QueryAccountInfoResponse"; + const PACKAGE: &'static str = "cosmos.auth.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.auth.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -1663,3 +1845,10 @@ pub struct GenesisState { #[prost(message, repeated, tag = "2")] pub accounts: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + 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/src/prost/cosmos.bank.module.v1.rs b/src/prost/cosmos.bank.module.v1.rs index 09361cdb..fe1abca4 100644 --- a/src/prost/cosmos.bank.module.v1.rs +++ b/src/prost/cosmos.bank.module.v1.rs @@ -13,3 +13,10 @@ pub struct Module { #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.bank.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.module.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.bank.v1beta1.rs b/src/prost/cosmos.bank.v1beta1.rs index dfbb996b..46725f94 100644 --- a/src/prost/cosmos.bank.v1beta1.rs +++ b/src/prost/cosmos.bank.v1beta1.rs @@ -14,6 +14,13 @@ pub struct Params { #[prost(bool, tag = "2")] pub default_send_enabled: bool, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// SendEnabled maps coin denom to a send_enabled status (whether a denom is /// sendable). #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -25,6 +32,13 @@ pub struct SendEnabled { #[prost(bool, tag = "2")] pub enabled: bool, } +impl ::prost::Name for SendEnabled { + const NAME: &'static str = "SendEnabled"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Input models transaction input. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -35,6 +49,13 @@ pub struct Input { #[prost(message, repeated, tag = "2")] pub coins: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Input { + const NAME: &'static str = "Input"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Output models transaction outputs. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -45,6 +66,13 @@ pub struct Output { #[prost(message, repeated, tag = "2")] pub coins: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Output { + const NAME: &'static str = "Output"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Supply represents a struct that passively keeps track of the total supply /// amounts in the network. /// This message is deprecated now that supply is indexed by denom. @@ -55,6 +83,13 @@ pub struct Supply { #[prost(message, repeated, tag = "1")] pub total: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Supply { + const NAME: &'static str = "Supply"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// DenomUnit represents a struct that describes a given /// denomination unit of the basic token. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -75,6 +110,13 @@ pub struct DenomUnit { #[prost(string, repeated, tag = "3")] pub aliases: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for DenomUnit { + const NAME: &'static str = "DenomUnit"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Metadata represents a struct that describes /// a basic token. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -116,6 +158,13 @@ pub struct Metadata { #[prost(string, tag = "8")] pub uri_hash: ::prost::alloc::string::String, } +impl ::prost::Name for Metadata { + const NAME: &'static str = "Metadata"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgSend represents a message to send coins from one account to another. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -128,11 +177,25 @@ pub struct MsgSend { #[prost(message, repeated, tag = "3")] pub amount: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgSend { + const NAME: &'static str = "MsgSend"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgSendResponse defines the Msg/Send response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendResponse {} +impl ::prost::Name for MsgSendResponse { + const NAME: &'static str = "MsgSendResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgMultiSend represents an arbitrary multi-in, multi-out send message. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -145,11 +208,25 @@ pub struct MsgMultiSend { #[prost(message, repeated, tag = "2")] pub outputs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgMultiSend { + const NAME: &'static str = "MsgMultiSend"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgMultiSendResponse defines the Msg/MultiSend response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMultiSendResponse {} +impl ::prost::Name for MsgMultiSendResponse { + const NAME: &'static str = "MsgMultiSendResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 @@ -166,6 +243,13 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. /// @@ -174,6 +258,13 @@ pub struct MsgUpdateParams { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgSetSendEnabled is the Msg/SetSendEnabled request type. /// /// Only entries to add/update/delete need to be included. @@ -197,6 +288,13 @@ pub struct MsgSetSendEnabled { #[prost(string, repeated, tag = "3")] pub use_default_for: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for MsgSetSendEnabled { + const NAME: &'static str = "MsgSetSendEnabled"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. /// /// Since: cosmos-sdk 0.47 @@ -204,6 +302,13 @@ pub struct MsgSetSendEnabled { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetSendEnabledResponse {} +impl ::prost::Name for MsgSetSendEnabledResponse { + const NAME: &'static str = "MsgSetSendEnabledResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -760,6 +865,13 @@ pub struct QueryBalanceRequest { #[prost(string, tag = "2")] pub denom: ::prost::alloc::string::String, } +impl ::prost::Name for QueryBalanceRequest { + const NAME: &'static str = "QueryBalanceRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryBalanceResponse is the response type for the Query/Balance RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -769,6 +881,13 @@ pub struct QueryBalanceResponse { #[prost(message, optional, tag = "1")] pub balance: ::core::option::Option, } +impl ::prost::Name for QueryBalanceResponse { + const NAME: &'static str = "QueryBalanceResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryBalanceRequest is the request type for the Query/AllBalances RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -783,6 +902,13 @@ pub struct QueryAllBalancesRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryAllBalancesRequest { + const NAME: &'static str = "QueryAllBalancesRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -798,6 +924,13 @@ pub struct QueryAllBalancesResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryAllBalancesResponse { + const NAME: &'static str = "QueryAllBalancesResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySpendableBalancesRequest defines the gRPC request structure for querying /// an account's spendable balances. /// @@ -815,6 +948,13 @@ pub struct QuerySpendableBalancesRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QuerySpendableBalancesRequest { + const NAME: &'static str = "QuerySpendableBalancesRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySpendableBalancesResponse defines the gRPC response structure for querying /// an account's spendable balances. /// @@ -832,6 +972,13 @@ pub struct QuerySpendableBalancesResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QuerySpendableBalancesResponse { + const NAME: &'static str = "QuerySpendableBalancesResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySpendableBalanceByDenomRequest defines the gRPC request structure for /// querying an account's spendable balance for a specific denom. /// @@ -847,6 +994,13 @@ pub struct QuerySpendableBalanceByDenomRequest { #[prost(string, tag = "2")] pub denom: ::prost::alloc::string::String, } +impl ::prost::Name for QuerySpendableBalanceByDenomRequest { + const NAME: &'static str = "QuerySpendableBalanceByDenomRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySpendableBalanceByDenomResponse defines the gRPC response structure for /// querying an account's spendable balance for a specific denom. /// @@ -859,6 +1013,13 @@ pub struct QuerySpendableBalanceByDenomResponse { #[prost(message, optional, tag = "1")] pub balance: ::core::option::Option, } +impl ::prost::Name for QuerySpendableBalanceByDenomResponse { + const NAME: &'static str = "QuerySpendableBalanceByDenomResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -873,6 +1034,13 @@ pub struct QueryTotalSupplyRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryTotalSupplyRequest { + const NAME: &'static str = "QueryTotalSupplyRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC /// method #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -890,6 +1058,13 @@ pub struct QueryTotalSupplyResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryTotalSupplyResponse { + const NAME: &'static str = "QueryTotalSupplyResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -899,6 +1074,13 @@ pub struct QuerySupplyOfRequest { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, } +impl ::prost::Name for QuerySupplyOfRequest { + const NAME: &'static str = "QuerySupplyOfRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -908,11 +1090,25 @@ pub struct QuerySupplyOfResponse { #[prost(message, optional, tag = "1")] pub amount: ::core::option::Option, } +impl ::prost::Name for QuerySupplyOfResponse { + const NAME: &'static str = "QuerySupplyOfResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryParamsRequest defines the request type for querying x/bank parameters. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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 = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryParamsResponse defines the response type for querying x/bank parameters. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -921,6 +1117,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 = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -932,6 +1135,13 @@ pub struct QueryDenomsMetadataRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDenomsMetadataRequest { + const NAME: &'static str = "QueryDenomsMetadataRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -947,6 +1157,13 @@ pub struct QueryDenomsMetadataResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDenomsMetadataResponse { + const NAME: &'static str = "QueryDenomsMetadataResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -956,6 +1173,13 @@ pub struct QueryDenomMetadataRequest { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDenomMetadataRequest { + const NAME: &'static str = "QueryDenomMetadataRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -966,6 +1190,13 @@ pub struct QueryDenomMetadataResponse { #[prost(message, optional, tag = "1")] pub metadata: ::core::option::Option, } +impl ::prost::Name for QueryDenomMetadataResponse { + const NAME: &'static str = "QueryDenomMetadataResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, /// which queries for a paginated set of all account holders of a particular /// denomination. @@ -982,6 +1213,13 @@ pub struct QueryDenomOwnersRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDenomOwnersRequest { + const NAME: &'static str = "QueryDenomOwnersRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// DenomOwner defines structure representing an account that owns or holds a /// particular denominated token. It contains the account address and account /// balance of the denominated token. @@ -998,6 +1236,13 @@ pub struct DenomOwner { #[prost(message, optional, tag = "2")] pub balance: ::core::option::Option, } +impl ::prost::Name for DenomOwner { + const NAME: &'static str = "DenomOwner"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. /// /// Since: cosmos-sdk 0.46 @@ -1013,6 +1258,13 @@ pub struct QueryDenomOwnersResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDenomOwnersResponse { + const NAME: &'static str = "QueryDenomOwnersResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. /// /// Since: cosmos-sdk 0.47 @@ -1030,6 +1282,13 @@ pub struct QuerySendEnabledRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QuerySendEnabledRequest { + const NAME: &'static str = "QuerySendEnabledRequest"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// QuerySendEnabledResponse defines the RPC response of a SendEnable query. /// /// Since: cosmos-sdk 0.47 @@ -1046,6 +1305,13 @@ pub struct QuerySendEnabledResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QuerySendEnabledResponse { + const NAME: &'static str = "QuerySendEnabledResponse"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -2239,6 +2505,13 @@ pub struct SendAuthorization { #[prost(string, repeated, tag = "2")] pub allow_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for SendAuthorization { + const NAME: &'static str = "SendAuthorization"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// GenesisState defines the bank module's genesis state. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -2263,6 +2536,13 @@ pub struct GenesisState { #[prost(message, repeated, tag = "5")] pub send_enabled: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} /// Balance defines an account address and balance pair used in the bank module's /// genesis state. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -2276,3 +2556,10 @@ pub struct Balance { #[prost(message, repeated, tag = "2")] pub coins: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Balance { + const NAME: &'static str = "Balance"; + const PACKAGE: &'static str = "cosmos.bank.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.bank.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.base.abci.v1beta1.rs b/src/prost/cosmos.base.abci.v1beta1.rs index b76eab19..fbf5862f 100644 --- a/src/prost/cosmos.base.abci.v1beta1.rs +++ b/src/prost/cosmos.base.abci.v1beta1.rs @@ -51,6 +51,13 @@ pub struct TxResponse { #[prost(message, repeated, tag = "13")] pub events: ::prost::alloc::vec::Vec<::tendermint_proto::abci::Event>, } +impl ::prost::Name for TxResponse { + const NAME: &'static str = "TxResponse"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// ABCIMessageLog defines a structure containing an indexed tx ABCI message log. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -64,6 +71,13 @@ pub struct AbciMessageLog { #[prost(message, repeated, tag = "3")] pub events: ::prost::alloc::vec::Vec, } +impl ::prost::Name for AbciMessageLog { + const NAME: &'static str = "ABCIMessageLog"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// StringEvent defines en Event object wrapper where all the attributes /// contain key/value pairs that are strings instead of raw bytes. #[allow(clippy::derive_partial_eq_without_eq)] @@ -74,6 +88,13 @@ pub struct StringEvent { #[prost(message, repeated, tag = "2")] pub attributes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for StringEvent { + const NAME: &'static str = "StringEvent"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// Attribute defines an attribute wrapper where the key and value are /// strings instead of raw bytes. #[allow(clippy::derive_partial_eq_without_eq)] @@ -84,6 +105,13 @@ pub struct Attribute { #[prost(string, tag = "2")] pub value: ::prost::alloc::string::String, } +impl ::prost::Name for Attribute { + const NAME: &'static str = "Attribute"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// GasInfo defines tx execution gas context. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -95,6 +123,13 @@ pub struct GasInfo { #[prost(uint64, tag = "2")] pub gas_used: u64, } +impl ::prost::Name for GasInfo { + const NAME: &'static str = "GasInfo"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// Result is the union of ResponseFormat and ResponseCheckTx. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -121,6 +156,13 @@ pub struct Result { super::super::super::super::google::protobuf::Any, >, } +impl ::prost::Name for Result { + const NAME: &'static str = "Result"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// SimulationResponse defines the response generated when a transaction is /// successfully simulated. #[allow(clippy::derive_partial_eq_without_eq)] @@ -131,6 +173,13 @@ pub struct SimulationResponse { #[prost(message, optional, tag = "2")] pub result: ::core::option::Option, } +impl ::prost::Name for SimulationResponse { + const NAME: &'static str = "SimulationResponse"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// MsgData defines the data returned in a Result object during message /// execution. #[allow(clippy::derive_partial_eq_without_eq)] @@ -141,6 +190,13 @@ pub struct MsgData { #[prost(bytes = "vec", tag = "2")] pub data: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgData { + const NAME: &'static str = "MsgData"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// TxMsgData defines a list of MsgData. A transaction will have a MsgData object /// for each message. #[allow(clippy::derive_partial_eq_without_eq)] @@ -158,6 +214,13 @@ pub struct TxMsgData { super::super::super::super::google::protobuf::Any, >, } +impl ::prost::Name for TxMsgData { + const NAME: &'static str = "TxMsgData"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} /// SearchTxsResult defines a structure for querying txs pageable #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -181,3 +244,10 @@ pub struct SearchTxsResult { #[prost(message, repeated, tag = "6")] pub txs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SearchTxsResult { + const NAME: &'static str = "SearchTxsResult"; + const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.abci.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.base.kv.v1beta1.rs b/src/prost/cosmos.base.kv.v1beta1.rs index 60bda62f..6bd5f9c6 100644 --- a/src/prost/cosmos.base.kv.v1beta1.rs +++ b/src/prost/cosmos.base.kv.v1beta1.rs @@ -5,6 +5,13 @@ pub struct Pairs { #[prost(message, repeated, tag = "1")] pub pairs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Pairs { + const NAME: &'static str = "Pairs"; + const PACKAGE: &'static str = "cosmos.base.kv.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.kv.v1beta1.{}", Self::NAME) + } +} /// Pair defines a key/value bytes tuple. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -14,3 +21,10 @@ pub struct Pair { #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Pair { + const NAME: &'static str = "Pair"; + const PACKAGE: &'static str = "cosmos.base.kv.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.kv.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.base.node.v1beta1.rs b/src/prost/cosmos.base.node.v1beta1.rs index a3c81017..69d16e40 100644 --- a/src/prost/cosmos.base.node.v1beta1.rs +++ b/src/prost/cosmos.base.node.v1beta1.rs @@ -2,6 +2,13 @@ #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigRequest {} +impl ::prost::Name for ConfigRequest { + const NAME: &'static str = "ConfigRequest"; + const PACKAGE: &'static str = "cosmos.base.node.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.node.v1beta1.{}", Self::NAME) + } +} /// ConfigResponse defines the response structure for the Config gRPC query. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -9,6 +16,13 @@ pub struct ConfigResponse { #[prost(string, tag = "1")] pub minimum_gas_price: ::prost::alloc::string::String, } +impl ::prost::Name for ConfigResponse { + const NAME: &'static str = "ConfigResponse"; + const PACKAGE: &'static str = "cosmos.base.node.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.node.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod service_client { diff --git a/src/prost/cosmos.base.query.v1beta1.rs b/src/prost/cosmos.base.query.v1beta1.rs index 41258d9f..9ed79dc7 100644 --- a/src/prost/cosmos.base.query.v1beta1.rs +++ b/src/prost/cosmos.base.query.v1beta1.rs @@ -35,6 +35,13 @@ pub struct PageRequest { #[prost(bool, tag = "5")] pub reverse: 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. /// @@ -56,3 +63,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/src/prost/cosmos.base.reflection.v1beta1.rs b/src/prost/cosmos.base.reflection.v1beta1.rs index 59d25f91..09305595 100644 --- a/src/prost/cosmos.base.reflection.v1beta1.rs +++ b/src/prost/cosmos.base.reflection.v1beta1.rs @@ -2,6 +2,13 @@ #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAllInterfacesRequest {} +impl ::prost::Name for ListAllInterfacesRequest { + const NAME: &'static str = "ListAllInterfacesRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v1beta1.{}", Self::NAME) + } +} /// ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -10,6 +17,13 @@ pub struct ListAllInterfacesResponse { #[prost(string, repeated, tag = "1")] pub interface_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ListAllInterfacesResponse { + const NAME: &'static str = "ListAllInterfacesResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v1beta1.{}", Self::NAME) + } +} /// ListImplementationsRequest is the request type of the ListImplementations /// RPC. #[allow(clippy::derive_partial_eq_without_eq)] @@ -19,6 +33,13 @@ pub struct ListImplementationsRequest { #[prost(string, tag = "1")] pub interface_name: ::prost::alloc::string::String, } +impl ::prost::Name for ListImplementationsRequest { + const NAME: &'static str = "ListImplementationsRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v1beta1.{}", Self::NAME) + } +} /// ListImplementationsResponse is the response type of the ListImplementations /// RPC. #[allow(clippy::derive_partial_eq_without_eq)] @@ -29,6 +50,13 @@ pub struct ListImplementationsResponse { ::prost::alloc::string::String, >, } +impl ::prost::Name for ListImplementationsResponse { + const NAME: &'static str = "ListImplementationsResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod reflection_service_client { diff --git a/src/prost/cosmos.base.reflection.v2alpha1.rs b/src/prost/cosmos.base.reflection.v2alpha1.rs index 702862b8..ec09ac3a 100644 --- a/src/prost/cosmos.base.reflection.v2alpha1.rs +++ b/src/prost/cosmos.base.reflection.v2alpha1.rs @@ -22,6 +22,13 @@ pub struct AppDescriptor { #[prost(message, optional, tag = "6")] pub tx: ::core::option::Option, } +impl ::prost::Name for AppDescriptor { + const NAME: &'static str = "AppDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// TxDescriptor describes the accepted transaction type #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -35,6 +42,13 @@ pub struct TxDescriptor { #[prost(message, repeated, tag = "2")] pub msgs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TxDescriptor { + const NAME: &'static str = "TxDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// AuthnDescriptor provides information on how to sign transactions without relying /// on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures #[allow(clippy::derive_partial_eq_without_eq)] @@ -44,6 +58,13 @@ pub struct AuthnDescriptor { #[prost(message, repeated, tag = "1")] pub sign_modes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for AuthnDescriptor { + const NAME: &'static str = "AuthnDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// SigningModeDescriptor provides information on a signing flow of the application /// NOTE(fdymylja): here we could go as far as providing an entire flow on how /// to sign a message given a SigningModeDescriptor, but it's better to think about @@ -62,6 +83,13 @@ pub struct SigningModeDescriptor { #[prost(string, tag = "3")] pub authn_info_provider_method_fullname: ::prost::alloc::string::String, } +impl ::prost::Name for SigningModeDescriptor { + const NAME: &'static str = "SigningModeDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// ChainDescriptor describes chain information of the application #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -70,6 +98,13 @@ pub struct ChainDescriptor { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, } +impl ::prost::Name for ChainDescriptor { + const NAME: &'static str = "ChainDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// CodecDescriptor describes the registered interfaces and provides metadata information on the types #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -78,6 +113,13 @@ pub struct CodecDescriptor { #[prost(message, repeated, tag = "1")] pub interfaces: ::prost::alloc::vec::Vec, } +impl ::prost::Name for CodecDescriptor { + const NAME: &'static str = "CodecDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// InterfaceDescriptor describes the implementation of an interface #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -95,6 +137,13 @@ pub struct InterfaceDescriptor { #[prost(message, repeated, tag = "3")] pub interface_implementers: ::prost::alloc::vec::Vec, } +impl ::prost::Name for InterfaceDescriptor { + const NAME: &'static str = "InterfaceDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// InterfaceImplementerDescriptor describes an interface implementer #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -109,6 +158,13 @@ pub struct InterfaceImplementerDescriptor { #[prost(string, tag = "2")] pub type_url: ::prost::alloc::string::String, } +impl ::prost::Name for InterfaceImplementerDescriptor { + const NAME: &'static str = "InterfaceImplementerDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// InterfaceAcceptingMessageDescriptor describes a protobuf message which contains /// an interface represented as a google.protobuf.Any #[allow(clippy::derive_partial_eq_without_eq)] @@ -123,6 +179,13 @@ pub struct InterfaceAcceptingMessageDescriptor { #[prost(string, repeated, tag = "2")] pub field_descriptor_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for InterfaceAcceptingMessageDescriptor { + const NAME: &'static str = "InterfaceAcceptingMessageDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// ConfigurationDescriptor contains metadata information on the sdk.Config #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -131,6 +194,13 @@ pub struct ConfigurationDescriptor { #[prost(string, tag = "1")] pub bech32_account_address_prefix: ::prost::alloc::string::String, } +impl ::prost::Name for ConfigurationDescriptor { + const NAME: &'static str = "ConfigurationDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -139,10 +209,24 @@ pub struct MsgDescriptor { #[prost(string, tag = "1")] pub msg_type_url: ::prost::alloc::string::String, } +impl ::prost::Name for MsgDescriptor { + const NAME: &'static str = "MsgDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAuthnDescriptorRequest {} +impl ::prost::Name for GetAuthnDescriptorRequest { + const NAME: &'static str = "GetAuthnDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -151,10 +235,24 @@ pub struct GetAuthnDescriptorResponse { #[prost(message, optional, tag = "1")] pub authn: ::core::option::Option, } +impl ::prost::Name for GetAuthnDescriptorResponse { + const NAME: &'static str = "GetAuthnDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetChainDescriptorRequest {} +impl ::prost::Name for GetChainDescriptorRequest { + const NAME: &'static str = "GetChainDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -163,10 +261,24 @@ pub struct GetChainDescriptorResponse { #[prost(message, optional, tag = "1")] pub chain: ::core::option::Option, } +impl ::prost::Name for GetChainDescriptorResponse { + const NAME: &'static str = "GetChainDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetCodecDescriptorRequest {} +impl ::prost::Name for GetCodecDescriptorRequest { + const NAME: &'static str = "GetCodecDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -175,10 +287,24 @@ pub struct GetCodecDescriptorResponse { #[prost(message, optional, tag = "1")] pub codec: ::core::option::Option, } +impl ::prost::Name for GetCodecDescriptorResponse { + const NAME: &'static str = "GetCodecDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetConfigurationDescriptorRequest {} +impl ::prost::Name for GetConfigurationDescriptorRequest { + const NAME: &'static str = "GetConfigurationDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -187,10 +313,24 @@ pub struct GetConfigurationDescriptorResponse { #[prost(message, optional, tag = "1")] pub config: ::core::option::Option, } +impl ::prost::Name for GetConfigurationDescriptorResponse { + const NAME: &'static str = "GetConfigurationDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetQueryServicesDescriptorRequest {} +impl ::prost::Name for GetQueryServicesDescriptorRequest { + const NAME: &'static str = "GetQueryServicesDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -199,10 +339,24 @@ pub struct GetQueryServicesDescriptorResponse { #[prost(message, optional, tag = "1")] pub queries: ::core::option::Option, } +impl ::prost::Name for GetQueryServicesDescriptorResponse { + const NAME: &'static str = "GetQueryServicesDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxDescriptorRequest {} +impl ::prost::Name for GetTxDescriptorRequest { + const NAME: &'static str = "GetTxDescriptorRequest"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -212,6 +366,13 @@ pub struct GetTxDescriptorResponse { #[prost(message, optional, tag = "1")] pub tx: ::core::option::Option, } +impl ::prost::Name for GetTxDescriptorResponse { + const NAME: &'static str = "GetTxDescriptorResponse"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// QueryServicesDescriptor contains the list of cosmos-sdk queriable services #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -220,6 +381,13 @@ pub struct QueryServicesDescriptor { #[prost(message, repeated, tag = "1")] pub query_services: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryServicesDescriptor { + const NAME: &'static str = "QueryServicesDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// QueryServiceDescriptor describes a cosmos-sdk queryable service #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -234,6 +402,13 @@ pub struct QueryServiceDescriptor { #[prost(message, repeated, tag = "3")] pub methods: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryServiceDescriptor { + const NAME: &'static str = "QueryServiceDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// QueryMethodDescriptor describes a queryable method of a query service /// no other info is provided beside method name and tendermint queryable path /// because it would be redundant with the grpc reflection service @@ -248,6 +423,13 @@ pub struct QueryMethodDescriptor { #[prost(string, tag = "2")] pub full_query_path: ::prost::alloc::string::String, } +impl ::prost::Name for QueryMethodDescriptor { + const NAME: &'static str = "QueryMethodDescriptor"; + const PACKAGE: &'static str = "cosmos.base.reflection.v2alpha1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.reflection.v2alpha1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod reflection_service_client { diff --git a/src/prost/cosmos.base.snapshots.v1beta1.rs b/src/prost/cosmos.base.snapshots.v1beta1.rs index 546f9d4f..614c936c 100644 --- a/src/prost/cosmos.base.snapshots.v1beta1.rs +++ b/src/prost/cosmos.base.snapshots.v1beta1.rs @@ -13,6 +13,13 @@ pub struct Snapshot { #[prost(message, optional, tag = "5")] pub metadata: ::core::option::Option, } +impl ::prost::Name for Snapshot { + const NAME: &'static str = "Snapshot"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// Metadata contains SDK-specific snapshot metadata. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -21,6 +28,13 @@ pub struct Metadata { #[prost(bytes = "vec", repeated, tag = "1")] pub chunk_hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for Metadata { + const NAME: &'static str = "Metadata"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotItem is an item contained in a rootmulti.Store snapshot. /// /// Since: cosmos-sdk 0.46 @@ -51,6 +65,13 @@ pub mod snapshot_item { Schema(super::SnapshotSchema), } } +impl ::prost::Name for SnapshotItem { + const NAME: &'static str = "SnapshotItem"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotStoreItem contains metadata about a snapshotted store. /// /// Since: cosmos-sdk 0.46 @@ -60,6 +81,13 @@ pub struct SnapshotStoreItem { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } +impl ::prost::Name for SnapshotStoreItem { + const NAME: &'static str = "SnapshotStoreItem"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotIAVLItem is an exported IAVL node. /// /// Since: cosmos-sdk 0.46 @@ -77,6 +105,13 @@ pub struct SnapshotIavlItem { #[prost(int32, tag = "4")] pub height: i32, } +impl ::prost::Name for SnapshotIavlItem { + const NAME: &'static str = "SnapshotIAVLItem"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotExtensionMeta contains metadata about an external snapshotter. /// /// Since: cosmos-sdk 0.46 @@ -88,6 +123,13 @@ pub struct SnapshotExtensionMeta { #[prost(uint32, tag = "2")] pub format: u32, } +impl ::prost::Name for SnapshotExtensionMeta { + const NAME: &'static str = "SnapshotExtensionMeta"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotExtensionPayload contains payloads of an external snapshotter. /// /// Since: cosmos-sdk 0.46 @@ -97,6 +139,13 @@ pub struct SnapshotExtensionPayload { #[prost(bytes = "vec", tag = "1")] pub payload: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SnapshotExtensionPayload { + const NAME: &'static str = "SnapshotExtensionPayload"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotKVItem is an exported Key/Value Pair /// /// Since: cosmos-sdk 0.46 @@ -109,6 +158,13 @@ pub struct SnapshotKvItem { #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SnapshotKvItem { + const NAME: &'static str = "SnapshotKVItem"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} /// SnapshotSchema is an exported schema of smt store /// /// Since: cosmos-sdk 0.46 @@ -119,3 +175,10 @@ pub struct SnapshotSchema { #[prost(bytes = "vec", repeated, tag = "1")] pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for SnapshotSchema { + const NAME: &'static str = "SnapshotSchema"; + const PACKAGE: &'static str = "cosmos.base.snapshots.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.snapshots.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.base.tendermint.v1beta1.rs b/src/prost/cosmos.base.tendermint.v1beta1.rs index 24af374f..82dd22d6 100644 --- a/src/prost/cosmos.base.tendermint.v1beta1.rs +++ b/src/prost/cosmos.base.tendermint.v1beta1.rs @@ -12,6 +12,13 @@ pub struct Block { #[prost(message, optional, tag = "4")] pub last_commit: ::core::option::Option<::tendermint_proto::types::Commit>, } +impl ::prost::Name for Block { + const NAME: &'static str = "Block"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// Header defines the structure of a Tendermint block header. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -68,6 +75,13 @@ pub struct Header { #[prost(string, tag = "14")] pub proposer_address: ::prost::alloc::string::String, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -78,6 +92,13 @@ pub struct GetValidatorSetByHeightRequest { #[prost(message, optional, tag = "2")] pub pagination: ::core::option::Option, } +impl ::prost::Name for GetValidatorSetByHeightRequest { + const NAME: &'static str = "GetValidatorSetByHeightRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -90,6 +111,13 @@ pub struct GetValidatorSetByHeightResponse { #[prost(message, optional, tag = "3")] pub pagination: ::core::option::Option, } +impl ::prost::Name for GetValidatorSetByHeightResponse { + const NAME: &'static str = "GetValidatorSetByHeightResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -98,6 +126,13 @@ pub struct GetLatestValidatorSetRequest { #[prost(message, optional, tag = "1")] pub pagination: ::core::option::Option, } +impl ::prost::Name for GetLatestValidatorSetRequest { + const NAME: &'static str = "GetLatestValidatorSetRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -110,6 +145,13 @@ pub struct GetLatestValidatorSetResponse { #[prost(message, optional, tag = "3")] pub pagination: ::core::option::Option, } +impl ::prost::Name for GetLatestValidatorSetResponse { + const NAME: &'static str = "GetLatestValidatorSetResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// Validator is the type for the validator-set. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -125,6 +167,13 @@ pub struct Validator { #[prost(int64, tag = "4")] pub proposer_priority: i64, } +impl ::prost::Name for Validator { + const NAME: &'static str = "Validator"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -132,6 +181,13 @@ pub struct GetBlockByHeightRequest { #[prost(int64, tag = "1")] pub height: i64, } +impl ::prost::Name for GetBlockByHeightRequest { + const NAME: &'static str = "GetBlockByHeightRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -145,10 +201,24 @@ pub struct GetBlockByHeightResponse { #[prost(message, optional, tag = "3")] pub sdk_block: ::core::option::Option, } +impl ::prost::Name for GetBlockByHeightResponse { + const NAME: &'static str = "GetBlockByHeightResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestBlockRequest {} +impl ::prost::Name for GetLatestBlockRequest { + const NAME: &'static str = "GetLatestBlockRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -162,10 +232,24 @@ pub struct GetLatestBlockResponse { #[prost(message, optional, tag = "3")] pub sdk_block: ::core::option::Option, } +impl ::prost::Name for GetLatestBlockResponse { + const NAME: &'static str = "GetLatestBlockResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetSyncingRequest is the request type for the Query/GetSyncing RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSyncingRequest {} +impl ::prost::Name for GetSyncingRequest { + const NAME: &'static str = "GetSyncingRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetSyncingResponse is the response type for the Query/GetSyncing RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -173,10 +257,24 @@ pub struct GetSyncingResponse { #[prost(bool, tag = "1")] pub syncing: bool, } +impl ::prost::Name for GetSyncingResponse { + const NAME: &'static str = "GetSyncingResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNodeInfoRequest {} +impl ::prost::Name for GetNodeInfoRequest { + const NAME: &'static str = "GetNodeInfoRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -188,6 +286,13 @@ pub struct GetNodeInfoResponse { #[prost(message, optional, tag = "2")] pub application_version: ::core::option::Option, } +impl ::prost::Name for GetNodeInfoResponse { + const NAME: &'static str = "GetNodeInfoResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// VersionInfo is the type for the GetNodeInfoResponse message. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -210,6 +315,13 @@ pub struct VersionInfo { #[prost(string, tag = "8")] pub cosmos_sdk_version: ::prost::alloc::string::String, } +impl ::prost::Name for VersionInfo { + const NAME: &'static str = "VersionInfo"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// Module is the type for VersionInfo #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -224,6 +336,13 @@ pub struct Module { #[prost(string, tag = "3")] pub sum: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -237,6 +356,13 @@ pub struct AbciQueryRequest { #[prost(bool, tag = "4")] pub prove: bool, } +impl ::prost::Name for AbciQueryRequest { + const NAME: &'static str = "ABCIQueryRequest"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. /// /// Note: This type is a duplicate of the ResponseQuery proto type defined in @@ -265,6 +391,13 @@ pub struct AbciQueryResponse { #[prost(string, tag = "10")] pub codespace: ::prost::alloc::string::String, } +impl ::prost::Name for AbciQueryResponse { + const NAME: &'static str = "ABCIQueryResponse"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// ProofOp defines an operation used for calculating Merkle root. The data could /// be arbitrary format, providing necessary data for example neighbouring node /// hash. @@ -280,6 +413,13 @@ pub struct ProofOp { #[prost(bytes = "vec", tag = "3")] pub data: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ProofOp { + const NAME: &'static str = "ProofOp"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// ProofOps is Merkle proof defined by the list of ProofOps. /// /// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. @@ -289,6 +429,13 @@ pub struct ProofOps { #[prost(message, repeated, tag = "1")] pub ops: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ProofOps { + const NAME: &'static str = "ProofOps"; + const PACKAGE: &'static str = "cosmos.base.tendermint.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.base.tendermint.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod service_client { diff --git a/src/prost/cosmos.base.v1beta1.rs b/src/prost/cosmos.base.v1beta1.rs index 6cedf8eb..739a6fc9 100644 --- a/src/prost/cosmos.base.v1beta1.rs +++ b/src/prost/cosmos.base.v1beta1.rs @@ -11,6 +11,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 @@ -24,6 +31,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -32,6 +46,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -40,3 +61,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/src/prost/cosmos.crypto.ed25519.rs b/src/prost/cosmos.crypto.ed25519.rs index 99620e3a..4195c048 100644 --- a/src/prost/cosmos.crypto.ed25519.rs +++ b/src/prost/cosmos.crypto.ed25519.rs @@ -9,6 +9,13 @@ pub struct PubKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PubKey { + const NAME: &'static str = "PubKey"; + const PACKAGE: &'static str = "cosmos.crypto.ed25519"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.ed25519.{}", Self::NAME) + } +} /// Deprecated: PrivKey defines a ed25519 private key. /// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. #[allow(clippy::derive_partial_eq_without_eq)] @@ -17,3 +24,10 @@ pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PrivKey { + const NAME: &'static str = "PrivKey"; + const PACKAGE: &'static str = "cosmos.crypto.ed25519"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.ed25519.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.hd.v1.rs b/src/prost/cosmos.crypto.hd.v1.rs index 65fdd3fa..0561b040 100644 --- a/src/prost/cosmos.crypto.hd.v1.rs +++ b/src/prost/cosmos.crypto.hd.v1.rs @@ -19,3 +19,10 @@ pub struct Bip44Params { #[prost(uint32, tag = "5")] pub address_index: u32, } +impl ::prost::Name for Bip44Params { + const NAME: &'static str = "BIP44Params"; + const PACKAGE: &'static str = "cosmos.crypto.hd.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.hd.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.keyring.v1.rs b/src/prost/cosmos.crypto.keyring.v1.rs index 34ae205c..1990225d 100644 --- a/src/prost/cosmos.crypto.keyring.v1.rs +++ b/src/prost/cosmos.crypto.keyring.v1.rs @@ -26,6 +26,13 @@ pub mod record { super::super::super::super::super::google::protobuf::Any, >, } + impl ::prost::Name for Local { + const NAME: &'static str = "Local"; + const PACKAGE: &'static str = "cosmos.crypto.keyring.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.keyring.v1.Record.{}", Self::NAME) + } + } /// Ledger item #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -33,14 +40,35 @@ pub mod record { #[prost(message, optional, tag = "1")] pub path: ::core::option::Option, } + impl ::prost::Name for Ledger { + const NAME: &'static str = "Ledger"; + const PACKAGE: &'static str = "cosmos.crypto.keyring.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.keyring.v1.Record.{}", Self::NAME) + } + } /// Multi item #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi {} + impl ::prost::Name for Multi { + const NAME: &'static str = "Multi"; + const PACKAGE: &'static str = "cosmos.crypto.keyring.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.keyring.v1.Record.{}", Self::NAME) + } + } /// Offline item #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Offline {} + impl ::prost::Name for Offline { + const NAME: &'static str = "Offline"; + const PACKAGE: &'static str = "cosmos.crypto.keyring.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.keyring.v1.Record.{}", Self::NAME) + } + } /// Record contains one of the following items #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] @@ -59,3 +87,10 @@ pub mod record { Offline(Offline), } } +impl ::prost::Name for Record { + const NAME: &'static str = "Record"; + const PACKAGE: &'static str = "cosmos.crypto.keyring.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.keyring.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.multisig.rs b/src/prost/cosmos.crypto.multisig.rs index c843eb9f..6455fb3d 100644 --- a/src/prost/cosmos.crypto.multisig.rs +++ b/src/prost/cosmos.crypto.multisig.rs @@ -11,3 +11,10 @@ pub struct LegacyAminoPubKey { super::super::super::google::protobuf::Any, >, } +impl ::prost::Name for LegacyAminoPubKey { + const NAME: &'static str = "LegacyAminoPubKey"; + const PACKAGE: &'static str = "cosmos.crypto.multisig"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.multisig.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.multisig.v1beta1.rs b/src/prost/cosmos.crypto.multisig.v1beta1.rs index c245db9e..1d784f69 100644 --- a/src/prost/cosmos.crypto.multisig.v1beta1.rs +++ b/src/prost/cosmos.crypto.multisig.v1beta1.rs @@ -7,6 +7,13 @@ pub struct MultiSignature { #[prost(bytes = "vec", repeated, tag = "1")] pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for MultiSignature { + const NAME: &'static str = "MultiSignature"; + const PACKAGE: &'static str = "cosmos.crypto.multisig.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.multisig.v1beta1.{}", Self::NAME) + } +} /// CompactBitArray is an implementation of a space efficient bit array. /// This is used to ensure that the encoded data takes up a minimal amount of /// space after proto encoding. @@ -19,3 +26,10 @@ pub struct CompactBitArray { #[prost(bytes = "vec", tag = "2")] pub elems: ::prost::alloc::vec::Vec, } +impl ::prost::Name for CompactBitArray { + const NAME: &'static str = "CompactBitArray"; + const PACKAGE: &'static str = "cosmos.crypto.multisig.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.multisig.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.secp256k1.rs b/src/prost/cosmos.crypto.secp256k1.rs index 9c8f647b..cafdb65e 100644 --- a/src/prost/cosmos.crypto.secp256k1.rs +++ b/src/prost/cosmos.crypto.secp256k1.rs @@ -9,6 +9,13 @@ pub struct PubKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PubKey { + const NAME: &'static str = "PubKey"; + const PACKAGE: &'static str = "cosmos.crypto.secp256k1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.secp256k1.{}", Self::NAME) + } +} /// PrivKey defines a secp256k1 private key. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -16,3 +23,10 @@ pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PrivKey { + const NAME: &'static str = "PrivKey"; + const PACKAGE: &'static str = "cosmos.crypto.secp256k1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.secp256k1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.crypto.secp256r1.rs b/src/prost/cosmos.crypto.secp256r1.rs index ee82db1e..067eef4b 100644 --- a/src/prost/cosmos.crypto.secp256r1.rs +++ b/src/prost/cosmos.crypto.secp256r1.rs @@ -7,6 +7,13 @@ pub struct PubKey { #[prost(bytes = "vec", tag = "1")] pub key: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PubKey { + const NAME: &'static str = "PubKey"; + const PACKAGE: &'static str = "cosmos.crypto.secp256r1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.secp256r1.{}", Self::NAME) + } +} /// PrivKey defines a secp256r1 ECDSA private key. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -15,3 +22,10 @@ pub struct PrivKey { #[prost(bytes = "vec", tag = "1")] pub secret: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PrivKey { + const NAME: &'static str = "PrivKey"; + const PACKAGE: &'static str = "cosmos.crypto.secp256r1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.crypto.secp256r1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.gov.module.v1.rs b/src/prost/cosmos.gov.module.v1.rs index 86a21aca..9a066d49 100644 --- a/src/prost/cosmos.gov.module.v1.rs +++ b/src/prost/cosmos.gov.module.v1.rs @@ -10,3 +10,10 @@ pub struct Module { #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.gov.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.module.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.gov.v1.rs b/src/prost/cosmos.gov.v1.rs index f8377353..feb0a17d 100644 --- a/src/prost/cosmos.gov.v1.rs +++ b/src/prost/cosmos.gov.v1.rs @@ -9,6 +9,13 @@ pub struct WeightedVoteOption { #[prost(string, tag = "2")] pub weight: ::prost::alloc::string::String, } +impl ::prost::Name for WeightedVoteOption { + const NAME: &'static str = "WeightedVoteOption"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Deposit defines an amount deposited by an account address to an active /// proposal. #[allow(clippy::derive_partial_eq_without_eq)] @@ -24,6 +31,13 @@ pub struct Deposit { #[prost(message, repeated, tag = "3")] pub amount: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Deposit { + const NAME: &'static str = "Deposit"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Proposal defines the core field members of a governance proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -84,6 +98,13 @@ pub struct Proposal { #[prost(string, tag = "13")] pub proposer: ::prost::alloc::string::String, } +impl ::prost::Name for Proposal { + const NAME: &'static str = "Proposal"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// TallyResult defines a standard tally for a governance proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -101,6 +122,13 @@ pub struct TallyResult { #[prost(string, tag = "4")] pub no_with_veto_count: ::prost::alloc::string::String, } +impl ::prost::Name for TallyResult { + const NAME: &'static str = "TallyResult"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. #[allow(clippy::derive_partial_eq_without_eq)] @@ -119,6 +147,13 @@ pub struct Vote { #[prost(string, tag = "5")] pub metadata: ::prost::alloc::string::String, } +impl ::prost::Name for Vote { + const NAME: &'static str = "Vote"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// DepositParams defines the params for deposits on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -133,6 +168,13 @@ pub struct DepositParams { super::super::super::google::protobuf::Duration, >, } +impl ::prost::Name for DepositParams { + const NAME: &'static str = "DepositParams"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// VotingParams defines the params for voting on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -143,6 +185,13 @@ pub struct VotingParams { super::super::super::google::protobuf::Duration, >, } +impl ::prost::Name for VotingParams { + const NAME: &'static str = "VotingParams"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// TallyParams defines the params for tallying votes on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -159,6 +208,13 @@ pub struct TallyParams { #[prost(string, tag = "3")] pub veto_threshold: ::prost::alloc::string::String, } +impl ::prost::Name for TallyParams { + const NAME: &'static str = "TallyParams"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Params defines the parameters for the x/gov module. /// /// Since: cosmos-sdk 0.47 @@ -203,6 +259,13 @@ pub struct Params { #[prost(bool, tag = "15")] pub burn_vote_veto: bool, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// VoteOption enumerates the valid vote options for a given governance proposal. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -322,6 +385,13 @@ pub struct MsgSubmitProposal { #[prost(string, tag = "6")] pub summary: ::prost::alloc::string::String, } +impl ::prost::Name for MsgSubmitProposal { + const NAME: &'static str = "MsgSubmitProposal"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -330,6 +400,13 @@ pub struct MsgSubmitProposalResponse { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for MsgSubmitProposalResponse { + const NAME: &'static str = "MsgSubmitProposalResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgExecLegacyContent is used to wrap the legacy content field into a message. /// This ensures backwards compatibility with v1beta1.MsgSubmitProposal. #[allow(clippy::derive_partial_eq_without_eq)] @@ -342,10 +419,24 @@ pub struct MsgExecLegacyContent { #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for MsgExecLegacyContent { + const NAME: &'static str = "MsgExecLegacyContent"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecLegacyContentResponse {} +impl ::prost::Name for MsgExecLegacyContentResponse { + const NAME: &'static str = "MsgExecLegacyContentResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgVote defines a message to cast a vote. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -363,10 +454,24 @@ pub struct MsgVote { #[prost(string, tag = "4")] pub metadata: ::prost::alloc::string::String, } +impl ::prost::Name for MsgVote { + const NAME: &'static str = "MsgVote"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgVoteResponse defines the Msg/Vote response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} +impl ::prost::Name for MsgVoteResponse { + const NAME: &'static str = "MsgVoteResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgVoteWeighted defines a message to cast a vote. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -384,10 +489,24 @@ pub struct MsgVoteWeighted { #[prost(string, tag = "4")] pub metadata: ::prost::alloc::string::String, } +impl ::prost::Name for MsgVoteWeighted { + const NAME: &'static str = "MsgVoteWeighted"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeightedResponse {} +impl ::prost::Name for MsgVoteWeightedResponse { + const NAME: &'static str = "MsgVoteWeightedResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgDeposit defines a message to submit a deposit to an existing proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -402,10 +521,24 @@ pub struct MsgDeposit { #[prost(message, repeated, tag = "3")] pub amount: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgDeposit { + const NAME: &'static str = "MsgDeposit"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgDepositResponse defines the Msg/Deposit response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} +impl ::prost::Name for MsgDepositResponse { + const NAME: &'static str = "MsgDepositResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 @@ -421,6 +554,13 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. /// @@ -428,6 +568,13 @@ pub struct MsgUpdateParams { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -1124,6 +1271,13 @@ pub struct QueryProposalRequest { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for QueryProposalRequest { + const NAME: &'static str = "QueryProposalRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryProposalResponse is the response type for the Query/Proposal RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1132,6 +1286,13 @@ pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] pub proposal: ::core::option::Option, } +impl ::prost::Name for QueryProposalResponse { + const NAME: &'static str = "QueryProposalResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1151,6 +1312,13 @@ pub struct QueryProposalsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryProposalsRequest { + const NAME: &'static str = "QueryProposalsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1165,6 +1333,13 @@ pub struct QueryProposalsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryProposalsResponse { + const NAME: &'static str = "QueryProposalsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1176,6 +1351,13 @@ pub struct QueryVoteRequest { #[prost(string, tag = "2")] pub voter: ::prost::alloc::string::String, } +impl ::prost::Name for QueryVoteRequest { + const NAME: &'static str = "QueryVoteRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryVoteResponse is the response type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1184,6 +1366,13 @@ pub struct QueryVoteResponse { #[prost(message, optional, tag = "1")] pub vote: ::core::option::Option, } +impl ::prost::Name for QueryVoteResponse { + const NAME: &'static str = "QueryVoteResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryVotesRequest is the request type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1197,6 +1386,13 @@ pub struct QueryVotesRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryVotesRequest { + const NAME: &'static str = "QueryVotesRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1210,6 +1406,13 @@ pub struct QueryVotesResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryVotesResponse { + const NAME: &'static str = "QueryVotesResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.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)] @@ -1219,6 +1422,13 @@ pub struct QueryParamsRequest { #[prost(string, tag = "1")] pub params_type: ::prost::alloc::string::String, } +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.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)] @@ -1244,6 +1454,13 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "4")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryParamsResponse { + const NAME: &'static str = "QueryParamsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryDepositRequest is the request type for the Query/Deposit RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1255,6 +1472,13 @@ pub struct QueryDepositRequest { #[prost(string, tag = "2")] pub depositor: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDepositRequest { + const NAME: &'static str = "QueryDepositRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryDepositResponse is the response type for the Query/Deposit RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1263,6 +1487,13 @@ pub struct QueryDepositResponse { #[prost(message, optional, tag = "1")] pub deposit: ::core::option::Option, } +impl ::prost::Name for QueryDepositResponse { + const NAME: &'static str = "QueryDepositResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1276,6 +1507,13 @@ pub struct QueryDepositsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDepositsRequest { + const NAME: &'static str = "QueryDepositsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1289,6 +1527,13 @@ pub struct QueryDepositsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDepositsResponse { + const NAME: &'static str = "QueryDepositsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1297,6 +1542,13 @@ pub struct QueryTallyResultRequest { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for QueryTallyResultRequest { + const NAME: &'static str = "QueryTallyResultRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1305,6 +1557,13 @@ pub struct QueryTallyResultResponse { #[prost(message, optional, tag = "1")] pub tally: ::core::option::Option, } +impl ::prost::Name for QueryTallyResultResponse { + const NAME: &'static str = "QueryTallyResultResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -2191,3 +2450,10 @@ pub struct GenesisState { #[prost(message, optional, tag = "8")] pub params: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "cosmos.gov.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.gov.v1beta1.rs b/src/prost/cosmos.gov.v1beta1.rs index ad4845e0..d421555b 100644 --- a/src/prost/cosmos.gov.v1beta1.rs +++ b/src/prost/cosmos.gov.v1beta1.rs @@ -11,6 +11,13 @@ pub struct WeightedVoteOption { #[prost(string, tag = "2")] pub weight: ::prost::alloc::string::String, } +impl ::prost::Name for WeightedVoteOption { + const NAME: &'static str = "WeightedVoteOption"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// TextProposal defines a standard text proposal whose changes need to be /// manually updated in case of approval. #[allow(clippy::derive_partial_eq_without_eq)] @@ -23,6 +30,13 @@ pub struct TextProposal { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, } +impl ::prost::Name for TextProposal { + const NAME: &'static str = "TextProposal"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// Deposit defines an amount deposited by an account address to an active /// proposal. #[allow(clippy::derive_partial_eq_without_eq)] @@ -38,6 +52,13 @@ pub struct Deposit { #[prost(message, repeated, tag = "3")] pub amount: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Deposit { + const NAME: &'static str = "Deposit"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// Proposal defines the core field members of a governance proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -80,6 +101,13 @@ pub struct Proposal { super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for Proposal { + const NAME: &'static str = "Proposal"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// TallyResult defines a standard tally for a governance proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -97,6 +125,13 @@ pub struct TallyResult { #[prost(string, tag = "4")] pub no_with_veto: ::prost::alloc::string::String, } +impl ::prost::Name for TallyResult { + const NAME: &'static str = "TallyResult"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. #[allow(clippy::derive_partial_eq_without_eq)] @@ -120,6 +155,13 @@ pub struct Vote { #[prost(message, repeated, tag = "4")] pub options: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Vote { + const NAME: &'static str = "Vote"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// DepositParams defines the params for deposits on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -134,6 +176,13 @@ pub struct DepositParams { super::super::super::google::protobuf::Duration, >, } +impl ::prost::Name for DepositParams { + const NAME: &'static str = "DepositParams"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// VotingParams defines the params for voting on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -144,6 +193,13 @@ pub struct VotingParams { super::super::super::google::protobuf::Duration, >, } +impl ::prost::Name for VotingParams { + const NAME: &'static str = "VotingParams"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// TallyParams defines the params for tallying votes on governance proposals. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -160,6 +216,13 @@ pub struct TallyParams { #[prost(bytes = "vec", tag = "3")] pub veto_threshold: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TallyParams { + const NAME: &'static str = "TallyParams"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// VoteOption enumerates the valid vote options for a given governance proposal. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -266,6 +329,13 @@ pub struct MsgSubmitProposal { #[prost(string, tag = "3")] pub proposer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgSubmitProposal { + const NAME: &'static str = "MsgSubmitProposal"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -274,6 +344,13 @@ pub struct MsgSubmitProposalResponse { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for MsgSubmitProposalResponse { + const NAME: &'static str = "MsgSubmitProposalResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgVote defines a message to cast a vote. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -288,10 +365,24 @@ pub struct MsgVote { #[prost(enumeration = "VoteOption", tag = "3")] pub option: i32, } +impl ::prost::Name for MsgVote { + const NAME: &'static str = "MsgVote"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgVoteResponse defines the Msg/Vote response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} +impl ::prost::Name for MsgVoteResponse { + const NAME: &'static str = "MsgVoteResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgVoteWeighted defines a message to cast a vote. /// /// Since: cosmos-sdk 0.43 @@ -308,12 +399,26 @@ pub struct MsgVoteWeighted { #[prost(message, repeated, tag = "3")] pub options: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgVoteWeighted { + const NAME: &'static str = "MsgVoteWeighted"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. /// /// Since: cosmos-sdk 0.43 #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeightedResponse {} +impl ::prost::Name for MsgVoteWeightedResponse { + const NAME: &'static str = "MsgVoteWeightedResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgDeposit defines a message to submit a deposit to an existing proposal. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -328,10 +433,24 @@ pub struct MsgDeposit { #[prost(message, repeated, tag = "3")] pub amount: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MsgDeposit { + const NAME: &'static str = "MsgDeposit"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// MsgDepositResponse defines the Msg/Deposit response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} +impl ::prost::Name for MsgDepositResponse { + const NAME: &'static str = "MsgDepositResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -872,6 +991,13 @@ pub struct QueryProposalRequest { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for QueryProposalRequest { + const NAME: &'static str = "QueryProposalRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryProposalResponse is the response type for the Query/Proposal RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -879,6 +1005,13 @@ pub struct QueryProposalResponse { #[prost(message, optional, tag = "1")] pub proposal: ::core::option::Option, } +impl ::prost::Name for QueryProposalResponse { + const NAME: &'static str = "QueryProposalResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -898,6 +1031,13 @@ pub struct QueryProposalsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryProposalsRequest { + const NAME: &'static str = "QueryProposalsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -912,6 +1052,13 @@ pub struct QueryProposalsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryProposalsResponse { + const NAME: &'static str = "QueryProposalsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryVoteRequest is the request type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -923,6 +1070,13 @@ pub struct QueryVoteRequest { #[prost(string, tag = "2")] pub voter: ::prost::alloc::string::String, } +impl ::prost::Name for QueryVoteRequest { + const NAME: &'static str = "QueryVoteRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryVoteResponse is the response type for the Query/Vote RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -931,6 +1085,13 @@ pub struct QueryVoteResponse { #[prost(message, optional, tag = "1")] pub vote: ::core::option::Option, } +impl ::prost::Name for QueryVoteResponse { + const NAME: &'static str = "QueryVoteResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryVotesRequest is the request type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -944,6 +1105,13 @@ pub struct QueryVotesRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryVotesRequest { + const NAME: &'static str = "QueryVotesRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryVotesResponse is the response type for the Query/Votes RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -957,6 +1125,13 @@ pub struct QueryVotesResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryVotesResponse { + const NAME: &'static str = "QueryVotesResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", 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)] @@ -966,6 +1141,13 @@ pub struct QueryParamsRequest { #[prost(string, tag = "1")] pub params_type: ::prost::alloc::string::String, } +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", 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)] @@ -980,6 +1162,13 @@ pub struct QueryParamsResponse { #[prost(message, optional, tag = "3")] pub tally_params: ::core::option::Option, } +impl ::prost::Name for QueryParamsResponse { + const NAME: &'static str = "QueryParamsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryDepositRequest is the request type for the Query/Deposit RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -991,6 +1180,13 @@ pub struct QueryDepositRequest { #[prost(string, tag = "2")] pub depositor: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDepositRequest { + const NAME: &'static str = "QueryDepositRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryDepositResponse is the response type for the Query/Deposit RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -999,6 +1195,13 @@ pub struct QueryDepositResponse { #[prost(message, optional, tag = "1")] pub deposit: ::core::option::Option, } +impl ::prost::Name for QueryDepositResponse { + const NAME: &'static str = "QueryDepositResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1012,6 +1215,13 @@ pub struct QueryDepositsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDepositsRequest { + const NAME: &'static str = "QueryDepositsRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1025,6 +1235,13 @@ pub struct QueryDepositsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDepositsResponse { + const NAME: &'static str = "QueryDepositsResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1033,6 +1250,13 @@ pub struct QueryTallyResultRequest { #[prost(uint64, tag = "1")] pub proposal_id: u64, } +impl ::prost::Name for QueryTallyResultRequest { + const NAME: &'static str = "QueryTallyResultRequest"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1041,6 +1265,13 @@ pub struct QueryTallyResultResponse { #[prost(message, optional, tag = "1")] pub tally: ::core::option::Option, } +impl ::prost::Name for QueryTallyResultResponse { + const NAME: &'static str = "QueryTallyResultResponse"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -1920,3 +2151,10 @@ pub struct GenesisState { #[prost(message, optional, tag = "7")] pub tally_params: ::core::option::Option, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "cosmos.gov.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.gov.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.staking.module.v1.rs b/src/prost/cosmos.staking.module.v1.rs index a03ed2a9..2a8d086b 100644 --- a/src/prost/cosmos.staking.module.v1.rs +++ b/src/prost/cosmos.staking.module.v1.rs @@ -11,3 +11,10 @@ pub struct Module { #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.staking.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.module.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.staking.v1beta1.rs b/src/prost/cosmos.staking.v1beta1.rs index f5943f04..2c2c1b8d 100644 --- a/src/prost/cosmos.staking.v1beta1.rs +++ b/src/prost/cosmos.staking.v1beta1.rs @@ -10,6 +10,13 @@ pub struct HistoricalInfo { #[prost(message, repeated, tag = "2")] pub valset: ::prost::alloc::vec::Vec, } +impl ::prost::Name for HistoricalInfo { + const NAME: &'static str = "HistoricalInfo"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// CommissionRates defines the initial commission rates to be used for creating /// a validator. #[allow(clippy::derive_partial_eq_without_eq)] @@ -25,6 +32,13 @@ pub struct CommissionRates { #[prost(string, tag = "3")] pub max_change_rate: ::prost::alloc::string::String, } +impl ::prost::Name for CommissionRates { + const NAME: &'static str = "CommissionRates"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Commission defines commission parameters for a given validator. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -38,6 +52,13 @@ pub struct Commission { super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for Commission { + const NAME: &'static str = "Commission"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Description defines a validator description. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -58,6 +79,13 @@ pub struct Description { #[prost(string, tag = "5")] pub details: ::prost::alloc::string::String, } +impl ::prost::Name for Description { + const NAME: &'static str = "Description"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Validator defines a validator, together with the total amount of the /// Validator's bond shares and their exchange rate to coins. Slashing results in /// a decrease in the exchange rate, allowing correct calculation of future @@ -115,6 +143,13 @@ pub struct Validator { #[prost(uint64, repeated, tag = "13")] pub unbonding_ids: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Validator { + const NAME: &'static str = "Validator"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// ValAddresses defines a repeated set of validator addresses. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -122,6 +157,13 @@ pub struct ValAddresses { #[prost(string, repeated, tag = "1")] pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ValAddresses { + const NAME: &'static str = "ValAddresses"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// DVPair is struct that just has a delegator-validator pair with no other data. /// It is intended to be used as a marshalable pointer. For example, a DVPair can /// be used to construct the key to getting an UnbondingDelegation from state. @@ -133,6 +175,13 @@ pub struct DvPair { #[prost(string, tag = "2")] pub validator_address: ::prost::alloc::string::String, } +impl ::prost::Name for DvPair { + const NAME: &'static str = "DVPair"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// DVPairs defines an array of DVPair objects. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -140,6 +189,13 @@ pub struct DvPairs { #[prost(message, repeated, tag = "1")] pub pairs: ::prost::alloc::vec::Vec, } +impl ::prost::Name for DvPairs { + const NAME: &'static str = "DVPairs"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// DVVTriplet is struct that just has a delegator-validator-validator triplet /// with no other data. It is intended to be used as a marshalable pointer. For /// example, a DVVTriplet can be used to construct the key to getting a @@ -154,6 +210,13 @@ pub struct DvvTriplet { #[prost(string, tag = "3")] pub validator_dst_address: ::prost::alloc::string::String, } +impl ::prost::Name for DvvTriplet { + const NAME: &'static str = "DVVTriplet"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// DVVTriplets defines an array of DVVTriplet objects. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -161,6 +224,13 @@ pub struct DvvTriplets { #[prost(message, repeated, tag = "1")] pub triplets: ::prost::alloc::vec::Vec, } +impl ::prost::Name for DvvTriplets { + const NAME: &'static str = "DVVTriplets"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Delegation represents the bond with tokens held by an account. It is /// owned by one delegator, and is associated with the voting power of one /// validator. @@ -177,6 +247,13 @@ pub struct Delegation { #[prost(string, tag = "3")] pub shares: ::prost::alloc::string::String, } +impl ::prost::Name for Delegation { + const NAME: &'static str = "Delegation"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// UnbondingDelegation stores all of a single delegator's unbonding bonds /// for a single validator in an time-ordered list. #[allow(clippy::derive_partial_eq_without_eq)] @@ -194,6 +271,13 @@ pub struct UnbondingDelegation { #[prost(message, repeated, tag = "3")] pub entries: ::prost::alloc::vec::Vec, } +impl ::prost::Name for UnbondingDelegation { + const NAME: &'static str = "UnbondingDelegation"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// UnbondingDelegationEntry defines an unbonding object with relevant metadata. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -219,6 +303,13 @@ pub struct UnbondingDelegationEntry { #[prost(int64, tag = "6")] pub unbonding_on_hold_ref_count: i64, } +impl ::prost::Name for UnbondingDelegationEntry { + const NAME: &'static str = "UnbondingDelegationEntry"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// RedelegationEntry defines a redelegation object with relevant metadata. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -244,6 +335,13 @@ pub struct RedelegationEntry { #[prost(int64, tag = "6")] pub unbonding_on_hold_ref_count: i64, } +impl ::prost::Name for RedelegationEntry { + const NAME: &'static str = "RedelegationEntry"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Redelegation contains the list of a particular delegator's redelegating bonds /// from a particular source validator to a particular destination validator. #[allow(clippy::derive_partial_eq_without_eq)] @@ -264,6 +362,13 @@ pub struct Redelegation { #[prost(message, repeated, tag = "4")] pub entries: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Redelegation { + const NAME: &'static str = "Redelegation"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Params defines the parameters for the x/staking module. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -289,6 +394,13 @@ pub struct Params { #[prost(string, tag = "6")] pub min_commission_rate: ::prost::alloc::string::String, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// DelegationResponse is equivalent to Delegation except that it contains a /// balance in addition to shares which is more suitable for client responses. #[allow(clippy::derive_partial_eq_without_eq)] @@ -299,6 +411,13 @@ pub struct DelegationResponse { #[prost(message, optional, tag = "2")] pub balance: ::core::option::Option, } +impl ::prost::Name for DelegationResponse { + const NAME: &'static str = "DelegationResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// RedelegationEntryResponse is equivalent to a RedelegationEntry except that it /// contains a balance in addition to shares which is more suitable for client /// responses. @@ -310,6 +429,13 @@ pub struct RedelegationEntryResponse { #[prost(string, tag = "4")] pub balance: ::prost::alloc::string::String, } +impl ::prost::Name for RedelegationEntryResponse { + const NAME: &'static str = "RedelegationEntryResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// RedelegationResponse is equivalent to a Redelegation except that its entries /// contain a balance in addition to shares which is more suitable for client /// responses. @@ -321,6 +447,13 @@ pub struct RedelegationResponse { #[prost(message, repeated, tag = "2")] pub entries: ::prost::alloc::vec::Vec, } +impl ::prost::Name for RedelegationResponse { + const NAME: &'static str = "RedelegationResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Pool is used for tracking bonded and not-bonded token supply of the bond /// denomination. #[allow(clippy::derive_partial_eq_without_eq)] @@ -331,6 +464,13 @@ pub struct Pool { #[prost(string, tag = "2")] pub bonded_tokens: ::prost::alloc::string::String, } +impl ::prost::Name for Pool { + const NAME: &'static str = "Pool"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// ValidatorUpdates defines an array of abci.ValidatorUpdate objects. /// TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence #[allow(clippy::derive_partial_eq_without_eq)] @@ -339,6 +479,13 @@ pub struct ValidatorUpdates { #[prost(message, repeated, tag = "1")] pub updates: ::prost::alloc::vec::Vec<::tendermint_proto::abci::ValidatorUpdate>, } +impl ::prost::Name for ValidatorUpdates { + const NAME: &'static str = "ValidatorUpdates"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// BondStatus is the status of a validator. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -461,10 +608,24 @@ pub struct MsgCreateValidator { #[prost(message, optional, tag = "7")] pub value: ::core::option::Option, } +impl ::prost::Name for MsgCreateValidator { + const NAME: &'static str = "MsgCreateValidator"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgCreateValidatorResponse defines the Msg/CreateValidator response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateValidatorResponse {} +impl ::prost::Name for MsgCreateValidatorResponse { + const NAME: &'static str = "MsgCreateValidatorResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgEditValidator defines a SDK message for editing an existing validator. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -482,10 +643,24 @@ pub struct MsgEditValidator { #[prost(string, tag = "4")] pub min_self_delegation: ::prost::alloc::string::String, } +impl ::prost::Name for MsgEditValidator { + const NAME: &'static str = "MsgEditValidator"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgEditValidatorResponse defines the Msg/EditValidator response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEditValidatorResponse {} +impl ::prost::Name for MsgEditValidatorResponse { + const NAME: &'static str = "MsgEditValidatorResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgDelegate defines a SDK message for performing a delegation of coins /// from a delegator to a validator. #[allow(clippy::derive_partial_eq_without_eq)] @@ -498,10 +673,24 @@ pub struct MsgDelegate { #[prost(message, optional, tag = "3")] pub amount: ::core::option::Option, } +impl ::prost::Name for MsgDelegate { + const NAME: &'static str = "MsgDelegate"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgDelegateResponse defines the Msg/Delegate response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDelegateResponse {} +impl ::prost::Name for MsgDelegateResponse { + const NAME: &'static str = "MsgDelegateResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgBeginRedelegate defines a SDK message for performing a redelegation /// of coins from a delegator and source validator to a destination validator. #[allow(clippy::derive_partial_eq_without_eq)] @@ -516,6 +705,13 @@ pub struct MsgBeginRedelegate { #[prost(message, optional, tag = "4")] pub amount: ::core::option::Option, } +impl ::prost::Name for MsgBeginRedelegate { + const NAME: &'static str = "MsgBeginRedelegate"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -525,6 +721,13 @@ pub struct MsgBeginRedelegateResponse { super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for MsgBeginRedelegateResponse { + const NAME: &'static str = "MsgBeginRedelegateResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgUndelegate defines a SDK message for performing an undelegation from a /// delegate and a validator. #[allow(clippy::derive_partial_eq_without_eq)] @@ -537,6 +740,13 @@ pub struct MsgUndelegate { #[prost(message, optional, tag = "3")] pub amount: ::core::option::Option, } +impl ::prost::Name for MsgUndelegate { + const NAME: &'static str = "MsgUndelegate"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgUndelegateResponse defines the Msg/Undelegate response type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -546,6 +756,13 @@ pub struct MsgUndelegateResponse { super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for MsgUndelegateResponse { + const NAME: &'static str = "MsgUndelegateResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator /// /// Since: cosmos-sdk 0.46 @@ -563,12 +780,26 @@ pub struct MsgCancelUnbondingDelegation { #[prost(int64, tag = "4")] pub creation_height: i64, } +impl ::prost::Name for MsgCancelUnbondingDelegation { + const NAME: &'static str = "MsgCancelUnbondingDelegation"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgCancelUnbondingDelegationResponse /// /// Since: cosmos-sdk 0.46 #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUnbondingDelegationResponse {} +impl ::prost::Name for MsgCancelUnbondingDelegationResponse { + const NAME: &'static str = "MsgCancelUnbondingDelegationResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 @@ -584,6 +815,13 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. /// @@ -591,6 +829,13 @@ pub struct MsgUpdateParams { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -1397,6 +1642,13 @@ pub struct QueryValidatorsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryValidatorsRequest { + const NAME: &'static str = "QueryValidatorsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorsResponse is response type for the Query/Validators RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1410,6 +1662,13 @@ pub struct QueryValidatorsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryValidatorsResponse { + const NAME: &'static str = "QueryValidatorsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorRequest is response type for the Query/Validator RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1418,6 +1677,13 @@ pub struct QueryValidatorRequest { #[prost(string, tag = "1")] pub validator_addr: ::prost::alloc::string::String, } +impl ::prost::Name for QueryValidatorRequest { + const NAME: &'static str = "QueryValidatorRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorResponse is response type for the Query/Validator RPC method #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1426,6 +1692,13 @@ pub struct QueryValidatorResponse { #[prost(message, optional, tag = "1")] pub validator: ::core::option::Option, } +impl ::prost::Name for QueryValidatorResponse { + const NAME: &'static str = "QueryValidatorResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorDelegationsRequest is request type for the /// Query/ValidatorDelegations RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1440,6 +1713,13 @@ pub struct QueryValidatorDelegationsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryValidatorDelegationsRequest { + const NAME: &'static str = "QueryValidatorDelegationsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorDelegationsResponse is response type for the /// Query/ValidatorDelegations RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1453,6 +1733,13 @@ pub struct QueryValidatorDelegationsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryValidatorDelegationsResponse { + const NAME: &'static str = "QueryValidatorDelegationsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorUnbondingDelegationsRequest is required type for the /// Query/ValidatorUnbondingDelegations RPC method #[allow(clippy::derive_partial_eq_without_eq)] @@ -1467,6 +1754,13 @@ pub struct QueryValidatorUnbondingDelegationsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryValidatorUnbondingDelegationsRequest { + const NAME: &'static str = "QueryValidatorUnbondingDelegationsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryValidatorUnbondingDelegationsResponse is response type for the /// Query/ValidatorUnbondingDelegations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1480,6 +1774,13 @@ pub struct QueryValidatorUnbondingDelegationsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryValidatorUnbondingDelegationsResponse { + const NAME: &'static str = "QueryValidatorUnbondingDelegationsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegationRequest is request type for the Query/Delegation RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1491,6 +1792,13 @@ pub struct QueryDelegationRequest { #[prost(string, tag = "2")] pub validator_addr: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDelegationRequest { + const NAME: &'static str = "QueryDelegationRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegationResponse is response type for the Query/Delegation RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1499,6 +1807,13 @@ pub struct QueryDelegationResponse { #[prost(message, optional, tag = "1")] pub delegation_response: ::core::option::Option, } +impl ::prost::Name for QueryDelegationResponse { + const NAME: &'static str = "QueryDelegationResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryUnbondingDelegationRequest is request type for the /// Query/UnbondingDelegation RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1511,6 +1826,13 @@ pub struct QueryUnbondingDelegationRequest { #[prost(string, tag = "2")] pub validator_addr: ::prost::alloc::string::String, } +impl ::prost::Name for QueryUnbondingDelegationRequest { + const NAME: &'static str = "QueryUnbondingDelegationRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegationResponse is response type for the Query/UnbondingDelegation /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1520,6 +1842,13 @@ pub struct QueryUnbondingDelegationResponse { #[prost(message, optional, tag = "1")] pub unbond: ::core::option::Option, } +impl ::prost::Name for QueryUnbondingDelegationResponse { + const NAME: &'static str = "QueryUnbondingDelegationResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorDelegationsRequest is request type for the /// Query/DelegatorDelegations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1534,6 +1863,13 @@ pub struct QueryDelegatorDelegationsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDelegatorDelegationsRequest { + const NAME: &'static str = "QueryDelegatorDelegationsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorDelegationsResponse is response type for the /// Query/DelegatorDelegations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1548,6 +1884,13 @@ pub struct QueryDelegatorDelegationsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDelegatorDelegationsResponse { + const NAME: &'static str = "QueryDelegatorDelegationsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorUnbondingDelegationsRequest is request type for the /// Query/DelegatorUnbondingDelegations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1562,6 +1905,13 @@ pub struct QueryDelegatorUnbondingDelegationsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDelegatorUnbondingDelegationsRequest { + const NAME: &'static str = "QueryDelegatorUnbondingDelegationsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryUnbondingDelegatorDelegationsResponse is response type for the /// Query/UnbondingDelegatorDelegations RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1575,6 +1925,13 @@ pub struct QueryDelegatorUnbondingDelegationsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDelegatorUnbondingDelegationsResponse { + const NAME: &'static str = "QueryDelegatorUnbondingDelegationsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryRedelegationsRequest is request type for the Query/Redelegations RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1595,6 +1952,13 @@ pub struct QueryRedelegationsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryRedelegationsRequest { + const NAME: &'static str = "QueryRedelegationsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryRedelegationsResponse is response type for the Query/Redelegations RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1608,6 +1972,13 @@ pub struct QueryRedelegationsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryRedelegationsResponse { + const NAME: &'static str = "QueryRedelegationsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorValidatorsRequest is request type for the /// Query/DelegatorValidators RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1622,6 +1993,13 @@ pub struct QueryDelegatorValidatorsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryDelegatorValidatorsRequest { + const NAME: &'static str = "QueryDelegatorValidatorsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorValidatorsResponse is response type for the /// Query/DelegatorValidators RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1636,6 +2014,13 @@ pub struct QueryDelegatorValidatorsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryDelegatorValidatorsResponse { + const NAME: &'static str = "QueryDelegatorValidatorsResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorValidatorRequest is request type for the /// Query/DelegatorValidator RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1648,6 +2033,13 @@ pub struct QueryDelegatorValidatorRequest { #[prost(string, tag = "2")] pub validator_addr: ::prost::alloc::string::String, } +impl ::prost::Name for QueryDelegatorValidatorRequest { + const NAME: &'static str = "QueryDelegatorValidatorRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryDelegatorValidatorResponse response type for the /// Query/DelegatorValidator RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1657,6 +2049,13 @@ pub struct QueryDelegatorValidatorResponse { #[prost(message, optional, tag = "1")] pub validator: ::core::option::Option, } +impl ::prost::Name for QueryDelegatorValidatorResponse { + const NAME: &'static str = "QueryDelegatorValidatorResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1666,6 +2065,13 @@ pub struct QueryHistoricalInfoRequest { #[prost(int64, tag = "1")] pub height: i64, } +impl ::prost::Name for QueryHistoricalInfoRequest { + const NAME: &'static str = "QueryHistoricalInfoRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC /// method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1675,10 +2081,24 @@ pub struct QueryHistoricalInfoResponse { #[prost(message, optional, tag = "1")] pub hist: ::core::option::Option, } +impl ::prost::Name for QueryHistoricalInfoResponse { + const NAME: &'static str = "QueryHistoricalInfoResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryPoolRequest is request type for the Query/Pool RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPoolRequest {} +impl ::prost::Name for QueryPoolRequest { + const NAME: &'static str = "QueryPoolRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryPoolResponse is response type for the Query/Pool RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1687,10 +2107,24 @@ pub struct QueryPoolResponse { #[prost(message, optional, tag = "1")] pub pool: ::core::option::Option, } +impl ::prost::Name for QueryPoolResponse { + const NAME: &'static str = "QueryPoolResponse"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryParamsRequest is request type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} +impl ::prost::Name for QueryParamsRequest { + const NAME: &'static str = "QueryParamsRequest"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// QueryParamsResponse is response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1699,6 +2133,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 = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -3176,6 +3617,15 @@ pub mod stake_authorization { #[prost(string, repeated, tag = "1")] pub address: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } + impl ::prost::Name for ValidatorsVec { + const NAME: &'static str = "Validators"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "cosmos.staking.v1beta1.StakeAuthorization.{}", Self::NAME + ) + } + } /// validators is the oneof that represents either allow_list or deny_list #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] @@ -3189,6 +3639,13 @@ pub mod stake_authorization { DenyList(ValidatorsVec), } } +impl ::prost::Name for StakeAuthorization { + const NAME: &'static str = "StakeAuthorization"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// AuthorizationType defines the type of staking module authorization type /// /// Since: cosmos-sdk 0.43 @@ -3258,6 +3715,13 @@ pub struct GenesisState { #[prost(bool, tag = "8")] pub exported: bool, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} /// LastValidatorPower required for validator set update logic. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -3269,3 +3733,10 @@ pub struct LastValidatorPower { #[prost(int64, tag = "2")] pub power: i64, } +impl ::prost::Name for LastValidatorPower { + const NAME: &'static str = "LastValidatorPower"; + const PACKAGE: &'static str = "cosmos.staking.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.staking.v1beta1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.tx.config.v1.rs b/src/prost/cosmos.tx.config.v1.rs index b36bd58f..ee76c8a2 100644 --- a/src/prost/cosmos.tx.config.v1.rs +++ b/src/prost/cosmos.tx.config.v1.rs @@ -12,3 +12,10 @@ pub struct Config { #[prost(bool, tag = "2")] pub skip_post_handler: bool, } +impl ::prost::Name for Config { + const NAME: &'static str = "Config"; + const PACKAGE: &'static str = "cosmos.tx.config.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.config.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.tx.signing.v1beta1.rs b/src/prost/cosmos.tx.signing.v1beta1.rs index bfed1a37..4685364f 100644 --- a/src/prost/cosmos.tx.signing.v1beta1.rs +++ b/src/prost/cosmos.tx.signing.v1beta1.rs @@ -6,6 +6,13 @@ pub struct SignatureDescriptors { #[prost(message, repeated, tag = "1")] pub signatures: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SignatureDescriptors { + const NAME: &'static str = "SignatureDescriptors"; + const PACKAGE: &'static str = "cosmos.tx.signing.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.signing.v1beta1.{}", Self::NAME) + } +} /// SignatureDescriptor is a convenience type which represents the full data for /// a signature including the public key of the signer, signing modes and the /// signature itself. It is primarily used for coordinating signatures between @@ -49,6 +56,15 @@ pub mod signature_descriptor { #[prost(bytes = "vec", tag = "2")] pub signature: ::prost::alloc::vec::Vec, } + impl ::prost::Name for Single { + const NAME: &'static str = "Single"; + const PACKAGE: &'static str = "cosmos.tx.signing.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.{}", Self::NAME + ) + } + } /// Multi is the signature data for a multisig public key #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -62,6 +78,15 @@ pub mod signature_descriptor { #[prost(message, repeated, tag = "2")] pub signatures: ::prost::alloc::vec::Vec, } + impl ::prost::Name for Multi { + const NAME: &'static str = "Multi"; + const PACKAGE: &'static str = "cosmos.tx.signing.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.{}", Self::NAME + ) + } + } /// sum is the oneof that specifies whether this represents single or multi-signature data #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] @@ -74,6 +99,22 @@ pub mod signature_descriptor { Multi(Multi), } } + impl ::prost::Name for Data { + const NAME: &'static str = "Data"; + const PACKAGE: &'static str = "cosmos.tx.signing.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "cosmos.tx.signing.v1beta1.SignatureDescriptor.{}", Self::NAME + ) + } + } +} +impl ::prost::Name for SignatureDescriptor { + const NAME: &'static str = "SignatureDescriptor"; + const PACKAGE: &'static str = "cosmos.tx.signing.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.signing.v1beta1.{}", Self::NAME) + } } /// SignMode represents a signing mode with its own security guarantees. /// diff --git a/src/prost/cosmos.tx.v1beta1.rs b/src/prost/cosmos.tx.v1beta1.rs index db0d4c17..403722eb 100644 --- a/src/prost/cosmos.tx.v1beta1.rs +++ b/src/prost/cosmos.tx.v1beta1.rs @@ -15,6 +15,13 @@ pub struct Tx { #[prost(bytes = "vec", repeated, tag = "3")] pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for Tx { + const NAME: &'static str = "Tx"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxRaw is a variant of Tx that pins the signer's exact binary representation /// of body and auth_info. This is used for signing, broadcasting and /// verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and @@ -37,6 +44,13 @@ pub struct TxRaw { #[prost(bytes = "vec", repeated, tag = "3")] pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for TxRaw { + const NAME: &'static str = "TxRaw"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -58,6 +72,13 @@ pub struct SignDoc { #[prost(uint64, tag = "4")] pub account_number: u64, } +impl ::prost::Name for SignDoc { + const NAME: &'static str = "SignDoc"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// SignDocDirectAux is the type used for generating sign bytes for /// SIGN_MODE_DIRECT_AUX. /// @@ -92,6 +113,13 @@ pub struct SignDocDirectAux { #[prost(message, optional, tag = "6")] pub tip: ::core::option::Option, } +impl ::prost::Name for SignDocDirectAux { + const NAME: &'static str = "SignDocDirectAux"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxBody is the body of a transaction that all signers sign over. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -129,6 +157,13 @@ pub struct TxBody { super::super::super::google::protobuf::Any, >, } +impl ::prost::Name for TxBody { + const NAME: &'static str = "TxBody"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// AuthInfo describes the fee and signer modes that are used to sign a /// transaction. #[allow(clippy::derive_partial_eq_without_eq)] @@ -155,6 +190,13 @@ pub struct AuthInfo { #[prost(message, optional, tag = "3")] pub tip: ::core::option::Option, } +impl ::prost::Name for AuthInfo { + const NAME: &'static str = "AuthInfo"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// SignerInfo describes the public key and signing mode of a single top-level /// signer. #[allow(clippy::derive_partial_eq_without_eq)] @@ -175,6 +217,13 @@ pub struct SignerInfo { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for SignerInfo { + const NAME: &'static str = "SignerInfo"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// ModeInfo describes the signing mode of a single or nested multisig signer. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -196,6 +245,13 @@ pub mod mode_info { #[prost(enumeration = "super::super::signing::v1beta1::SignMode", tag = "1")] pub mode: i32, } + impl ::prost::Name for Single { + const NAME: &'static str = "Single"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.ModeInfo.{}", Self::NAME) + } + } /// Multi is the mode info for a multisig public key #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -210,6 +266,13 @@ pub mod mode_info { #[prost(message, repeated, tag = "2")] pub mode_infos: ::prost::alloc::vec::Vec, } + impl ::prost::Name for Multi { + const NAME: &'static str = "Multi"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.ModeInfo.{}", Self::NAME) + } + } /// sum is the oneof that specifies whether this represents a single or nested /// multisig signer #[allow(clippy::derive_partial_eq_without_eq)] @@ -223,6 +286,13 @@ pub mod mode_info { Multi(Multi), } } +impl ::prost::Name for ModeInfo { + const NAME: &'static str = "ModeInfo"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// Fee includes the amount of coins paid in fees and the maximum /// gas to be used by the transaction. The ratio yields an effective "gasprice", /// which must be above some miminum to be accepted into the mempool. @@ -247,6 +317,13 @@ pub struct Fee { #[prost(string, tag = "4")] pub granter: ::prost::alloc::string::String, } +impl ::prost::Name for Fee { + const NAME: &'static str = "Fee"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// Tip is the tip used for meta-transactions. /// /// Since: cosmos-sdk 0.46 @@ -260,6 +337,13 @@ pub struct Tip { #[prost(string, tag = "2")] pub tipper: ::prost::alloc::string::String, } +impl ::prost::Name for Tip { + const NAME: &'static str = "Tip"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// AuxSignerData is the intermediary format that an auxiliary signer (e.g. a /// tipper) builds and sends to the fee payer (who will build and broadcast the /// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected @@ -286,6 +370,13 @@ pub struct AuxSignerData { #[prost(bytes = "vec", tag = "4")] pub sig: ::prost::alloc::vec::Vec, } +impl ::prost::Name for AuxSignerData { + const NAME: &'static str = "AuxSignerData"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetTxsEventRequest is the request type for the Service.TxsByEvents /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -311,6 +402,13 @@ pub struct GetTxsEventRequest { #[prost(uint64, tag = "5")] pub limit: u64, } +impl ::prost::Name for GetTxsEventRequest { + const NAME: &'static str = "GetTxsEventRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetTxsEventResponse is the response type for the Service.TxsByEvents /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -335,6 +433,13 @@ pub struct GetTxsEventResponse { #[prost(uint64, tag = "4")] pub total: u64, } +impl ::prost::Name for GetTxsEventResponse { + const NAME: &'static str = "GetTxsEventResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// BroadcastTxRequest is the request type for the Service.BroadcastTxRequest /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -346,6 +451,13 @@ pub struct BroadcastTxRequest { #[prost(enumeration = "BroadcastMode", tag = "2")] pub mode: i32, } +impl ::prost::Name for BroadcastTxRequest { + const NAME: &'static str = "BroadcastTxRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// BroadcastTxResponse is the response type for the /// Service.BroadcastTx method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -357,6 +469,13 @@ pub struct BroadcastTxResponse { super::super::base::abci::v1beta1::TxResponse, >, } +impl ::prost::Name for BroadcastTxResponse { + const NAME: &'static str = "BroadcastTxResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// SimulateRequest is the request type for the Service.Simulate /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -373,6 +492,13 @@ pub struct SimulateRequest { #[prost(bytes = "vec", tag = "2")] pub tx_bytes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for SimulateRequest { + const NAME: &'static str = "SimulateRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// SimulateResponse is the response type for the /// Service.SimulateRPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -385,6 +511,13 @@ pub struct SimulateResponse { #[prost(message, optional, tag = "2")] pub result: ::core::option::Option, } +impl ::prost::Name for SimulateResponse { + const NAME: &'static str = "SimulateResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetTxRequest is the request type for the Service.GetTx /// RPC method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -394,6 +527,13 @@ pub struct GetTxRequest { #[prost(string, tag = "1")] pub hash: ::prost::alloc::string::String, } +impl ::prost::Name for GetTxRequest { + const NAME: &'static str = "GetTxRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetTxResponse is the response type for the Service.GetTx method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -407,6 +547,13 @@ pub struct GetTxResponse { super::super::base::abci::v1beta1::TxResponse, >, } +impl ::prost::Name for GetTxResponse { + const NAME: &'static str = "GetTxResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs /// RPC method. /// @@ -423,6 +570,13 @@ pub struct GetBlockWithTxsRequest { super::super::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for GetBlockWithTxsRequest { + const NAME: &'static str = "GetBlockWithTxsRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. /// /// Since: cosmos-sdk 0.45.2 @@ -442,6 +596,13 @@ pub struct GetBlockWithTxsResponse { super::super::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for GetBlockWithTxsResponse { + const NAME: &'static str = "GetBlockWithTxsResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxDecodeRequest is the request type for the Service.TxDecode /// RPC method. /// @@ -453,6 +614,13 @@ pub struct TxDecodeRequest { #[prost(bytes = "vec", tag = "1")] pub tx_bytes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TxDecodeRequest { + const NAME: &'static str = "TxDecodeRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxDecodeResponse is the response type for the /// Service.TxDecode method. /// @@ -464,6 +632,13 @@ pub struct TxDecodeResponse { #[prost(message, optional, tag = "1")] pub tx: ::core::option::Option, } +impl ::prost::Name for TxDecodeResponse { + const NAME: &'static str = "TxDecodeResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxEncodeRequest is the request type for the Service.TxEncode /// RPC method. /// @@ -475,6 +650,13 @@ pub struct TxEncodeRequest { #[prost(message, optional, tag = "1")] pub tx: ::core::option::Option, } +impl ::prost::Name for TxEncodeRequest { + const NAME: &'static str = "TxEncodeRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxEncodeResponse is the response type for the /// Service.TxEncode method. /// @@ -486,6 +668,13 @@ pub struct TxEncodeResponse { #[prost(bytes = "vec", tag = "1")] pub tx_bytes: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TxEncodeResponse { + const NAME: &'static str = "TxEncodeResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino /// RPC method. /// @@ -496,6 +685,13 @@ pub struct TxEncodeAminoRequest { #[prost(string, tag = "1")] pub amino_json: ::prost::alloc::string::String, } +impl ::prost::Name for TxEncodeAminoRequest { + const NAME: &'static str = "TxEncodeAminoRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino /// RPC method. /// @@ -506,6 +702,13 @@ pub struct TxEncodeAminoResponse { #[prost(bytes = "vec", tag = "1")] pub amino_binary: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TxEncodeAminoResponse { + const NAME: &'static str = "TxEncodeAminoResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino /// RPC method. /// @@ -516,6 +719,13 @@ pub struct TxDecodeAminoRequest { #[prost(bytes = "vec", tag = "1")] pub amino_binary: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TxDecodeAminoRequest { + const NAME: &'static str = "TxDecodeAminoRequest"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino /// RPC method. /// @@ -526,6 +736,13 @@ pub struct TxDecodeAminoResponse { #[prost(string, tag = "1")] pub amino_json: ::prost::alloc::string::String, } +impl ::prost::Name for TxDecodeAminoResponse { + const NAME: &'static str = "TxDecodeAminoResponse"; + const PACKAGE: &'static str = "cosmos.tx.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.tx.v1beta1.{}", Self::NAME) + } +} /// OrderBy defines the sorting order #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] diff --git a/src/prost/cosmos.upgrade.module.v1.rs b/src/prost/cosmos.upgrade.module.v1.rs index 2243196d..198df468 100644 --- a/src/prost/cosmos.upgrade.module.v1.rs +++ b/src/prost/cosmos.upgrade.module.v1.rs @@ -6,3 +6,10 @@ pub struct Module { #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for Module { + const NAME: &'static str = "Module"; + const PACKAGE: &'static str = "cosmos.upgrade.module.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.module.v1.{}", Self::NAME) + } +} diff --git a/src/prost/cosmos.upgrade.v1beta1.rs b/src/prost/cosmos.upgrade.v1beta1.rs index fa445d90..dc8d6aec 100644 --- a/src/prost/cosmos.upgrade.v1beta1.rs +++ b/src/prost/cosmos.upgrade.v1beta1.rs @@ -34,6 +34,13 @@ pub struct Plan { super::super::super::google::protobuf::Any, >, } +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. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov @@ -52,6 +59,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. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov @@ -67,6 +81,13 @@ 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) + } +} /// ModuleVersion specifies a module and its consensus version. /// /// Since: cosmos-sdk 0.43 @@ -81,6 +102,13 @@ pub struct ModuleVersion { #[prost(uint64, tag = "2")] pub version: u64, } +impl ::prost::Name for ModuleVersion { + const NAME: &'static str = "ModuleVersion"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. /// /// Since: cosmos-sdk 0.46 @@ -95,6 +123,13 @@ pub struct MsgSoftwareUpgrade { #[prost(message, optional, tag = "2")] pub plan: ::core::option::Option, } +impl ::prost::Name for MsgSoftwareUpgrade { + const NAME: &'static str = "MsgSoftwareUpgrade"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. /// /// Since: cosmos-sdk 0.46 @@ -102,6 +137,13 @@ pub struct MsgSoftwareUpgrade { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSoftwareUpgradeResponse {} +impl ::prost::Name for MsgSoftwareUpgradeResponse { + const NAME: &'static str = "MsgSoftwareUpgradeResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// MsgCancelUpgrade is the Msg/CancelUpgrade request type. /// /// Since: cosmos-sdk 0.46 @@ -113,6 +155,13 @@ pub struct MsgCancelUpgrade { #[prost(string, tag = "1")] pub authority: ::prost::alloc::string::String, } +impl ::prost::Name for MsgCancelUpgrade { + const NAME: &'static str = "MsgCancelUpgrade"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. /// /// Since: cosmos-sdk 0.46 @@ -120,6 +169,13 @@ pub struct MsgCancelUpgrade { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUpgradeResponse {} +impl ::prost::Name for MsgCancelUpgradeResponse { + const NAME: &'static str = "MsgCancelUpgradeResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -513,6 +569,13 @@ pub mod msg_server { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentPlanRequest {} +impl ::prost::Name for QueryCurrentPlanRequest { + const NAME: &'static str = "QueryCurrentPlanRequest"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -523,6 +586,13 @@ pub struct QueryCurrentPlanResponse { #[prost(message, optional, tag = "1")] pub plan: ::core::option::Option, } +impl ::prost::Name for QueryCurrentPlanResponse { + const NAME: &'static str = "QueryCurrentPlanResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -533,6 +603,13 @@ pub struct QueryAppliedPlanRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, } +impl ::prost::Name for QueryAppliedPlanRequest { + const NAME: &'static str = "QueryAppliedPlanRequest"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC /// method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -543,6 +620,13 @@ pub struct QueryAppliedPlanResponse { #[prost(int64, tag = "1")] pub height: i64, } +impl ::prost::Name for QueryAppliedPlanResponse { + const NAME: &'static str = "QueryAppliedPlanResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState /// RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -554,6 +638,13 @@ pub struct QueryUpgradedConsensusStateRequest { #[prost(int64, tag = "1")] pub last_height: i64, } +impl ::prost::Name for QueryUpgradedConsensusStateRequest { + const NAME: &'static str = "QueryUpgradedConsensusStateRequest"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState /// RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -564,6 +655,13 @@ pub struct QueryUpgradedConsensusStateResponse { #[prost(bytes = "vec", tag = "2")] pub upgraded_consensus_state: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryUpgradedConsensusStateResponse { + const NAME: &'static str = "QueryUpgradedConsensusStateResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions /// RPC method. /// @@ -578,6 +676,13 @@ pub struct QueryModuleVersionsRequest { #[prost(string, tag = "1")] pub module_name: ::prost::alloc::string::String, } +impl ::prost::Name for QueryModuleVersionsRequest { + const NAME: &'static str = "QueryModuleVersionsRequest"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions /// RPC method. /// @@ -590,6 +695,13 @@ pub struct QueryModuleVersionsResponse { #[prost(message, repeated, tag = "1")] pub module_versions: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryModuleVersionsResponse { + const NAME: &'static str = "QueryModuleVersionsResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryAuthorityRequest is the request type for Query/Authority /// /// Since: cosmos-sdk 0.46 @@ -597,6 +709,13 @@ pub struct QueryModuleVersionsResponse { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuthorityRequest {} +impl ::prost::Name for QueryAuthorityRequest { + const NAME: &'static str = "QueryAuthorityRequest"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// QueryAuthorityResponse is the response type for Query/Authority /// /// Since: cosmos-sdk 0.46 @@ -607,6 +726,13 @@ pub struct QueryAuthorityResponse { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryAuthorityResponse { + const NAME: &'static str = "QueryAuthorityResponse"; + const PACKAGE: &'static str = "cosmos.upgrade.v1beta1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos.upgrade.v1beta1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { diff --git a/src/prost/cosmos_proto.rs b/src/prost/cosmos_proto.rs index af80d5fc..053c6d52 100644 --- a/src/prost/cosmos_proto.rs +++ b/src/prost/cosmos_proto.rs @@ -14,6 +14,13 @@ pub struct InterfaceDescriptor { #[prost(string, tag = "2")] pub description: ::prost::alloc::string::String, } +impl ::prost::Name for InterfaceDescriptor { + const NAME: &'static str = "InterfaceDescriptor"; + const PACKAGE: &'static str = "cosmos_proto"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos_proto.{}", Self::NAME) + } +} /// ScalarDescriptor describes an scalar type to be used with /// the scalar field option and declared by declare_scalar. /// Scalars extend simple protobuf built-in types with additional @@ -42,6 +49,13 @@ pub struct ScalarDescriptor { #[prost(enumeration = "ScalarType", repeated, tag = "3")] pub field_type: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ScalarDescriptor { + const NAME: &'static str = "ScalarDescriptor"; + const PACKAGE: &'static str = "cosmos_proto"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("cosmos_proto.{}", Self::NAME) + } +} #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum ScalarType { diff --git a/src/prost/google.api.rs b/src/prost/google.api.rs index 0817d31c..5aa04075 100644 --- a/src/prost/google.api.rs +++ b/src/prost/google.api.rs @@ -18,6 +18,13 @@ pub struct Http { #[prost(bool, tag = "2")] pub fully_decode_reserved_expansion: bool, } +impl ::prost::Name for Http { + const NAME: &'static str = "Http"; + const PACKAGE: &'static str = "google.api"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.api.{}", Self::NAME) + } +} /// # gRPC Transcoding /// /// gRPC Transcoding is a feature for mapping between a gRPC method and one or @@ -358,6 +365,13 @@ pub mod http_rule { Custom(super::CustomHttpPattern), } } +impl ::prost::Name for HttpRule { + const NAME: &'static str = "HttpRule"; + const PACKAGE: &'static str = "google.api"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.api.{}", Self::NAME) + } +} /// A custom pattern is used for defining custom HTTP verb. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -369,3 +383,10 @@ pub struct CustomHttpPattern { #[prost(string, tag = "2")] pub path: ::prost::alloc::string::String, } +impl ::prost::Name for CustomHttpPattern { + const NAME: &'static str = "CustomHttpPattern"; + const PACKAGE: &'static str = "google.api"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.api.{}", Self::NAME) + } +} diff --git a/src/prost/google.protobuf.rs b/src/prost/google.protobuf.rs index 3878889e..bb1c65dd 100644 --- a/src/prost/google.protobuf.rs +++ b/src/prost/google.protobuf.rs @@ -22,8 +22,12 @@ /// if (any.is(Foo.class)) { /// foo = any.unpack(Foo.class); /// } +/// // or ... +/// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +/// foo = any.unpack(Foo.getDefaultInstance()); +/// } /// -/// Example 3: Pack and unpack a message in Python. +/// Example 3: Pack and unpack a message in Python. /// /// foo = Foo(...) /// any = Any() @@ -33,7 +37,7 @@ /// any.Unpack(foo) /// ... /// -/// Example 4: Pack and unpack a message in Go +/// Example 4: Pack and unpack a message in Go /// /// foo := &pb.Foo{...} /// any, err := anypb.New(foo) @@ -52,9 +56,8 @@ /// in the type URL, for example "foo.bar.com/x/y.z" will yield type /// name "y.z". /// -/// /// JSON -/// +/// ==== /// The JSON representation of an `Any` value uses the regular /// representation of the deserialized, embedded message, with an /// additional field `@type` which contains the type URL. Example: @@ -113,7 +116,8 @@ pub struct Any { /// /// Note: this functionality is not currently available in the official /// protobuf release, and it is not used for type URLs beginning with - /// type.googleapis.com. + /// type.googleapis.com. As of May 2023, there are no widely used type server + /// implementations and no plans to implement one. /// /// Schemes other than `http`, `https` (or the empty scheme) might be /// used with implementation specific semantics. @@ -124,6 +128,13 @@ pub struct Any { #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } +impl ::prost::Name for Any { + const NAME: &'static str = "Any"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// The protocol compiler can output a FileDescriptorSet containing the .proto /// files it parses. #[allow(clippy::derive_partial_eq_without_eq)] @@ -132,6 +143,13 @@ pub struct FileDescriptorSet { #[prost(message, repeated, tag = "1")] pub file: ::prost::alloc::vec::Vec, } +impl ::prost::Name for FileDescriptorSet { + const NAME: &'static str = "FileDescriptorSet"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// Describes a complete .proto file. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -170,9 +188,21 @@ pub struct FileDescriptorProto { #[prost(message, optional, tag = "9")] pub source_code_info: ::core::option::Option, /// The syntax of the proto file. - /// The supported values are "proto2" and "proto3". + /// The supported values are "proto2", "proto3", and "editions". + /// + /// If `edition` is present, this value must be "editions". #[prost(string, optional, tag = "12")] pub syntax: ::core::option::Option<::prost::alloc::string::String>, + /// The edition of the proto file, which is an opaque string. + #[prost(string, optional, tag = "13")] + pub edition: ::core::option::Option<::prost::alloc::string::String>, +} +impl ::prost::Name for FileDescriptorProto { + const NAME: &'static str = "FileDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } /// Describes a message type. #[allow(clippy::derive_partial_eq_without_eq)] @@ -215,6 +245,13 @@ pub mod descriptor_proto { #[prost(message, optional, tag = "3")] pub options: ::core::option::Option, } + impl ::prost::Name for ExtensionRange { + const NAME: &'static str = "ExtensionRange"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.DescriptorProto.{}", Self::NAME) + } + } /// Range of reserved tag numbers. Reserved tag numbers may not be used by /// fields or extension ranges in the same message. Reserved ranges may /// not overlap. @@ -228,6 +265,20 @@ pub mod descriptor_proto { #[prost(int32, optional, tag = "2")] pub end: ::core::option::Option, } + impl ::prost::Name for ReservedRange { + const NAME: &'static str = "ReservedRange"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.DescriptorProto.{}", Self::NAME) + } + } +} +impl ::prost::Name for DescriptorProto { + const NAME: &'static str = "DescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -235,6 +286,106 @@ pub struct ExtensionRangeOptions { /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, + /// For external users: DO NOT USE. We are in the process of open sourcing + /// extension declaration and executing internal cleanups before it can be + /// used externally. + #[prost(message, repeated, tag = "2")] + pub declaration: ::prost::alloc::vec::Vec, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "50")] + pub features: ::core::option::Option, + /// The verification state of the range. + /// TODO(b/278783756): flip the default to DECLARATION once all empty ranges + /// are marked as UNVERIFIED. + #[prost( + enumeration = "extension_range_options::VerificationState", + optional, + tag = "3", + default = "Unverified" + )] + pub verification: ::core::option::Option, +} +/// Nested message and enum types in `ExtensionRangeOptions`. +pub mod extension_range_options { + #[allow(clippy::derive_partial_eq_without_eq)] + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Declaration { + /// The extension number declared within the extension range. + #[prost(int32, optional, tag = "1")] + pub number: ::core::option::Option, + /// The fully-qualified name of the extension field. There must be a leading + /// dot in front of the full name. + #[prost(string, optional, tag = "2")] + pub full_name: ::core::option::Option<::prost::alloc::string::String>, + /// The fully-qualified type name of the extension field. Unlike + /// Metadata.type, Declaration.type must have a leading dot for messages + /// and enums. + #[prost(string, optional, tag = "3")] + pub r#type: ::core::option::Option<::prost::alloc::string::String>, + /// If true, indicates that the number is reserved in the extension range, + /// and any extension field with the number will fail to compile. Set this + /// when a declared extension field is deleted. + #[prost(bool, optional, tag = "5")] + pub reserved: ::core::option::Option, + /// If true, indicates that the extension must be defined as repeated. + /// Otherwise the extension must be defined as optional. + #[prost(bool, optional, tag = "6")] + pub repeated: ::core::option::Option, + } + impl ::prost::Name for Declaration { + const NAME: &'static str = "Declaration"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "google.protobuf.ExtensionRangeOptions.{}", Self::NAME + ) + } + } + /// The verification state of the extension range. + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum VerificationState { + /// All the extensions of the range must be declared. + Declaration = 0, + Unverified = 1, + } + impl VerificationState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + VerificationState::Declaration => "DECLARATION", + VerificationState::Unverified => "UNVERIFIED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DECLARATION" => Some(Self::Declaration), + "UNVERIFIED" => Some(Self::Unverified), + _ => None, + } + } + } +} +impl ::prost::Name for ExtensionRangeOptions { + const NAME: &'static str = "ExtensionRangeOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } /// Describes a field within a message. #[allow(clippy::derive_partial_eq_without_eq)] @@ -444,6 +595,13 @@ pub mod field_descriptor_proto { } } } +impl ::prost::Name for FieldDescriptorProto { + const NAME: &'static str = "FieldDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// Describes a oneof. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -453,6 +611,13 @@ pub struct OneofDescriptorProto { #[prost(message, optional, tag = "2")] pub options: ::core::option::Option, } +impl ::prost::Name for OneofDescriptorProto { + const NAME: &'static str = "OneofDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// Describes an enum type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -493,6 +658,20 @@ pub mod enum_descriptor_proto { #[prost(int32, optional, tag = "2")] pub end: ::core::option::Option, } + impl ::prost::Name for EnumReservedRange { + const NAME: &'static str = "EnumReservedRange"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.EnumDescriptorProto.{}", Self::NAME) + } + } +} +impl ::prost::Name for EnumDescriptorProto { + const NAME: &'static str = "EnumDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } /// Describes a value within an enum. #[allow(clippy::derive_partial_eq_without_eq)] @@ -505,6 +684,13 @@ pub struct EnumValueDescriptorProto { #[prost(message, optional, tag = "3")] pub options: ::core::option::Option, } +impl ::prost::Name for EnumValueDescriptorProto { + const NAME: &'static str = "EnumValueDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// Describes a service. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -516,6 +702,13 @@ pub struct ServiceDescriptorProto { #[prost(message, optional, tag = "3")] pub options: ::core::option::Option, } +impl ::prost::Name for ServiceDescriptorProto { + const NAME: &'static str = "ServiceDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// Describes a method of a service. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -537,6 +730,13 @@ pub struct MethodDescriptorProto { #[prost(bool, optional, tag = "6", default = "false")] pub server_streaming: ::core::option::Option, } +impl ::prost::Name for MethodDescriptorProto { + const NAME: &'static str = "MethodDescriptorProto"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FileOptions { @@ -647,6 +847,9 @@ pub struct FileOptions { /// determining the ruby package. #[prost(string, optional, tag = "45")] pub ruby_package: ::core::option::Option<::prost::alloc::string::String>, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "50")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. /// See the documentation for the "Options" section above. #[prost(message, repeated, tag = "999")] @@ -700,6 +903,13 @@ pub mod file_options { } } } +impl ::prost::Name for FileOptions { + const NAME: &'static str = "FileOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MessageOptions { @@ -734,6 +944,10 @@ pub struct MessageOptions { /// this is a formalization for deprecating messages. #[prost(bool, optional, tag = "3", default = "false")] pub deprecated: ::core::option::Option, + /// NOTE: Do not set the option in .proto files. Always use the maps syntax + /// instead. The option should only be implicitly set by the proto compiler + /// parser. + /// /// Whether the message is an automatically generated map entry type for the /// maps field. /// @@ -751,23 +965,44 @@ pub struct MessageOptions { /// use a native map in the target language to hold the keys and values. /// The reflection APIs in such implementations still need to work as /// if the field is a repeated message field. - /// - /// NOTE: Do not set the option in .proto files. Always use the maps syntax - /// instead. The option should only be implicitly set by the proto compiler - /// parser. #[prost(bool, optional, tag = "7")] pub map_entry: ::core::option::Option, + /// Enable the legacy handling of JSON field name conflicts. This lowercases + /// and strips underscored from the fields before comparison in proto3 only. + /// The new behavior takes `json_name` into account and applies to proto2 as + /// well. + /// + /// This should only be used as a temporary measure against broken builds due + /// to the change in behavior for JSON field name conflicts. + /// + /// TODO(b/261750190) This is legacy behavior we plan to remove once downstream + /// teams have had time to migrate. + #[deprecated] + #[prost(bool, optional, tag = "11")] + pub deprecated_legacy_json_field_conflicts: ::core::option::Option, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "12")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MessageOptions { + const NAME: &'static str = "MessageOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FieldOptions { /// The ctype option instructs the C++ code generator to use a different /// representation of the field than it normally would. See the specific - /// options below. This option is not yet implemented in the open source - /// release -- sorry, we'll try to include it in a future version! + /// options below. This option is only implemented to support use of + /// \[ctype=CORD\] and \[ctype=STRING\] (the default) on non-repeated fields of + /// type "bytes" in the open source release -- sorry, we'll try to include + /// other types in a future version! #[prost( enumeration = "field_options::CType", optional, @@ -817,7 +1052,6 @@ pub struct FieldOptions { /// call from multiple threads concurrently, while non-const methods continue /// to require exclusive access. /// - /// /// Note that implementations may choose not to check required fields within /// a lazy sub-message. That is, calling IsInitialized() on the outer message /// may return true even if the inner message has missing required fields. @@ -829,11 +1063,8 @@ pub struct FieldOptions { /// check its required fields, regardless of whether or not the message has /// been parsed. /// - /// As of 2021, lazy does no correctness checks on the byte stream during - /// parsing. This may lead to crashes if and when an invalid byte stream is - /// finally parsed upon access. - /// - /// TODO(b/211906113): Enable validation on lazy fields. + /// As of May 2022, lazy verifies the contents of the byte stream during + /// parsing. An invalid byte stream will cause the overall parsing to fail. #[prost(bool, optional, tag = "5", default = "false")] pub lazy: ::core::option::Option, /// unverified_lazy does no correctness checks on the byte stream. This should @@ -850,12 +1081,46 @@ pub struct FieldOptions { /// For Google-internal migration only. Do not use. #[prost(bool, optional, tag = "10", default = "false")] pub weak: ::core::option::Option, + /// Indicate that the field value should not be printed out when using debug + /// formats, e.g. when the field contains sensitive credentials. + #[prost(bool, optional, tag = "16", default = "false")] + pub debug_redact: ::core::option::Option, + #[prost(enumeration = "field_options::OptionRetention", optional, tag = "17")] + pub retention: ::core::option::Option, + #[prost( + enumeration = "field_options::OptionTargetType", + repeated, + packed = "false", + tag = "19" + )] + pub targets: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag = "20")] + pub edition_defaults: ::prost::alloc::vec::Vec, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "21")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } /// Nested message and enum types in `FieldOptions`. pub mod field_options { + #[allow(clippy::derive_partial_eq_without_eq)] + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct EditionDefault { + #[prost(string, optional, tag = "1")] + pub edition: ::core::option::Option<::prost::alloc::string::String>, + /// Textproto value. + #[prost(string, optional, tag = "2")] + pub value: ::core::option::Option<::prost::alloc::string::String>, + } + impl ::prost::Name for EditionDefault { + const NAME: &'static str = "EditionDefault"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.FieldOptions.{}", Self::NAME) + } + } #[derive( Clone, Copy, @@ -871,6 +1136,12 @@ pub mod field_options { pub enum CType { /// Default mode. String = 0, + /// The option \[ctype=CORD\] may be applied to a non-repeated field of type + /// "bytes". It indicates that in C++, the data should be stored in a Cord + /// instead of a string. For very large strings, this may reduce memory + /// fragmentation. It may also allow better performance when parsing from a + /// Cord, or when parsing with aliasing enabled, as the parsed Cord may then + /// alias the original buffer. Cord = 1, StringPiece = 2, } @@ -938,14 +1209,139 @@ pub mod field_options { } } } + /// If set to RETENTION_SOURCE, the option will be omitted from the binary. + /// Note: as of January 2023, support for this is in progress and does not yet + /// have an effect (b/264593489). + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum OptionRetention { + RetentionUnknown = 0, + RetentionRuntime = 1, + RetentionSource = 2, + } + impl OptionRetention { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + OptionRetention::RetentionUnknown => "RETENTION_UNKNOWN", + OptionRetention::RetentionRuntime => "RETENTION_RUNTIME", + OptionRetention::RetentionSource => "RETENTION_SOURCE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RETENTION_UNKNOWN" => Some(Self::RetentionUnknown), + "RETENTION_RUNTIME" => Some(Self::RetentionRuntime), + "RETENTION_SOURCE" => Some(Self::RetentionSource), + _ => None, + } + } + } + /// This indicates the types of entities that the field may apply to when used + /// as an option. If it is unset, then the field may be freely used as an + /// option on any kind of entity. Note: as of January 2023, support for this is + /// in progress and does not yet have an effect (b/264593489). + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum OptionTargetType { + TargetTypeUnknown = 0, + TargetTypeFile = 1, + TargetTypeExtensionRange = 2, + TargetTypeMessage = 3, + TargetTypeField = 4, + TargetTypeOneof = 5, + TargetTypeEnum = 6, + TargetTypeEnumEntry = 7, + TargetTypeService = 8, + TargetTypeMethod = 9, + } + impl OptionTargetType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + OptionTargetType::TargetTypeUnknown => "TARGET_TYPE_UNKNOWN", + OptionTargetType::TargetTypeFile => "TARGET_TYPE_FILE", + OptionTargetType::TargetTypeExtensionRange => { + "TARGET_TYPE_EXTENSION_RANGE" + } + OptionTargetType::TargetTypeMessage => "TARGET_TYPE_MESSAGE", + OptionTargetType::TargetTypeField => "TARGET_TYPE_FIELD", + OptionTargetType::TargetTypeOneof => "TARGET_TYPE_ONEOF", + OptionTargetType::TargetTypeEnum => "TARGET_TYPE_ENUM", + OptionTargetType::TargetTypeEnumEntry => "TARGET_TYPE_ENUM_ENTRY", + OptionTargetType::TargetTypeService => "TARGET_TYPE_SERVICE", + OptionTargetType::TargetTypeMethod => "TARGET_TYPE_METHOD", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "TARGET_TYPE_UNKNOWN" => Some(Self::TargetTypeUnknown), + "TARGET_TYPE_FILE" => Some(Self::TargetTypeFile), + "TARGET_TYPE_EXTENSION_RANGE" => Some(Self::TargetTypeExtensionRange), + "TARGET_TYPE_MESSAGE" => Some(Self::TargetTypeMessage), + "TARGET_TYPE_FIELD" => Some(Self::TargetTypeField), + "TARGET_TYPE_ONEOF" => Some(Self::TargetTypeOneof), + "TARGET_TYPE_ENUM" => Some(Self::TargetTypeEnum), + "TARGET_TYPE_ENUM_ENTRY" => Some(Self::TargetTypeEnumEntry), + "TARGET_TYPE_SERVICE" => Some(Self::TargetTypeService), + "TARGET_TYPE_METHOD" => Some(Self::TargetTypeMethod), + _ => None, + } + } + } +} +impl ::prost::Name for FieldOptions { + const NAME: &'static str = "FieldOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct OneofOptions { + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "1")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } +impl ::prost::Name for OneofOptions { + const NAME: &'static str = "OneofOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EnumOptions { @@ -959,10 +1355,29 @@ pub struct EnumOptions { /// is a formalization for deprecating enums. #[prost(bool, optional, tag = "3", default = "false")] pub deprecated: ::core::option::Option, + /// Enable the legacy handling of JSON field name conflicts. This lowercases + /// and strips underscored from the fields before comparison in proto3 only. + /// The new behavior takes `json_name` into account and applies to proto2 as + /// well. + /// TODO(b/261750190) Remove this legacy behavior once downstream teams have + /// had time to migrate. + #[deprecated] + #[prost(bool, optional, tag = "6")] + pub deprecated_legacy_json_field_conflicts: ::core::option::Option, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "7")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } +impl ::prost::Name for EnumOptions { + const NAME: &'static str = "EnumOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EnumValueOptions { @@ -972,13 +1387,31 @@ pub struct EnumValueOptions { /// this is a formalization for deprecating enum values. #[prost(bool, optional, tag = "1", default = "false")] pub deprecated: ::core::option::Option, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "2")] + pub features: ::core::option::Option, + /// Indicate that fields annotated with this enum value should not be printed + /// out when using debug formats, e.g. when the field contains sensitive + /// credentials. + #[prost(bool, optional, tag = "3", default = "false")] + pub debug_redact: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } +impl ::prost::Name for EnumValueOptions { + const NAME: &'static str = "EnumValueOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ServiceOptions { + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "34")] + pub features: ::core::option::Option, /// Is this service deprecated? /// Depending on the target platform, this can emit Deprecated annotations /// for the service, or it will be completely ignored; in the very least, @@ -989,6 +1422,13 @@ pub struct ServiceOptions { #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ServiceOptions { + const NAME: &'static str = "ServiceOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MethodOptions { @@ -1005,6 +1445,9 @@ pub struct MethodOptions { default = "IdempotencyUnknown" )] pub idempotency_level: ::core::option::Option, + /// Any features defined in the specific edition. + #[prost(message, optional, tag = "35")] + pub features: ::core::option::Option, /// The parser stores options it doesn't recognize here. See above. #[prost(message, repeated, tag = "999")] pub uninterpreted_option: ::prost::alloc::vec::Vec, @@ -1056,6 +1499,13 @@ pub mod method_options { } } } +impl ::prost::Name for MethodOptions { + const NAME: &'static str = "MethodOptions"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// A message representing a option the parser does not recognize. This only /// appears in options protos created by the compiler::Parser class. /// DescriptorPool resolves these when building Descriptor objects. Therefore, @@ -1097,6 +1547,294 @@ pub mod uninterpreted_option { #[prost(bool, required, tag = "2")] pub is_extension: bool, } + impl ::prost::Name for NamePart { + const NAME: &'static str = "NamePart"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.UninterpretedOption.{}", Self::NAME) + } + } +} +impl ::prost::Name for UninterpretedOption { + const NAME: &'static str = "UninterpretedOption"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} +/// TODO(b/274655146) Enums in C++ gencode (and potentially other languages) are +/// not well scoped. This means that each of the feature enums below can clash +/// with each other. The short names we've chosen maximize call-site +/// readability, but leave us very open to this scenario. A future feature will +/// be designed and implemented to handle this, hopefully before we ever hit a +/// conflict here. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FeatureSet { + #[prost(enumeration = "feature_set::FieldPresence", optional, tag = "1")] + pub field_presence: ::core::option::Option, + #[prost(enumeration = "feature_set::EnumType", optional, tag = "2")] + pub enum_type: ::core::option::Option, + #[prost(enumeration = "feature_set::RepeatedFieldEncoding", optional, tag = "3")] + pub repeated_field_encoding: ::core::option::Option, + #[prost(enumeration = "feature_set::StringFieldValidation", optional, tag = "4")] + pub string_field_validation: ::core::option::Option, + #[prost(enumeration = "feature_set::MessageEncoding", optional, tag = "5")] + pub message_encoding: ::core::option::Option, + #[prost(enumeration = "feature_set::JsonFormat", optional, tag = "6")] + pub json_format: ::core::option::Option, + #[prost(message, optional, boxed, tag = "999")] + pub raw_features: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Nested message and enum types in `FeatureSet`. +pub mod feature_set { + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum FieldPresence { + Unknown = 0, + Explicit = 1, + Implicit = 2, + LegacyRequired = 3, + } + impl FieldPresence { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + FieldPresence::Unknown => "FIELD_PRESENCE_UNKNOWN", + FieldPresence::Explicit => "EXPLICIT", + FieldPresence::Implicit => "IMPLICIT", + FieldPresence::LegacyRequired => "LEGACY_REQUIRED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FIELD_PRESENCE_UNKNOWN" => Some(Self::Unknown), + "EXPLICIT" => Some(Self::Explicit), + "IMPLICIT" => Some(Self::Implicit), + "LEGACY_REQUIRED" => Some(Self::LegacyRequired), + _ => None, + } + } + } + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum EnumType { + Unknown = 0, + Open = 1, + Closed = 2, + } + impl EnumType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + EnumType::Unknown => "ENUM_TYPE_UNKNOWN", + EnumType::Open => "OPEN", + EnumType::Closed => "CLOSED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ENUM_TYPE_UNKNOWN" => Some(Self::Unknown), + "OPEN" => Some(Self::Open), + "CLOSED" => Some(Self::Closed), + _ => None, + } + } + } + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum RepeatedFieldEncoding { + Unknown = 0, + Packed = 1, + Expanded = 2, + } + impl RepeatedFieldEncoding { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + RepeatedFieldEncoding::Unknown => "REPEATED_FIELD_ENCODING_UNKNOWN", + RepeatedFieldEncoding::Packed => "PACKED", + RepeatedFieldEncoding::Expanded => "EXPANDED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "REPEATED_FIELD_ENCODING_UNKNOWN" => Some(Self::Unknown), + "PACKED" => Some(Self::Packed), + "EXPANDED" => Some(Self::Expanded), + _ => None, + } + } + } + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum StringFieldValidation { + Unknown = 0, + Mandatory = 1, + Hint = 2, + None = 3, + } + impl StringFieldValidation { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + StringFieldValidation::Unknown => "STRING_FIELD_VALIDATION_UNKNOWN", + StringFieldValidation::Mandatory => "MANDATORY", + StringFieldValidation::Hint => "HINT", + StringFieldValidation::None => "NONE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "STRING_FIELD_VALIDATION_UNKNOWN" => Some(Self::Unknown), + "MANDATORY" => Some(Self::Mandatory), + "HINT" => Some(Self::Hint), + "NONE" => Some(Self::None), + _ => None, + } + } + } + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum MessageEncoding { + Unknown = 0, + LengthPrefixed = 1, + Delimited = 2, + } + impl MessageEncoding { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MessageEncoding::Unknown => "MESSAGE_ENCODING_UNKNOWN", + MessageEncoding::LengthPrefixed => "LENGTH_PREFIXED", + MessageEncoding::Delimited => "DELIMITED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MESSAGE_ENCODING_UNKNOWN" => Some(Self::Unknown), + "LENGTH_PREFIXED" => Some(Self::LengthPrefixed), + "DELIMITED" => Some(Self::Delimited), + _ => None, + } + } + } + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum JsonFormat { + Unknown = 0, + Allow = 1, + LegacyBestEffort = 2, + } + impl JsonFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + JsonFormat::Unknown => "JSON_FORMAT_UNKNOWN", + JsonFormat::Allow => "ALLOW", + JsonFormat::LegacyBestEffort => "LEGACY_BEST_EFFORT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "JSON_FORMAT_UNKNOWN" => Some(Self::Unknown), + "ALLOW" => Some(Self::Allow), + "LEGACY_BEST_EFFORT" => Some(Self::LegacyBestEffort), + _ => None, + } + } + } +} +impl ::prost::Name for FeatureSet { + const NAME: &'static str = "FeatureSet"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } /// Encapsulates information about the original source file from which a /// FileDescriptorProto was generated. @@ -1242,6 +1980,20 @@ pub mod source_code_info { ::prost::alloc::string::String, >, } + impl ::prost::Name for Location { + const NAME: &'static str = "Location"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.SourceCodeInfo.{}", Self::NAME) + } + } +} +impl ::prost::Name for SourceCodeInfo { + const NAME: &'static str = "SourceCodeInfo"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } } /// Describes the relationship between generated code and its original source /// file. A GeneratedCodeInfo message is associated with only one generated @@ -1271,10 +2023,73 @@ pub mod generated_code_info { #[prost(int32, optional, tag = "3")] pub begin: ::core::option::Option, /// Identifies the ending offset in bytes in the generated code that - /// relates to the identified offset. The end offset should be one past + /// relates to the identified object. The end offset should be one past /// the last relevant byte (so the length of the text = end - begin). #[prost(int32, optional, tag = "4")] pub end: ::core::option::Option, + #[prost(enumeration = "annotation::Semantic", optional, tag = "5")] + pub semantic: ::core::option::Option, + } + /// Nested message and enum types in `Annotation`. + pub mod annotation { + /// Represents the identified object's effect on the element in the original + /// .proto file. + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] + #[repr(i32)] + pub enum Semantic { + /// There is no effect or the effect is indescribable. + None = 0, + /// The element is set or otherwise mutated. + Set = 1, + /// An alias to the element is returned. + Alias = 2, + } + impl Semantic { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Semantic::None => "NONE", + Semantic::Set => "SET", + Semantic::Alias => "ALIAS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NONE" => Some(Self::None), + "SET" => Some(Self::Set), + "ALIAS" => Some(Self::Alias), + _ => None, + } + } + } + } + impl ::prost::Name for Annotation { + const NAME: &'static str = "Annotation"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.GeneratedCodeInfo.{}", Self::NAME) + } + } +} +impl ::prost::Name for GeneratedCodeInfo { + const NAME: &'static str = "GeneratedCodeInfo"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) } } /// A Timestamp represents a point in time independent of any time zone or local @@ -1327,7 +2142,6 @@ pub mod generated_code_info { /// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) /// .setNanos((int) ((millis % 1000) * 1000000)).build(); /// -/// /// Example 5: Compute Timestamp from Java `Instant.now()`. /// /// Instant now = Instant.now(); @@ -1336,7 +2150,6 @@ pub mod generated_code_info { /// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) /// .setNanos(now.getNano()).build(); /// -/// /// Example 6: Compute Timestamp from current time in Python. /// /// timestamp = Timestamp() @@ -1366,10 +2179,9 @@ pub mod generated_code_info { /// [`strftime`]() with /// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use /// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -/// +/// ) /// ) to obtain a formatter capable of generating timestamps in this format. /// -/// #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1386,6 +2198,13 @@ pub struct Timestamp { #[prost(int32, tag = "2")] pub nanos: i32, } +impl ::prost::Name for Timestamp { + const NAME: &'static str = "Timestamp"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} /// A Duration represents a signed, fixed-length span of time represented /// as a count of seconds and fractions of seconds at nanosecond /// resolution. It is independent of any calendar and concepts like "day" @@ -1445,7 +2264,6 @@ pub struct Timestamp { /// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 /// microsecond should be expressed in JSON format as "3.000001s". /// -/// #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[derive(Eq)] #[allow(clippy::derive_partial_eq_without_eq)] @@ -1465,3 +2283,10 @@ pub struct Duration { #[prost(int32, tag = "2")] pub nanos: i32, } +impl ::prost::Name for Duration { + const NAME: &'static str = "Duration"; + const PACKAGE: &'static str = "google.protobuf"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("google.protobuf.{}", Self::NAME) + } +} diff --git a/src/prost/ibc.applications.fee.v1.rs b/src/prost/ibc.applications.fee.v1.rs index 0a0885f6..9d798dce 100644 --- a/src/prost/ibc.applications.fee.v1.rs +++ b/src/prost/ibc.applications.fee.v1.rs @@ -18,6 +18,13 @@ pub struct Fee { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for Fee { + const NAME: &'static str = "Fee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// PacketFee contains ICS29 relayer fees, refund address and optional list of permitted relayers #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -32,6 +39,13 @@ pub struct PacketFee { #[prost(string, repeated, tag = "3")] pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for PacketFee { + const NAME: &'static str = "PacketFee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// PacketFees contains a list of type PacketFee #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -40,6 +54,13 @@ pub struct PacketFees { #[prost(message, repeated, tag = "1")] pub packet_fees: ::prost::alloc::vec::Vec, } +impl ::prost::Name for PacketFees { + const NAME: &'static str = "PacketFees"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// IdentifiedPacketFees contains a list of type PacketFee and associated PacketId #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -53,6 +74,13 @@ pub struct IdentifiedPacketFees { #[prost(message, repeated, tag = "2")] pub packet_fees: ::prost::alloc::vec::Vec, } +impl ::prost::Name for IdentifiedPacketFees { + const NAME: &'static str = "IdentifiedPacketFees"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgRegisterPayee defines the request type for the RegisterPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -70,10 +98,24 @@ pub struct MsgRegisterPayee { #[prost(string, tag = "4")] pub payee: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRegisterPayee { + const NAME: &'static str = "MsgRegisterPayee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterPayeeResponse {} +impl ::prost::Name for MsgRegisterPayeeResponse { + const NAME: &'static str = "MsgRegisterPayeeResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -91,10 +133,24 @@ pub struct MsgRegisterCounterpartyPayee { #[prost(string, tag = "4")] pub counterparty_payee: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRegisterCounterpartyPayee { + const NAME: &'static str = "MsgRegisterCounterpartyPayee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterCounterpartyPayeeResponse {} +impl ::prost::Name for MsgRegisterCounterpartyPayeeResponse { + const NAME: &'static str = "MsgRegisterCounterpartyPayeeResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgPayPacketFee defines the request type for the PayPacketFee rpc /// This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be /// paid for @@ -117,10 +173,24 @@ pub struct MsgPayPacketFee { #[prost(string, repeated, tag = "5")] pub relayers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for MsgPayPacketFee { + const NAME: &'static str = "MsgPayPacketFee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFeeResponse {} +impl ::prost::Name for MsgPayPacketFeeResponse { + const NAME: &'static str = "MsgPayPacketFeeResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync rpc /// This Msg can be used to pay for a packet at a specified sequence (instead of the next sequence send) #[allow(clippy::derive_partial_eq_without_eq)] @@ -135,10 +205,24 @@ pub struct MsgPayPacketFeeAsync { #[prost(message, optional, tag = "2")] pub packet_fee: ::core::option::Option, } +impl ::prost::Name for MsgPayPacketFeeAsync { + const NAME: &'static str = "MsgPayPacketFeeAsync"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// MsgPayPacketFeeAsyncResponse defines the response type for the PayPacketFeeAsync rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFeeAsyncResponse {} +impl ::prost::Name for MsgPayPacketFeeAsyncResponse { + const NAME: &'static str = "MsgPayPacketFeeAsyncResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -722,6 +806,13 @@ pub struct IncentivizedAcknowledgement { #[prost(bool, tag = "3")] pub underlying_app_success: bool, } +impl ::prost::Name for IncentivizedAcknowledgement { + const NAME: &'static str = "IncentivizedAcknowledgement"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// GenesisState defines the ICS29 fee middleware genesis state #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -744,6 +835,13 @@ pub struct GenesisState { #[prost(message, repeated, tag = "5")] pub forward_relayers: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -755,6 +853,13 @@ pub struct FeeEnabledChannel { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for FeeEnabledChannel { + const NAME: &'static str = "FeeEnabledChannel"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// RegisteredPayee contains the relayer address and payee address for a specific channel #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -769,6 +874,13 @@ pub struct RegisteredPayee { #[prost(string, tag = "3")] pub payee: ::prost::alloc::string::String, } +impl ::prost::Name for RegisteredPayee { + const NAME: &'static str = "RegisteredPayee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// RegisteredCounterpartyPayee contains the relayer address and counterparty payee address for a specific channel (used /// for recv fee distribution) #[allow(clippy::derive_partial_eq_without_eq)] @@ -784,6 +896,13 @@ pub struct RegisteredCounterpartyPayee { #[prost(string, tag = "3")] pub counterparty_payee: ::prost::alloc::string::String, } +impl ::prost::Name for RegisteredCounterpartyPayee { + const NAME: &'static str = "RegisteredCounterpartyPayee"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// ForwardRelayerAddress contains the forward relayer address and PacketId used for async acknowledgements #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -797,6 +916,13 @@ pub struct ForwardRelayerAddress { super::super::super::core::channel::v1::PacketId, >, } +impl ::prost::Name for ForwardRelayerAddress { + const NAME: &'static str = "ForwardRelayerAddress"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketsRequest defines the request type for the IncentivizedPackets rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -810,6 +936,13 @@ pub struct QueryIncentivizedPacketsRequest { #[prost(uint64, tag = "2")] pub query_height: u64, } +impl ::prost::Name for QueryIncentivizedPacketsRequest { + const NAME: &'static str = "QueryIncentivizedPacketsRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -823,6 +956,13 @@ pub struct QueryIncentivizedPacketsResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryIncentivizedPacketsResponse { + const NAME: &'static str = "QueryIncentivizedPacketsResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketRequest defines the request type for the IncentivizedPacket rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -836,6 +976,13 @@ pub struct QueryIncentivizedPacketRequest { #[prost(uint64, tag = "2")] pub query_height: u64, } +impl ::prost::Name for QueryIncentivizedPacketRequest { + const NAME: &'static str = "QueryIncentivizedPacketRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPacket rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -844,6 +991,13 @@ pub struct QueryIncentivizedPacketResponse { #[prost(message, optional, tag = "1")] pub incentivized_packet: ::core::option::Option, } +impl ::prost::Name for QueryIncentivizedPacketResponse { + const NAME: &'static str = "QueryIncentivizedPacketResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketsForChannelRequest defines the request type for querying for all incentivized packets /// for a specific channel #[allow(clippy::derive_partial_eq_without_eq)] @@ -862,6 +1016,13 @@ pub struct QueryIncentivizedPacketsForChannelRequest { #[prost(uint64, tag = "4")] pub query_height: u64, } +impl ::prost::Name for QueryIncentivizedPacketsForChannelRequest { + const NAME: &'static str = "QueryIncentivizedPacketsForChannelRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -875,6 +1036,13 @@ pub struct QueryIncentivizedPacketsForChannelResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryIncentivizedPacketsForChannelResponse { + const NAME: &'static str = "QueryIncentivizedPacketsForChannelResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -885,6 +1053,13 @@ pub struct QueryTotalRecvFeesRequest { super::super::super::core::channel::v1::PacketId, >, } +impl ::prost::Name for QueryTotalRecvFeesRequest { + const NAME: &'static str = "QueryTotalRecvFeesRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalRecvFeesResponse defines the response type for the TotalRecvFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -895,6 +1070,13 @@ pub struct QueryTotalRecvFeesResponse { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for QueryTotalRecvFeesResponse { + const NAME: &'static str = "QueryTotalRecvFeesResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalAckFeesRequest defines the request type for the TotalAckFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -905,6 +1087,13 @@ pub struct QueryTotalAckFeesRequest { super::super::super::core::channel::v1::PacketId, >, } +impl ::prost::Name for QueryTotalAckFeesRequest { + const NAME: &'static str = "QueryTotalAckFeesRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalAckFeesResponse defines the response type for the TotalAckFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -915,6 +1104,13 @@ pub struct QueryTotalAckFeesResponse { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for QueryTotalAckFeesResponse { + const NAME: &'static str = "QueryTotalAckFeesResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalTimeoutFeesRequest defines the request type for the TotalTimeoutFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -925,6 +1121,13 @@ pub struct QueryTotalTimeoutFeesRequest { super::super::super::core::channel::v1::PacketId, >, } +impl ::prost::Name for QueryTotalTimeoutFeesRequest { + const NAME: &'static str = "QueryTotalTimeoutFeesRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryTotalTimeoutFeesResponse defines the response type for the TotalTimeoutFees rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -935,6 +1138,13 @@ pub struct QueryTotalTimeoutFeesResponse { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for QueryTotalTimeoutFeesResponse { + const NAME: &'static str = "QueryTotalTimeoutFeesResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryPayeeRequest defines the request type for the Payee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -946,6 +1156,13 @@ pub struct QueryPayeeRequest { #[prost(string, tag = "2")] pub relayer: ::prost::alloc::string::String, } +impl ::prost::Name for QueryPayeeRequest { + const NAME: &'static str = "QueryPayeeRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryPayeeResponse defines the response type for the Payee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -954,6 +1171,13 @@ pub struct QueryPayeeResponse { #[prost(string, tag = "1")] pub payee_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryPayeeResponse { + const NAME: &'static str = "QueryPayeeResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryCounterpartyPayeeRequest defines the request type for the CounterpartyPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -965,6 +1189,13 @@ pub struct QueryCounterpartyPayeeRequest { #[prost(string, tag = "2")] pub relayer: ::prost::alloc::string::String, } +impl ::prost::Name for QueryCounterpartyPayeeRequest { + const NAME: &'static str = "QueryCounterpartyPayeeRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryCounterpartyPayeeResponse defines the response type for the CounterpartyPayee rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -973,6 +1204,13 @@ pub struct QueryCounterpartyPayeeResponse { #[prost(string, tag = "1")] pub counterparty_payee: ::prost::alloc::string::String, } +impl ::prost::Name for QueryCounterpartyPayeeResponse { + const NAME: &'static str = "QueryCounterpartyPayeeResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryFeeEnabledChannelsRequest defines the request type for the FeeEnabledChannels rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -986,6 +1224,13 @@ pub struct QueryFeeEnabledChannelsRequest { #[prost(uint64, tag = "2")] pub query_height: u64, } +impl ::prost::Name for QueryFeeEnabledChannelsRequest { + const NAME: &'static str = "QueryFeeEnabledChannelsRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -999,6 +1244,13 @@ pub struct QueryFeeEnabledChannelsResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryFeeEnabledChannelsResponse { + const NAME: &'static str = "QueryFeeEnabledChannelsResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryFeeEnabledChannelRequest defines the request type for the FeeEnabledChannel rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1010,6 +1262,13 @@ pub struct QueryFeeEnabledChannelRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryFeeEnabledChannelRequest { + const NAME: &'static str = "QueryFeeEnabledChannelRequest"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// QueryFeeEnabledChannelResponse defines the response type for the FeeEnabledChannel rpc #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -1018,6 +1277,13 @@ pub struct QueryFeeEnabledChannelResponse { #[prost(bool, tag = "1")] pub fee_enabled: bool, } +impl ::prost::Name for QueryFeeEnabledChannelResponse { + const NAME: &'static str = "QueryFeeEnabledChannelResponse"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -2092,3 +2358,10 @@ pub struct Metadata { #[prost(string, tag = "2")] pub app_version: ::prost::alloc::string::String, } +impl ::prost::Name for Metadata { + const NAME: &'static str = "Metadata"; + const PACKAGE: &'static str = "ibc.applications.fee.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.fee.v1.{}", Self::NAME) + } +} diff --git a/src/prost/ibc.applications.interchain_accounts.controller.v1.rs b/src/prost/ibc.applications.interchain_accounts.controller.v1.rs index a351adda..8b04ebb3 100644 --- a/src/prost/ibc.applications.interchain_accounts.controller.v1.rs +++ b/src/prost/ibc.applications.interchain_accounts.controller.v1.rs @@ -8,6 +8,15 @@ 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 + ) + } +} /// MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -20,6 +29,15 @@ pub struct MsgRegisterInterchainAccount { #[prost(string, tag = "3")] pub version: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRegisterInterchainAccount { + const NAME: &'static str = "MsgRegisterInterchainAccount"; + 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 + ) + } +} /// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -30,6 +48,15 @@ pub struct MsgRegisterInterchainAccountResponse { #[prost(string, tag = "2")] pub port_id: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRegisterInterchainAccountResponse { + const NAME: &'static str = "MsgRegisterInterchainAccountResponse"; + 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 + ) + } +} /// MsgSendTx defines the payload for Msg/SendTx #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -48,6 +75,15 @@ pub struct MsgSendTx { #[prost(uint64, tag = "4")] pub relative_timeout: u64, } +impl ::prost::Name for MsgSendTx { + const NAME: &'static str = "MsgSendTx"; + 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 + ) + } +} /// MsgSendTxResponse defines the response for MsgSendTx #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -56,6 +92,15 @@ pub struct MsgSendTxResponse { #[prost(uint64, tag = "1")] pub sequence: u64, } +impl ::prost::Name for MsgSendTxResponse { + const NAME: &'static str = "MsgSendTxResponse"; + 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 + ) + } +} /// MsgUpdateParams defines the payload for Msg/UpdateParams #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -70,11 +115,29 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + 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 + ) + } +} /// MsgUpdateParamsResponse defines the response for Msg/UpdateParams #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + 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 = "client")] pub mod msg_client { @@ -556,6 +619,15 @@ pub struct QueryInterchainAccountRequest { #[prost(string, tag = "2")] pub connection_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryInterchainAccountRequest { + const NAME: &'static str = "QueryInterchainAccountRequest"; + 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 + ) + } +} /// QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -564,11 +636,29 @@ pub struct QueryInterchainAccountResponse { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryInterchainAccountResponse { + const NAME: &'static str = "QueryInterchainAccountResponse"; + 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -578,6 +668,15 @@ 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 = "client")] pub mod query_client { diff --git a/src/prost/ibc.applications.interchain_accounts.genesis.v1.rs b/src/prost/ibc.applications.interchain_accounts.genesis.v1.rs index b6116a8c..30c698e9 100644 --- a/src/prost/ibc.applications.interchain_accounts.genesis.v1.rs +++ b/src/prost/ibc.applications.interchain_accounts.genesis.v1.rs @@ -8,6 +8,15 @@ 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.genesis.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.genesis.v1.{}", Self::NAME + ) + } +} /// ControllerGenesisState defines the interchain accounts controller genesis state #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -22,6 +31,15 @@ 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.genesis.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.genesis.v1.{}", Self::NAME + ) + } +} /// HostGenesisState defines the interchain accounts host genesis state #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -36,6 +54,15 @@ 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.genesis.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.genesis.v1.{}", Self::NAME + ) + } +} /// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to /// indicate if the channel is middleware enabled #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -51,6 +78,15 @@ pub struct ActiveChannel { #[prost(bool, tag = "4")] pub is_middleware_enabled: bool, } +impl ::prost::Name for ActiveChannel { + const NAME: &'static str = "ActiveChannel"; + const PACKAGE: &'static str = "ibc.applications.interchain_accounts.genesis.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.genesis.v1.{}", Self::NAME + ) + } +} /// RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -63,3 +99,12 @@ 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.genesis.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!( + "ibc.applications.interchain_accounts.genesis.v1.{}", Self::NAME + ) + } +} diff --git a/src/prost/ibc.applications.interchain_accounts.host.v1.rs b/src/prost/ibc.applications.interchain_accounts.host.v1.rs index 00c7acb0..a7e9981f 100644 --- a/src/prost/ibc.applications.interchain_accounts.host.v1.rs +++ b/src/prost/ibc.applications.interchain_accounts.host.v1.rs @@ -11,6 +11,15 @@ 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 + ) + } +} /// MsgUpdateParams defines the payload for Msg/UpdateParams #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -25,11 +34,29 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + 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 + ) + } +} /// MsgUpdateParamsResponse defines the response for Msg/UpdateParams #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + 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 = "client")] pub mod msg_client { @@ -337,6 +364,15 @@ pub mod msg_server { #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -346,6 +382,15 @@ 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 = "client")] pub mod query_client { diff --git a/src/prost/ibc.applications.interchain_accounts.v1.rs b/src/prost/ibc.applications.interchain_accounts.v1.rs index 09ec19d1..0b76048e 100644 --- a/src/prost/ibc.applications.interchain_accounts.v1.rs +++ b/src/prost/ibc.applications.interchain_accounts.v1.rs @@ -10,6 +10,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -22,6 +29,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -32,6 +46,13 @@ pub struct CosmosTx { super::super::super::super::google::protobuf::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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -89,3 +110,10 @@ 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) + } +} diff --git a/src/prost/ibc.applications.transfer.v1.rs b/src/prost/ibc.applications.transfer.v1.rs index ba523ebd..8f83b743 100644 --- a/src/prost/ibc.applications.transfer.v1.rs +++ b/src/prost/ibc.applications.transfer.v1.rs @@ -12,6 +12,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 @@ -29,6 +36,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) + } +} /// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between /// ICS20 enabled chains. See ICS Spec here: /// @@ -68,6 +82,13 @@ pub struct MsgTransfer { #[cfg_attr(feature = "serde", serde(default))] pub memo: ::prost::alloc::string::String, } +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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -77,6 +98,13 @@ pub struct MsgTransferResponse { #[prost(uint64, tag = "1")] pub sequence: u64, } +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) + } +} /// MsgUpdateParams is the Msg/UpdateParams request type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -91,12 +119,26 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + 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 = "client")] pub mod msg_client { @@ -484,6 +526,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -494,6 +543,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -506,6 +562,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -521,11 +584,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -535,6 +612,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -545,6 +629,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -555,6 +646,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) + } +} /// QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -567,6 +665,13 @@ pub struct QueryEscrowAddressRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryEscrowAddressRequest { + const NAME: &'static str = "QueryEscrowAddressRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -576,6 +681,13 @@ pub struct QueryEscrowAddressResponse { #[prost(string, tag = "1")] pub escrow_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryEscrowAddressResponse { + const NAME: &'static str = "QueryEscrowAddressResponse"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -584,6 +696,13 @@ pub struct QueryTotalEscrowForDenomRequest { #[prost(string, tag = "1")] pub denom: ::prost::alloc::string::String, } +impl ::prost::Name for QueryTotalEscrowForDenomRequest { + const NAME: &'static str = "QueryTotalEscrowForDenomRequest"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -594,6 +713,13 @@ pub struct QueryTotalEscrowForDenomResponse { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for QueryTotalEscrowForDenomResponse { + const NAME: &'static str = "QueryTotalEscrowForDenomResponse"; + 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 = "client")] pub mod query_client { @@ -1329,6 +1455,13 @@ pub struct Allocation { #[prost(string, repeated, tag = "4")] pub allow_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for Allocation { + const NAME: &'static str = "Allocation"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// TransferAuthorization allows the grantee to spend up to spend_limit coins from /// the granter's account for ibc transfer on a specific channel #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1339,6 +1472,13 @@ pub struct TransferAuthorization { #[prost(message, repeated, tag = "1")] pub allocations: ::prost::alloc::vec::Vec, } +impl ::prost::Name for TransferAuthorization { + const NAME: &'static str = "TransferAuthorization"; + const PACKAGE: &'static str = "ibc.applications.transfer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.applications.transfer.v1.{}", Self::NAME) + } +} /// GenesisState defines the ibc-transfer genesis state #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -1357,3 +1497,10 @@ pub struct GenesisState { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +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/src/prost/ibc.applications.transfer.v2.rs b/src/prost/ibc.applications.transfer.v2.rs index d1b76cc6..9e9c6280 100644 --- a/src/prost/ibc.applications.transfer.v2.rs +++ b/src/prost/ibc.applications.transfer.v2.rs @@ -22,3 +22,10 @@ pub struct FungibleTokenPacketData { #[cfg_attr(feature = "serde", serde(default))] pub memo: ::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/src/prost/ibc.core.channel.v1.rs b/src/prost/ibc.core.channel.v1.rs index 2dd7954d..8de7d7c9 100644 --- a/src/prost/ibc.core.channel.v1.rs +++ b/src/prost/ibc.core.channel.v1.rs @@ -26,6 +26,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -55,6 +62,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[cfg_attr( @@ -71,6 +85,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -103,6 +124,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 @@ -124,6 +152,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) + } +} /// PacketId is an identifer for a unique Packet /// Source chains refer to packets by source port/channel /// Destination chains refer to packets by destination port/channel @@ -141,6 +176,13 @@ pub struct PacketId { #[prost(uint64, tag = "3")] pub sequence: u64, } +impl ::prost::Name for PacketId { + const NAME: &'static str = "PacketId"; + 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 @@ -169,6 +211,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) + } +} /// Timeout defines an execution deadline structure for 04-channel handlers. /// This includes packet lifecycle handlers as well as the upgrade handshake handlers. /// A valid Timeout contains either one or both of a timestamp and block height (sequence). @@ -183,6 +232,13 @@ pub struct Timeout { #[prost(uint64, tag = "2")] pub timestamp: u64, } +impl ::prost::Name for Timeout { + const NAME: &'static str = "Timeout"; + 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -286,6 +342,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -299,6 +362,13 @@ 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) + } +} /// MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It /// is called by a relayer on Chain A. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -312,6 +382,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -322,6 +399,13 @@ pub struct MsgChannelOpenInitResponse { #[prost(string, tag = "2")] pub version: ::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. @@ -347,6 +431,13 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -357,6 +448,13 @@ pub struct MsgChannelOpenTryResponse { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -378,11 +476,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -400,12 +512,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -419,11 +545,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -441,12 +581,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -461,6 +615,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -469,6 +630,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -485,6 +653,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -493,6 +668,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -511,6 +693,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -519,6 +708,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -535,6 +731,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -543,6 +746,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -1598,6 +1808,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. @@ -1615,6 +1832,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -1626,6 +1850,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -1643,6 +1874,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1658,6 +1896,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1676,6 +1921,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1689,6 +1941,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1707,6 +1966,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1726,6 +1992,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1747,6 +2020,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1763,6 +2043,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 @@ -1780,6 +2067,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1798,6 +2092,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1815,6 +2116,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1831,6 +2139,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 @@ -1848,6 +2163,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1864,6 +2186,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 @@ -1881,6 +2210,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1902,6 +2238,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1919,6 +2262,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1935,6 +2285,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1948,6 +2305,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1964,6 +2328,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1977,6 +2348,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1990,6 +2368,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -2006,6 +2391,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) + } +} /// QueryNextSequenceSendRequest is the request type for the /// Query/QueryNextSequenceSend RPC method #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -2019,6 +2411,13 @@ pub struct QueryNextSequenceSendRequest { #[prost(string, tag = "2")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryNextSequenceSendRequest { + const NAME: &'static str = "QueryNextSequenceSendRequest"; + const PACKAGE: &'static str = "ibc.core.channel.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.channel.v1.{}", Self::NAME) + } +} /// QueryNextSequenceSendResponse is the request type for the /// Query/QueryNextSequenceSend RPC method #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -2035,6 +2434,13 @@ pub struct QueryNextSequenceSendResponse { #[prost(message, optional, tag = "3")] pub proof_height: ::core::option::Option, } +impl ::prost::Name for QueryNextSequenceSendResponse { + const NAME: &'static str = "QueryNextSequenceSendResponse"; + 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 = "client")] pub mod query_client { diff --git a/src/prost/ibc.core.client.v1.rs b/src/prost/ibc.core.client.v1.rs index 05dd3b4b..d899bc68 100644 --- a/src/prost/ibc.core.client.v1.rs +++ b/src/prost/ibc.core.client.v1.rs @@ -13,6 +13,13 @@ pub struct IdentifiedClientState { super::super::super::super::google::protobuf::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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -28,6 +35,13 @@ pub struct ConsensusStateWithHeight { super::super::super::super::google::protobuf::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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -41,6 +55,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) + } +} /// Height is a monotonically increasing data type /// that can be compared against another Height for the purposes of updating and /// freezing clients @@ -69,6 +90,13 @@ pub struct Height { #[cfg_attr(feature = "serde", serde(default))] 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -80,6 +108,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) + } +} /// ClientUpdateProposal is a legacy 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 @@ -104,6 +139,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. /// @@ -131,6 +173,13 @@ pub struct UpgradeProposal { super::super::super::super::google::protobuf::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) + } +} /// GenesisState defines the ibc client submodule's genesis state. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -156,6 +205,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -169,6 +225,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -180,6 +243,13 @@ 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) + } +} /// MsgCreateClient defines a message to create an IBC client #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -200,11 +270,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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 client message. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -223,11 +307,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -258,11 +356,25 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. /// This message has been deprecated. Use MsgUpdateClient instead. @@ -282,12 +394,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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) + } +} /// MsgRecoverClient defines the message used to recover a frozen or expired client. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -304,11 +430,25 @@ pub struct MsgRecoverClient { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgRecoverClient { + const NAME: &'static str = "MsgRecoverClient"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgRecoverClientResponse defines the Msg/RecoverClient response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRecoverClientResponse {} +impl ::prost::Name for MsgRecoverClientResponse { + const NAME: &'static str = "MsgRecoverClientResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of an IBC client using a v1 governance proposal #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -334,11 +474,25 @@ pub struct MsgIbcSoftwareUpgrade { #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, } +impl ::prost::Name for MsgIbcSoftwareUpgrade { + const NAME: &'static str = "MsgIBCSoftwareUpgrade"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgIbcSoftwareUpgradeResponse {} +impl ::prost::Name for MsgIbcSoftwareUpgradeResponse { + const NAME: &'static str = "MsgIBCSoftwareUpgradeResponse"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpdateParams defines the sdk.Msg type to update the client parameters. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -353,11 +507,25 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the MsgUpdateParams response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + 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 = "client")] pub mod msg_client { @@ -1137,6 +1305,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. @@ -1156,6 +1331,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1168,6 +1350,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1183,6 +1372,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. @@ -1204,6 +1400,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1222,6 +1425,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1237,6 +1447,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1252,6 +1469,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) + } +} /// QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights /// RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1267,6 +1491,13 @@ pub struct QueryConsensusStateHeightsRequest { super::super::super::super::cosmos::base::query::v1beta1::PageRequest, >, } +impl ::prost::Name for QueryConsensusStateHeightsRequest { + const NAME: &'static str = "QueryConsensusStateHeightsRequest"; + const PACKAGE: &'static str = "ibc.core.client.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.client.v1.{}", Self::NAME) + } +} /// QueryConsensusStateHeightsResponse is the response type for the /// Query/ConsensusStateHeights RPC method #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1282,6 +1513,13 @@ pub struct QueryConsensusStateHeightsResponse { super::super::super::super::cosmos::base::query::v1beta1::PageResponse, >, } +impl ::prost::Name for QueryConsensusStateHeightsResponse { + const NAME: &'static str = "QueryConsensusStateHeightsResponse"; + 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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1292,6 +1530,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1301,12 +1546,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1317,12 +1576,26 @@ 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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1335,12 +1608,26 @@ pub struct QueryUpgradedClientStateResponse { super::super::super::super::google::protobuf::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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1353,6 +1640,13 @@ pub struct QueryUpgradedConsensusStateResponse { super::super::super::super::google::protobuf::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 = "client")] pub mod query_client { diff --git a/src/prost/ibc.core.commitment.v1.rs b/src/prost/ibc.core.commitment.v1.rs index 0ad8d2bf..9214a828 100644 --- a/src/prost/ibc.core.commitment.v1.rs +++ b/src/prost/ibc.core.commitment.v1.rs @@ -16,6 +16,13 @@ pub struct MerkleRoot { )] 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...)) @@ -35,6 +42,13 @@ pub struct MerklePrefix { )] 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 @@ -45,6 +59,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 @@ -59,3 +80,10 @@ pub struct MerkleProof { super::super::super::super::cosmos::ics23::v1::CommitmentProof, >, } +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/src/prost/ibc.core.connection.v1.rs b/src/prost/ibc.core.connection.v1.rs index 12cc3618..3d889e58 100644 --- a/src/prost/ibc.core.connection.v1.rs +++ b/src/prost/ibc.core.connection.v1.rs @@ -29,6 +29,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -55,6 +62,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[cfg_attr( @@ -76,6 +90,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -85,6 +106,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -97,6 +125,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -114,6 +149,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -125,6 +167,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -180,6 +229,13 @@ 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) + } +} /// MsgConnectionOpenInit defines the msg sent by an account on Chain A to /// initialize a connection with Chain B. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -197,12 +253,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -245,11 +315,25 @@ pub struct MsgConnectionOpenTry { #[prost(bytes = "vec", tag = "13")] pub host_consensus_state_proof: ::prost::alloc::vec::Vec, } +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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -286,11 +370,25 @@ pub struct MsgConnectionOpenAck { #[prost(bytes = "vec", tag = "11")] pub host_consensus_state_proof: ::prost::alloc::vec::Vec, } +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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -307,12 +405,26 @@ 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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[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) + } +} /// MsgUpdateParams defines the sdk.Msg type to update the connection parameters. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -327,11 +439,25 @@ pub struct MsgUpdateParams { #[prost(message, optional, tag = "2")] pub params: ::core::option::Option, } +impl ::prost::Name for MsgUpdateParams { + const NAME: &'static str = "MsgUpdateParams"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// MsgUpdateParamsResponse defines the MsgUpdateParams response type. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} +impl ::prost::Name for MsgUpdateParamsResponse { + const NAME: &'static str = "MsgUpdateParamsResponse"; + 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 = "client")] pub mod msg_client { @@ -975,6 +1101,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. @@ -992,6 +1125,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1003,6 +1143,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1021,6 +1168,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1031,6 +1185,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1047,6 +1208,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1057,6 +1225,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1075,6 +1250,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1089,6 +1271,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -1110,11 +1299,25 @@ 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) + } +} /// QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionParamsRequest {} +impl ::prost::Name for QueryConnectionParamsRequest { + const NAME: &'static str = "QueryConnectionParamsRequest"; + const PACKAGE: &'static str = "ibc.core.connection.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.core.connection.v1.{}", Self::NAME) + } +} /// QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -1124,6 +1327,13 @@ pub struct QueryConnectionParamsResponse { #[prost(message, optional, tag = "1")] pub params: ::core::option::Option, } +impl ::prost::Name for QueryConnectionParamsResponse { + const NAME: &'static str = "QueryConnectionParamsResponse"; + 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 = "client")] pub mod query_client { diff --git a/src/prost/ibc.core.types.v1.rs b/src/prost/ibc.core.types.v1.rs index cc6a4edf..62b09848 100644 --- a/src/prost/ibc.core.types.v1.rs +++ b/src/prost/ibc.core.types.v1.rs @@ -15,3 +15,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/src/prost/ibc.lightclients.localhost.v1.rs b/src/prost/ibc.lightclients.localhost.v1.rs index 980676d1..4fe8fe76 100644 --- a/src/prost/ibc.lightclients.localhost.v1.rs +++ b/src/prost/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/src/prost/ibc.lightclients.localhost.v2.rs b/src/prost/ibc.lightclients.localhost.v2.rs index 7e7c61bc..d157ac26 100644 --- a/src/prost/ibc.lightclients.localhost.v2.rs +++ b/src/prost/ibc.lightclients.localhost.v2.rs @@ -9,3 +9,10 @@ pub struct ClientState { super::super::super::core::client::v1::Height, >, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.localhost.v2"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.localhost.v2.{}", Self::NAME) + } +} diff --git a/src/prost/ibc.lightclients.solomachine.v2.rs b/src/prost/ibc.lightclients.solomachine.v2.rs index 77f96f9f..d74115f8 100644 --- a/src/prost/ibc.lightclients.solomachine.v2.rs +++ b/src/prost/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. @@ -35,6 +42,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)] @@ -53,6 +67,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)] @@ -67,6 +88,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)] @@ -81,6 +109,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)] @@ -91,6 +126,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)] @@ -108,6 +150,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)] @@ -121,6 +170,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)] @@ -132,6 +188,13 @@ pub struct ClientStateData { super::super::super::super::google::protobuf::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)] @@ -144,6 +207,13 @@ pub struct ConsensusStateData { super::super::super::super::google::protobuf::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)] @@ -156,6 +226,13 @@ pub struct ConnectionStateData { super::super::super::core::connection::v1::ConnectionEnd, >, } +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)] @@ -166,6 +243,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)] @@ -176,6 +260,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)] @@ -186,6 +277,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)] @@ -194,6 +292,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)] @@ -204,6 +309,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/src/prost/ibc.lightclients.solomachine.v3.rs b/src/prost/ibc.lightclients.solomachine.v3.rs index 144a4a56..20c25cba 100644 --- a/src/prost/ibc.lightclients.solomachine.v3.rs +++ b/src/prost/ibc.lightclients.solomachine.v3.rs @@ -13,6 +13,13 @@ pub struct ClientState { #[prost(message, optional, tag = "3")] pub consensus_state: ::core::option::Option, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", 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.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// Header defines a solo machine consensus header #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -49,6 +63,13 @@ pub struct Header { #[prost(string, tag = "4")] pub new_diversifier: ::prost::alloc::string::String, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// Misbehaviour defines misbehaviour for a solo machine which consists /// of a sequence and two signatures over different messages at that sequence. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -62,6 +83,13 @@ pub struct Misbehaviour { #[prost(message, optional, tag = "3")] pub signature_two: ::core::option::Option, } +impl ::prost::Name for Misbehaviour { + const NAME: &'static str = "Misbehaviour"; + const PACKAGE: &'static str = "ibc.lightclients.solomachine.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// SignatureAndData contains a signature and the data signed over to create that /// signature. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -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.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -88,6 +123,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.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// SignBytes defines the signed bytes used for signature verification. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -109,6 +151,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.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} /// HeaderData returns the SignBytes data for update verification. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -123,3 +172,10 @@ 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.v3"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.lightclients.solomachine.v3.{}", Self::NAME) + } +} diff --git a/src/prost/ibc.lightclients.tendermint.v1.rs b/src/prost/ibc.lightclients.tendermint.v1.rs index 8849c261..d10d16bc 100644 --- a/src/prost/ibc.lightclients.tendermint.v1.rs +++ b/src/prost/ibc.lightclients.tendermint.v1.rs @@ -57,6 +57,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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] #[allow(clippy::derive_partial_eq_without_eq)] @@ -76,6 +83,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 #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -91,6 +105,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 @@ -120,6 +141,13 @@ pub struct Header { ::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. #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] @@ -131,3 +159,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/src/prost/ibc.mock.rs b/src/prost/ibc.mock.rs index f37cedbd..d47fadf7 100644 --- a/src/prost/ibc.mock.rs +++ b/src/prost/ibc.mock.rs @@ -6,18 +6,39 @@ pub struct Header { #[prost(uint64, tag = "2")] pub timestamp: u64, } +impl ::prost::Name for Header { + const NAME: &'static str = "Header"; + const PACKAGE: &'static str = "ibc.mock"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.mock.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { #[prost(message, optional, tag = "1")] pub header: ::core::option::Option
, } +impl ::prost::Name for ClientState { + const NAME: &'static str = "ClientState"; + const PACKAGE: &'static str = "ibc.mock"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.mock.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { #[prost(message, optional, tag = "1")] pub header: ::core::option::Option
, } +impl ::prost::Name for ConsensusState { + const NAME: &'static str = "ConsensusState"; + const PACKAGE: &'static str = "ibc.mock"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.mock.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { @@ -28,3 +49,10 @@ pub struct Misbehaviour { #[prost(message, optional, tag = "3")] pub header2: ::core::option::Option
, } +impl ::prost::Name for Misbehaviour { + const NAME: &'static str = "Misbehaviour"; + const PACKAGE: &'static str = "ibc.mock"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("ibc.mock.{}", Self::NAME) + } +} diff --git a/src/prost/interchain_security.ccv.consumer.v1.rs b/src/prost/interchain_security.ccv.consumer.v1.rs index 53f9f670..b9e93f4d 100644 --- a/src/prost/interchain_security.ccv.consumer.v1.rs +++ b/src/prost/interchain_security.ccv.consumer.v1.rs @@ -17,6 +17,13 @@ pub struct CrossChainValidator { super::super::super::super::google::protobuf::Any, >, } +impl ::prost::Name for CrossChainValidator { + const NAME: &'static str = "CrossChainValidator"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} /// A record storing the state of a slash packet sent to the provider chain /// which may bounce back and forth until handled by the provider. /// @@ -31,6 +38,13 @@ pub struct SlashRecord { super::super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for SlashRecord { + const NAME: &'static str = "SlashRecord"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} /// NextFeeDistributionEstimate holds information about next fee distribution #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -57,18 +71,46 @@ pub struct NextFeeDistributionEstimate { #[prost(string, tag = "7")] pub to_consumer: ::prost::alloc::string::String, } +impl ::prost::Name for NextFeeDistributionEstimate { + const NAME: &'static str = "NextFeeDistributionEstimate"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextFeeDistributionEstimateRequest {} +impl ::prost::Name for QueryNextFeeDistributionEstimateRequest { + const NAME: &'static str = "QueryNextFeeDistributionEstimateRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextFeeDistributionEstimateResponse { #[prost(message, optional, tag = "1")] pub data: ::core::option::Option, } +impl ::prost::Name for QueryNextFeeDistributionEstimateResponse { + const NAME: &'static str = "QueryNextFeeDistributionEstimateResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[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 = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} /// QueryParamsResponse is response type for the Query/Params RPC method. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -77,9 +119,23 @@ 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 = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProviderInfoRequest {} +impl ::prost::Name for QueryProviderInfoRequest { + const NAME: &'static str = "QueryProviderInfoRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProviderInfoResponse { @@ -88,6 +144,13 @@ pub struct QueryProviderInfoResponse { #[prost(message, optional, tag = "2")] pub provider: ::core::option::Option, } +impl ::prost::Name for QueryProviderInfoResponse { + const NAME: &'static str = "QueryProviderInfoResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainInfo { @@ -100,6 +163,13 @@ pub struct ChainInfo { #[prost(string, tag = "4")] pub channel_id: ::prost::alloc::string::String, } +impl ::prost::Name for ChainInfo { + const NAME: &'static str = "ChainInfo"; + const PACKAGE: &'static str = "interchain_security.ccv.consumer.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.consumer.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { diff --git a/src/prost/interchain_security.ccv.provider.v1.rs b/src/prost/interchain_security.ccv.provider.v1.rs index 2f65ca07..f0561dee 100644 --- a/src/prost/interchain_security.ccv.provider.v1.rs +++ b/src/prost/interchain_security.ccv.provider.v1.rs @@ -13,9 +13,23 @@ pub struct MsgAssignConsumerKey { #[prost(string, tag = "3")] pub consumer_key: ::prost::alloc::string::String, } +impl ::prost::Name for MsgAssignConsumerKey { + const NAME: &'static str = "MsgAssignConsumerKey"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAssignConsumerKeyResponse {} +impl ::prost::Name for MsgAssignConsumerKeyResponse { + const NAME: &'static str = "MsgAssignConsumerKeyResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// MsgSubmitConsumerMisbehaviour defines a message that reports a light client attack, /// also known as a misbehaviour, observed on a consumer chain #[allow(clippy::derive_partial_eq_without_eq)] @@ -30,9 +44,23 @@ pub struct MsgSubmitConsumerMisbehaviour { super::super::super::super::ibc::lightclients::tendermint::v1::Misbehaviour, >, } +impl ::prost::Name for MsgSubmitConsumerMisbehaviour { + const NAME: &'static str = "MsgSubmitConsumerMisbehaviour"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitConsumerMisbehaviourResponse {} +impl ::prost::Name for MsgSubmitConsumerMisbehaviourResponse { + const NAME: &'static str = "MsgSubmitConsumerMisbehaviourResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// MsgSubmitConsumerDoubleVoting defines a message that reports /// a double signing infraction observed on a consumer chain #[allow(clippy::derive_partial_eq_without_eq)] @@ -52,9 +80,23 @@ pub struct MsgSubmitConsumerDoubleVoting { super::super::super::super::ibc::lightclients::tendermint::v1::Header, >, } +impl ::prost::Name for MsgSubmitConsumerDoubleVoting { + const NAME: &'static str = "MsgSubmitConsumerDoubleVoting"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitConsumerDoubleVotingResponse {} +impl ::prost::Name for MsgSubmitConsumerDoubleVotingResponse { + const NAME: &'static str = "MsgSubmitConsumerDoubleVotingResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { @@ -606,6 +648,13 @@ pub struct ConsumerAdditionProposal { #[prost(string, tag = "14")] pub distribution_transmission_channel: ::prost::alloc::string::String, } +impl ::prost::Name for ConsumerAdditionProposal { + const NAME: &'static str = "ConsumerAdditionProposal"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ConsumerRemovalProposal is a governance proposal on the provider chain to /// remove (and stop) a consumer chain. If it passes, all the consumer chain's /// state is removed from the provider chain. The outstanding unbonding operation @@ -629,6 +678,13 @@ pub struct ConsumerRemovalProposal { super::super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for ConsumerRemovalProposal { + const NAME: &'static str = "ConsumerRemovalProposal"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ChangeRewardDenomsProposal is a governance proposal on the provider chain to /// mutate the set of denoms accepted by the provider as rewards. #[allow(clippy::derive_partial_eq_without_eq)] @@ -647,6 +703,13 @@ pub struct ChangeRewardDenomsProposal { #[prost(string, repeated, tag = "4")] pub denoms_to_remove: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ChangeRewardDenomsProposal { + const NAME: &'static str = "ChangeRewardDenomsProposal"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// A persisted queue entry indicating that a slash packet data instance needs to /// be handled. This type belongs in the "global" queue, to coordinate slash /// packet handling times between consumers. @@ -674,6 +737,13 @@ pub struct GlobalSlashEntry { #[prost(bytes = "vec", tag = "4")] pub provider_val_cons_addr: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GlobalSlashEntry { + const NAME: &'static str = "GlobalSlashEntry"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Params defines the parameters for CCV Provider module #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -725,6 +795,13 @@ pub struct Params { super::super::super::super::cosmos::base::v1beta1::Coin, >, } +impl ::prost::Name for Params { + const NAME: &'static str = "Params"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// SlashAcks contains cons addresses of consumer chain validators /// successfully slashed on the provider chain. #[allow(clippy::derive_partial_eq_without_eq)] @@ -733,6 +810,13 @@ pub struct SlashAcks { #[prost(string, repeated, tag = "1")] pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for SlashAcks { + const NAME: &'static str = "SlashAcks"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ConsumerAdditionProposals holds pending governance proposals on the provider /// chain to spawn a new chain. #[allow(clippy::derive_partial_eq_without_eq)] @@ -742,6 +826,13 @@ pub struct ConsumerAdditionProposals { #[prost(message, repeated, tag = "1")] pub pending: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ConsumerAdditionProposals { + const NAME: &'static str = "ConsumerAdditionProposals"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ConsumerRemovalProposals holds pending governance proposals on the provider /// chain to remove (and stop) a consumer chain. #[allow(clippy::derive_partial_eq_without_eq)] @@ -751,6 +842,13 @@ pub struct ConsumerRemovalProposals { #[prost(message, repeated, tag = "1")] pub pending: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ConsumerRemovalProposals { + const NAME: &'static str = "ConsumerRemovalProposals"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// AddressList contains a list of consensus addresses #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -758,6 +856,13 @@ pub struct AddressList { #[prost(bytes = "vec", repeated, tag = "1")] pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, } +impl ::prost::Name for AddressList { + const NAME: &'static str = "AddressList"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChannelToChain { @@ -766,6 +871,13 @@ pub struct ChannelToChain { #[prost(string, tag = "2")] pub chain_id: ::prost::alloc::string::String, } +impl ::prost::Name for ChannelToChain { + const NAME: &'static str = "ChannelToChain"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// VscUnbondingOps contains the IDs of unbonding operations that are waiting for /// at least one VSCMaturedPacket with vscID from a consumer chain #[allow(clippy::derive_partial_eq_without_eq)] @@ -776,6 +888,13 @@ pub struct VscUnbondingOps { #[prost(uint64, repeated, tag = "2")] pub unbonding_op_ids: ::prost::alloc::vec::Vec, } +impl ::prost::Name for VscUnbondingOps { + const NAME: &'static str = "VscUnbondingOps"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// UnbondingOp contains the ids of consumer chains that need to unbond before /// the unbonding operation with the given ID can unbond #[allow(clippy::derive_partial_eq_without_eq)] @@ -789,6 +908,13 @@ pub struct UnbondingOp { ::prost::alloc::string::String, >, } +impl ::prost::Name for UnbondingOp { + const NAME: &'static str = "UnbondingOp"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InitTimeoutTimestamp { @@ -797,6 +923,13 @@ pub struct InitTimeoutTimestamp { #[prost(uint64, tag = "2")] pub timestamp: u64, } +impl ::prost::Name for InitTimeoutTimestamp { + const NAME: &'static str = "InitTimeoutTimestamp"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VscSendTimestamp { @@ -807,6 +940,13 @@ pub struct VscSendTimestamp { super::super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for VscSendTimestamp { + const NAME: &'static str = "VscSendTimestamp"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ValidatorSetChangePackets is a pb list of ccv.ValidatorSetChangePacketData. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -814,6 +954,13 @@ pub struct ValidatorSetChangePackets { #[prost(message, repeated, tag = "1")] pub list: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ValidatorSetChangePackets { + const NAME: &'static str = "ValidatorSetChangePackets"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// MaturedUnbondingOps defines a list of ids corresponding to ids of matured /// unbonding operations. #[allow(clippy::derive_partial_eq_without_eq)] @@ -822,6 +969,13 @@ pub struct MaturedUnbondingOps { #[prost(uint64, repeated, tag = "1")] pub ids: ::prost::alloc::vec::Vec, } +impl ::prost::Name for MaturedUnbondingOps { + const NAME: &'static str = "MaturedUnbondingOps"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ExportedVscSendTimestamps is VscSendTimestamp with chainID info for exporting to genesis #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -831,6 +985,13 @@ pub struct ExportedVscSendTimestamp { #[prost(message, repeated, tag = "2")] pub vsc_send_timestamps: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ExportedVscSendTimestamp { + const NAME: &'static str = "ExportedVscSendTimestamp"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct KeyAssignmentReplacement { @@ -841,6 +1002,13 @@ pub struct KeyAssignmentReplacement { #[prost(int64, tag = "3")] pub power: i64, } +impl ::prost::Name for KeyAssignmentReplacement { + const NAME: &'static str = "KeyAssignmentReplacement"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Used to serialize the ValidatorConsumerPubKey index from key assignment /// ValidatorConsumerPubKey: (chainID, providerAddr consAddr) -> consumerKey /// tmprotocrypto.PublicKey @@ -854,6 +1022,13 @@ pub struct ValidatorConsumerPubKey { #[prost(message, optional, tag = "3")] pub consumer_key: ::core::option::Option<::tendermint_proto::crypto::PublicKey>, } +impl ::prost::Name for ValidatorConsumerPubKey { + const NAME: &'static str = "ValidatorConsumerPubKey"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Used to serialize the ValidatorConsumerAddr index from key assignment /// ValidatorByConsumerAddr: (chainID, consumerAddr consAddr) -> providerAddr /// consAddr @@ -867,6 +1042,13 @@ pub struct ValidatorByConsumerAddr { #[prost(bytes = "vec", tag = "3")] pub provider_addr: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ValidatorByConsumerAddr { + const NAME: &'static str = "ValidatorByConsumerAddr"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Used to serialize the ConsumerAddrsToPrune index from key assignment /// ConsumerAddrsToPrune: (chainID, vscID uint64) -> consumerAddrs AddressList #[allow(clippy::derive_partial_eq_without_eq)] @@ -879,45 +1061,108 @@ pub struct ConsumerAddrsToPrune { #[prost(message, optional, tag = "3")] pub consumer_addrs: ::core::option::Option, } +impl ::prost::Name for ConsumerAddrsToPrune { + const NAME: &'static str = "ConsumerAddrsToPrune"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerGenesisRequest { #[prost(string, tag = "1")] pub chain_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryConsumerGenesisRequest { + const NAME: &'static str = "QueryConsumerGenesisRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerGenesisResponse { #[prost(message, optional, tag = "1")] pub genesis_state: ::core::option::Option, } +impl ::prost::Name for QueryConsumerGenesisResponse { + const NAME: &'static str = "QueryConsumerGenesisResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainsRequest {} +impl ::prost::Name for QueryConsumerChainsRequest { + const NAME: &'static str = "QueryConsumerChainsRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainsResponse { #[prost(message, repeated, tag = "1")] pub chains: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryConsumerChainsResponse { + const NAME: &'static str = "QueryConsumerChainsResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainStartProposalsRequest {} +impl ::prost::Name for QueryConsumerChainStartProposalsRequest { + const NAME: &'static str = "QueryConsumerChainStartProposalsRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainStartProposalsResponse { #[prost(message, optional, tag = "1")] pub proposals: ::core::option::Option, } +impl ::prost::Name for QueryConsumerChainStartProposalsResponse { + const NAME: &'static str = "QueryConsumerChainStartProposalsResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainStopProposalsRequest {} +impl ::prost::Name for QueryConsumerChainStopProposalsRequest { + const NAME: &'static str = "QueryConsumerChainStopProposalsRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsumerChainStopProposalsResponse { #[prost(message, optional, tag = "1")] pub proposals: ::core::option::Option, } +impl ::prost::Name for QueryConsumerChainStopProposalsResponse { + const NAME: &'static str = "QueryConsumerChainStopProposalsResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Chain { @@ -926,6 +1171,13 @@ pub struct Chain { #[prost(string, tag = "2")] pub client_id: ::prost::alloc::string::String, } +impl ::prost::Name for Chain { + const NAME: &'static str = "Chain"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorConsumerAddrRequest { @@ -936,6 +1188,13 @@ pub struct QueryValidatorConsumerAddrRequest { #[prost(string, tag = "2")] pub provider_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryValidatorConsumerAddrRequest { + const NAME: &'static str = "QueryValidatorConsumerAddrRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorConsumerAddrResponse { @@ -943,6 +1202,13 @@ pub struct QueryValidatorConsumerAddrResponse { #[prost(string, tag = "1")] pub consumer_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryValidatorConsumerAddrResponse { + const NAME: &'static str = "QueryValidatorConsumerAddrResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorProviderAddrRequest { @@ -953,6 +1219,13 @@ pub struct QueryValidatorProviderAddrRequest { #[prost(string, tag = "2")] pub consumer_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryValidatorProviderAddrRequest { + const NAME: &'static str = "QueryValidatorProviderAddrRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorProviderAddrResponse { @@ -960,9 +1233,23 @@ pub struct QueryValidatorProviderAddrResponse { #[prost(string, tag = "1")] pub provider_address: ::prost::alloc::string::String, } +impl ::prost::Name for QueryValidatorProviderAddrResponse { + const NAME: &'static str = "QueryValidatorProviderAddrResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryThrottleStateRequest {} +impl ::prost::Name for QueryThrottleStateRequest { + const NAME: &'static str = "QueryThrottleStateRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryThrottleStateResponse { @@ -983,12 +1270,26 @@ pub struct QueryThrottleStateResponse { #[prost(message, repeated, tag = "4")] pub packets: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryThrottleStateResponse { + const NAME: &'static str = "QueryThrottleStateResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryThrottledConsumerPacketDataRequest { #[prost(string, tag = "1")] pub chain_id: ::prost::alloc::string::String, } +impl ::prost::Name for QueryThrottledConsumerPacketDataRequest { + const NAME: &'static str = "QueryThrottledConsumerPacketDataRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryThrottledConsumerPacketDataResponse { @@ -999,6 +1300,13 @@ pub struct QueryThrottledConsumerPacketDataResponse { #[prost(message, repeated, tag = "3")] pub packet_data_instances: ::prost::alloc::vec::Vec, } +impl ::prost::Name for QueryThrottledConsumerPacketDataResponse { + const NAME: &'static str = "QueryThrottledConsumerPacketDataResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// A query wrapper type for the global entry and data relevant to a throttled /// slash packet. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1009,6 +1317,13 @@ pub struct ThrottledSlashPacket { #[prost(message, optional, tag = "2")] pub data: ::core::option::Option, } +impl ::prost::Name for ThrottledSlashPacket { + const NAME: &'static str = "ThrottledSlashPacket"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ThrottledPacketDataWrapper contains either SlashPacketData or /// VSCMaturedPacketData #[allow(clippy::derive_partial_eq_without_eq)] @@ -1028,15 +1343,36 @@ pub mod throttled_packet_data_wrapper { VscMaturedPacket(super::super::super::v1::VscMaturedPacketData), } } +impl ::prost::Name for ThrottledPacketDataWrapper { + const NAME: &'static str = "ThrottledPacketDataWrapper"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRegisteredConsumerRewardDenomsRequest {} +impl ::prost::Name for QueryRegisteredConsumerRewardDenomsRequest { + const NAME: &'static str = "QueryRegisteredConsumerRewardDenomsRequest"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRegisteredConsumerRewardDenomsResponse { #[prost(string, repeated, tag = "1")] pub denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for QueryRegisteredConsumerRewardDenomsResponse { + const NAME: &'static str = "QueryRegisteredConsumerRewardDenomsResponse"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod query_client { @@ -2112,6 +2448,13 @@ pub struct GenesisState { #[prost(message, repeated, tag = "13")] pub exported_vsc_send_timestamps: ::prost::alloc::vec::Vec, } +impl ::prost::Name for GenesisState { + const NAME: &'static str = "GenesisState"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// The provider CCV module's knowledge of consumer state. /// /// Note this type is only used internally to the provider CCV module. @@ -2146,6 +2489,13 @@ pub struct ConsumerState { #[prost(message, repeated, tag = "8")] pub unbonding_ops_index: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ConsumerState { + const NAME: &'static str = "ConsumerState"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} /// ValsetUpdateIdToHeight defines the genesis information for the mapping /// of each valset udpate id to a block height #[allow(clippy::derive_partial_eq_without_eq)] @@ -2156,3 +2506,10 @@ pub struct ValsetUpdateIdToHeight { #[prost(uint64, tag = "2")] pub height: u64, } +impl ::prost::Name for ValsetUpdateIdToHeight { + const NAME: &'static str = "ValsetUpdateIdToHeight"; + const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.provider.v1.{}", Self::NAME) + } +} diff --git a/src/prost/interchain_security.ccv.v1.rs b/src/prost/interchain_security.ccv.v1.rs index 1ded3981..c072c5f1 100644 --- a/src/prost/interchain_security.ccv.v1.rs +++ b/src/prost/interchain_security.ccv.v1.rs @@ -17,6 +17,13 @@ pub struct ValidatorSetChangePacketData { #[prost(string, repeated, tag = "3")] pub slash_acks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ValidatorSetChangePacketData { + const NAME: &'static str = "ValidatorSetChangePacketData"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// This packet is sent from the consumer chain to the provider chain /// to notify that a VSC packet reached maturity on the consumer chain. #[allow(clippy::derive_partial_eq_without_eq)] @@ -26,6 +33,13 @@ pub struct VscMaturedPacketData { #[prost(uint64, tag = "1")] pub valset_update_id: u64, } +impl ::prost::Name for VscMaturedPacketData { + const NAME: &'static str = "VSCMaturedPacketData"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// This packet is sent from the consumer chain to the provider chain /// to request the slashing of a validator as a result of an infraction /// committed on the consumer chain. @@ -44,6 +58,13 @@ pub struct SlashPacketData { )] pub infraction: i32, } +impl ::prost::Name for SlashPacketData { + const NAME: &'static str = "SlashPacketData"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// ConsumerPacketData contains a consumer packet data and a type tag #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -64,6 +85,13 @@ pub mod consumer_packet_data { VscMaturedPacketData(super::VscMaturedPacketData), } } +impl ::prost::Name for ConsumerPacketData { + const NAME: &'static str = "ConsumerPacketData"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// Note this type is used during IBC handshake methods for both the consumer and provider #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -73,6 +101,13 @@ pub struct HandshakeMetadata { #[prost(string, tag = "2")] pub version: ::prost::alloc::string::String, } +impl ::prost::Name for HandshakeMetadata { + const NAME: &'static str = "HandshakeMetadata"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// ConsumerPacketData contains a consumer packet data and a type tag /// that is compatible with ICS v1 and v2 over the wire. It is not used for internal storage. #[allow(clippy::derive_partial_eq_without_eq)] @@ -94,6 +129,13 @@ pub mod consumer_packet_data_v1 { VscMaturedPacketData(super::VscMaturedPacketData), } } +impl ::prost::Name for ConsumerPacketDataV1 { + const NAME: &'static str = "ConsumerPacketDataV1"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// This packet is sent from the consumer chain to the provider chain /// It is backward compatible with the ICS v1 and v2 version of the packet. #[allow(clippy::derive_partial_eq_without_eq)] @@ -108,6 +150,13 @@ pub struct SlashPacketDataV1 { #[prost(enumeration = "InfractionType", tag = "3")] pub infraction: i32, } +impl ::prost::Name for SlashPacketDataV1 { + const NAME: &'static str = "SlashPacketDataV1"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// ConsumerPacketType indicates interchain security specific packet types. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] @@ -250,6 +299,13 @@ pub struct ConsumerParams { #[prost(string, repeated, tag = "12")] pub provider_reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +impl ::prost::Name for ConsumerParams { + const NAME: &'static str = "ConsumerParams"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// ConsumerGenesisState defines the CCV consumer chain genesis state. /// /// Note this type is referenced in both the consumer and provider CCV modules, @@ -304,6 +360,13 @@ pub struct ConsumerGenesisState { #[prost(bool, tag = "13")] pub pre_ccv: bool, } +impl ::prost::Name for ConsumerGenesisState { + const NAME: &'static str = "ConsumerGenesisState"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// HeightValsetUpdateID represents a mapping internal to the consumer CCV module /// AND used in shared consumer genesis state, which links a block height to each recv valset update id. #[allow(clippy::derive_partial_eq_without_eq)] @@ -314,6 +377,13 @@ pub struct HeightToValsetUpdateId { #[prost(uint64, tag = "2")] pub valset_update_id: u64, } +impl ::prost::Name for HeightToValsetUpdateId { + const NAME: &'static str = "HeightToValsetUpdateID"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// OutstandingDowntime defines the type used internally to the consumer CCV module, /// AND used in shared consumer genesis state, in order to not send multiple slashing /// requests for the same downtime infraction. @@ -323,6 +393,13 @@ pub struct OutstandingDowntime { #[prost(string, tag = "1")] pub validator_consensus_address: ::prost::alloc::string::String, } +impl ::prost::Name for OutstandingDowntime { + const NAME: &'static str = "OutstandingDowntime"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// LastTransmissionBlockHeight is the last time validator holding /// pools were transmitted to the provider chain. This type is used internally /// to the consumer CCV module AND used in shared consumer genesis state. @@ -332,6 +409,13 @@ pub struct LastTransmissionBlockHeight { #[prost(int64, tag = "1")] pub height: i64, } +impl ::prost::Name for LastTransmissionBlockHeight { + const NAME: &'static str = "LastTransmissionBlockHeight"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// MaturingVSCPacket represents a vsc packet that is maturing internal to the /// consumer CCV module, where the consumer has not yet relayed a VSCMatured packet /// back to the provider. This type is used internally to the consumer CCV module @@ -346,6 +430,13 @@ pub struct MaturingVscPacket { super::super::super::google::protobuf::Timestamp, >, } +impl ::prost::Name for MaturingVscPacket { + const NAME: &'static str = "MaturingVSCPacket"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} /// ConsumerPacketDataList is a list of consumer packet data packets. /// /// Note this type is is used internally to the consumer CCV module @@ -358,3 +449,10 @@ pub struct ConsumerPacketDataList { #[prost(message, repeated, tag = "1")] pub list: ::prost::alloc::vec::Vec, } +impl ::prost::Name for ConsumerPacketDataList { + const NAME: &'static str = "ConsumerPacketDataList"; + const PACKAGE: &'static str = "interchain_security.ccv.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("interchain_security.ccv.v1.{}", Self::NAME) + } +} diff --git a/src/prost/proto_descriptor.bin b/src/prost/proto_descriptor.bin index bb1bdf04..37d138a3 100644 Binary files a/src/prost/proto_descriptor.bin and b/src/prost/proto_descriptor.bin differ diff --git a/src/prost/stride.interchainquery.v1.rs b/src/prost/stride.interchainquery.v1.rs index 97ad0555..b13204f6 100644 --- a/src/prost/stride.interchainquery.v1.rs +++ b/src/prost/stride.interchainquery.v1.rs @@ -15,11 +15,25 @@ pub struct MsgSubmitQueryResponse { #[prost(string, tag = "6")] pub from_address: ::prost::alloc::string::String, } +impl ::prost::Name for MsgSubmitQueryResponse { + const NAME: &'static str = "MsgSubmitQueryResponse"; + const PACKAGE: &'static str = "stride.interchainquery.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("stride.interchainquery.v1.{}", Self::NAME) + } +} /// MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response /// type. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitQueryResponseResponse {} +impl ::prost::Name for MsgSubmitQueryResponseResponse { + const NAME: &'static str = "MsgSubmitQueryResponseResponse"; + const PACKAGE: &'static str = "stride.interchainquery.v1"; + fn full_name() -> ::prost::alloc::string::String { + ::prost::alloc::format!("stride.interchainquery.v1.{}", Self::NAME) + } +} /// Generated client implementations. #[cfg(feature = "client")] pub mod msg_client { diff --git a/tools/proto-compiler/src/cmd/compile.rs b/tools/proto-compiler/src/cmd/compile.rs index d819b5cd..3b97d062 100644 --- a/tools/proto-compiler/src/cmd/compile.rs +++ b/tools/proto-compiler/src/cmd/compile.rs @@ -126,6 +126,10 @@ impl CompileCmd { let attrs_serde_base64 = r#"#[cfg_attr(feature = "serde", serde(with = "crate::base64"))]"#; let attrs_jsonschema_str = r#"#[cfg_attr(all(feature = "json-schema", feature = "serde"), schemars(with = "String"))]"#; + // Automatically derive a `prost::Name` implementation. + let mut config = prost_build::Config::new(); + config.enable_type_names(); + tonic_build::configure() .build_client(true) .compile_well_known_types(true) @@ -204,7 +208,7 @@ impl CompileCmd { .type_attribute(".cosmos.config.v1", attrs_serde) .type_attribute(".cosmos.tx.config.v1", attrs_serde) .type_attribute(".cosmos.upgrade.v1beta1", attrs_serde) - .compile(&protos, &includes)?; + .compile_with_config(config, &protos, &includes)?; println!("[info ] Protos compiled successfully"); @@ -222,6 +226,10 @@ impl CompileCmd { "cosmos.staking.v1beta1.rs", &[ ("pub struct Validators", "pub struct ValidatorsVec"), + ( + "impl ::prost::Name for Validators {", + "impl ::prost::Name for ValidatorsVec {", + ), ("AllowList(Validators)", "AllowList(ValidatorsVec)"), ("DenyList(Validators)", "DenyList(ValidatorsVec)"), ],