diff --git a/provenance-sdk-proto/Cargo.toml b/provenance-sdk-proto/Cargo.toml index a448c2a..1c938f8 100644 --- a/provenance-sdk-proto/Cargo.toml +++ b/provenance-sdk-proto/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["blockchain", "cosmos", "proto", "provenance", "tendermint"] edition = "2021" [dependencies] -cosmos-sdk-proto = { version = "0.23", default-features = false } +cosmos-sdk-proto = { version = "0.24", default-features = false } prost = "0.13" prost-types = "0.13" # TODO this only needs to be included if grpc or grpc-transport are included diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs index 4236a93..f85b3fd 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.attribute.v1.rs @@ -374,8 +374,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -396,7 +396,7 @@ pub mod msg_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -603,7 +603,7 @@ pub mod msg_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] - pub trait Msg: Send + Sync + 'static { + pub trait Msg: std::marker::Send + std::marker::Sync + 'static { /// AddAttribute defines a method to verify a particular invariance. async fn add_attribute( &self, @@ -648,14 +648,14 @@ pub mod msg_server { } /// Msg defines the attribute module Msg service. #[derive(Debug)] - pub struct MsgServer { + pub struct MsgServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl MsgServer { + impl MsgServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -706,8 +706,8 @@ pub mod msg_server { impl tonic::codegen::Service> for MsgServer where T: Msg, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -1012,7 +1012,7 @@ pub mod msg_server { } } } - impl Clone for MsgServer { + impl Clone for MsgServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -1024,8 +1024,10 @@ pub mod msg_server { } } } - impl tonic::server::NamedService for MsgServer { - const NAME: &'static str = "provenance.attribute.v1.Msg"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.attribute.v1.Msg"; + impl tonic::server::NamedService for MsgServer { + const NAME: &'static str = SERVICE_NAME; } } /// QueryParamsRequest is the request type for the Query/Params RPC method. @@ -1196,8 +1198,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -1221,7 +1223,7 @@ pub mod query_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -1395,7 +1397,7 @@ pub mod query_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] - pub trait Query: Send + Sync + 'static { + pub trait Query: std::marker::Send + std::marker::Sync + 'static { /// Params queries params of the attribute module. async fn params( &self, @@ -1432,14 +1434,14 @@ pub mod query_server { } /// Query defines the gRPC querier service for attribute module. #[derive(Debug)] - pub struct QueryServer { + pub struct QueryServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl QueryServer { + impl QueryServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -1490,8 +1492,8 @@ pub mod query_server { impl tonic::codegen::Service> for QueryServer where T: Query, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -1746,7 +1748,7 @@ pub mod query_server { } } } - impl Clone for QueryServer { + impl Clone for QueryServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -1758,8 +1760,10 @@ pub mod query_server { } } } - impl tonic::server::NamedService for QueryServer { - const NAME: &'static str = "provenance.attribute.v1.Query"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.attribute.v1.Query"; + impl tonic::server::NamedService for QueryServer { + const NAME: &'static str = SERVICE_NAME; } } /// GenesisState defines the attribute module's genesis state. diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs index 1b6dc70..22009e8 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.marker.v1.rs @@ -930,8 +930,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -952,7 +952,7 @@ pub mod msg_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -1606,7 +1606,7 @@ pub mod msg_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] - pub trait Msg: Send + Sync + 'static { + pub trait Msg: std::marker::Send + std::marker::Sync + 'static { /// Finalize async fn finalize( &self, @@ -1782,14 +1782,14 @@ pub mod msg_server { } /// Msg defines the Marker Msg service. #[derive(Debug)] - pub struct MsgServer { + pub struct MsgServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl MsgServer { + impl MsgServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -1840,8 +1840,8 @@ pub mod msg_server { impl tonic::codegen::Service> for MsgServer where T: Msg, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -2969,7 +2969,7 @@ pub mod msg_server { } } } - impl Clone for MsgServer { + impl Clone for MsgServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -2981,8 +2981,10 @@ pub mod msg_server { } } } - impl tonic::server::NamedService for MsgServer { - const NAME: &'static str = "provenance.marker.v1.Msg"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.marker.v1.Msg"; + impl tonic::server::NamedService for MsgServer { + const NAME: &'static str = SERVICE_NAME; } } /// SIPrefix represents an International System of Units (SI) Prefix. @@ -3295,8 +3297,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -3320,7 +3322,7 @@ pub mod query_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -3563,7 +3565,7 @@ pub mod query_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] - pub trait Query: Send + Sync + 'static { + pub trait Query: std::marker::Send + std::marker::Sync + 'static { /// Params queries the parameters of x/bank module. async fn params( &self, @@ -3617,14 +3619,14 @@ pub mod query_server { } /// Query defines the gRPC querier service for marker module. #[derive(Debug)] - pub struct QueryServer { + pub struct QueryServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl QueryServer { + impl QueryServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -3675,8 +3677,8 @@ pub mod query_server { impl tonic::codegen::Service> for QueryServer where T: Query, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -4082,7 +4084,7 @@ pub mod query_server { } } } - impl Clone for QueryServer { + impl Clone for QueryServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -4094,8 +4096,10 @@ pub mod query_server { } } } - impl tonic::server::NamedService for QueryServer { - const NAME: &'static str = "provenance.marker.v1.Query"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.marker.v1.Query"; + impl tonic::server::NamedService for QueryServer { + const NAME: &'static str = SERVICE_NAME; } } /// MarkerTransferAuthorization gives the grantee permissions to execute diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs index 2f44f66..254f732 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.metadata.v1.rs @@ -1238,8 +1238,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -1260,7 +1260,7 @@ pub mod msg_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -1860,7 +1860,7 @@ pub mod msg_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] - pub trait Msg: Send + Sync + 'static { + pub trait Msg: std::marker::Send + std::marker::Sync + 'static { /// WriteScope adds or updates a scope. async fn write_scope( &self, @@ -2012,14 +2012,14 @@ pub mod msg_server { } /// Msg defines the Metadata Msg service. #[derive(Debug)] - pub struct MsgServer { + pub struct MsgServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl MsgServer { + impl MsgServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -2070,8 +2070,8 @@ pub mod msg_server { impl tonic::codegen::Service> for MsgServer where T: Msg, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -3067,7 +3067,7 @@ pub mod msg_server { } } } - impl Clone for MsgServer { + impl Clone for MsgServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -3079,8 +3079,10 @@ pub mod msg_server { } } } - impl tonic::server::NamedService for MsgServer { - const NAME: &'static str = "provenance.metadata.v1.Msg"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.metadata.v1.Msg"; + impl tonic::server::NamedService for MsgServer { + const NAME: &'static str = SERVICE_NAME; } } /// EventTxCompleted is an event message indicating that a TX has completed. @@ -4150,8 +4152,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -4175,7 +4177,7 @@ pub mod query_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -4829,7 +4831,7 @@ pub mod query_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] - pub trait Query: Send + Sync + 'static { + pub trait Query: std::marker::Send + std::marker::Sync + 'static { /// Params queries the parameters of x/metadata module. async fn params( &self, @@ -5052,14 +5054,14 @@ pub mod query_server { } /// Query defines the Metadata Query service. #[derive(Debug)] - pub struct QueryServer { + pub struct QueryServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl QueryServer { + impl QueryServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -5110,8 +5112,8 @@ pub mod query_server { impl tonic::codegen::Service> for QueryServer where T: Query, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -6088,7 +6090,7 @@ pub mod query_server { } } } - impl Clone for QueryServer { + impl Clone for QueryServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -6100,8 +6102,10 @@ pub mod query_server { } } } - impl tonic::server::NamedService for QueryServer { - const NAME: &'static str = "provenance.metadata.v1.Query"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.metadata.v1.Query"; + impl tonic::server::NamedService for QueryServer { + const NAME: &'static str = SERVICE_NAME; } } /// GenesisState defines the account module's genesis state. diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs index cc71bbc..d78efcc 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.msgfees.v1.rs @@ -151,8 +151,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -173,7 +173,7 @@ pub mod msg_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -367,7 +367,7 @@ pub mod msg_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] - pub trait Msg: Send + Sync + 'static { + pub trait Msg: std::marker::Send + std::marker::Sync + 'static { /// AssessCustomMsgFee endpoint executes the additional fee charges. /// This will only emit the event and not persist it to the keeper. Fees are handled with the custom msg fee handlers /// Use Case: smart contracts will be able to charge additional fees and direct partial funds to specified recipient @@ -416,14 +416,14 @@ pub mod msg_server { } /// Msg defines the msgfees Msg service. #[derive(Debug)] - pub struct MsgServer { + pub struct MsgServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl MsgServer { + impl MsgServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -474,8 +474,8 @@ pub mod msg_server { impl tonic::codegen::Service> for MsgServer where T: Msg, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -754,7 +754,7 @@ pub mod msg_server { } } } - impl Clone for MsgServer { + impl Clone for MsgServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -766,8 +766,10 @@ pub mod msg_server { } } } - impl tonic::server::NamedService for MsgServer { - const NAME: &'static str = "provenance.msgfees.v1.Msg"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.msgfees.v1.Msg"; + impl tonic::server::NamedService for MsgServer { + const NAME: &'static str = SERVICE_NAME; } } /// Params defines the set of params for the msgfees module. @@ -927,8 +929,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -952,7 +954,7 @@ pub mod query_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -1062,7 +1064,7 @@ pub mod query_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] - pub trait Query: Send + Sync + 'static { + pub trait Query: std::marker::Send + std::marker::Sync + 'static { /// Params queries the parameters for x/msgfees async fn params( &self, @@ -1081,14 +1083,14 @@ pub mod query_server { } /// Query defines the gRPC querier service for marker module. #[derive(Debug)] - pub struct QueryServer { + pub struct QueryServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl QueryServer { + impl QueryServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -1139,8 +1141,8 @@ pub mod query_server { impl tonic::codegen::Service> for QueryServer where T: Query, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -1286,7 +1288,7 @@ pub mod query_server { } } } - impl Clone for QueryServer { + impl Clone for QueryServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -1298,8 +1300,10 @@ pub mod query_server { } } } - impl tonic::server::NamedService for QueryServer { - const NAME: &'static str = "provenance.msgfees.v1.Query"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.msgfees.v1.Query"; + impl tonic::server::NamedService for QueryServer { + const NAME: &'static str = SERVICE_NAME; } } /// GenesisState contains a set of msg fees, persisted from the store diff --git a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs index ea7348a..3107dda 100644 --- a/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs +++ b/provenance-sdk-proto/src/prost/provenance-sdk/provenance.name.v1.rs @@ -207,8 +207,8 @@ pub mod msg_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -229,7 +229,7 @@ pub mod msg_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { MsgClient::new(InterceptedService::new(inner, interceptor)) } @@ -370,7 +370,7 @@ pub mod msg_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with MsgServer. #[async_trait] - pub trait Msg: Send + Sync + 'static { + pub trait Msg: std::marker::Send + std::marker::Sync + 'static { /// BindName binds a name to an address under a root name. async fn bind_name( &self, @@ -399,14 +399,14 @@ pub mod msg_server { } /// Msg defines the bank Msg service. #[derive(Debug)] - pub struct MsgServer { + pub struct MsgServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl MsgServer { + impl MsgServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -457,8 +457,8 @@ pub mod msg_server { impl tonic::codegen::Service> for MsgServer where T: Msg, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -672,7 +672,7 @@ pub mod msg_server { } } } - impl Clone for MsgServer { + impl Clone for MsgServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -684,8 +684,10 @@ pub mod msg_server { } } } - impl tonic::server::NamedService for MsgServer { - const NAME: &'static str = "provenance.name.v1.Msg"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.name.v1.Msg"; + impl tonic::server::NamedService for MsgServer { + const NAME: &'static str = SERVICE_NAME; } } /// QueryParamsRequest is the request type for the Query/Params RPC method. @@ -772,8 +774,8 @@ pub mod query_client { where T: tonic::client::GrpcService, T::Error: Into, - T::ResponseBody: Body + Send + 'static, - ::Error: Into + Send, + T::ResponseBody: Body + std::marker::Send + 'static, + ::Error: Into + std::marker::Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); @@ -797,7 +799,7 @@ pub mod query_client { >, >, >>::Error: - Into + Send + Sync, + Into + std::marker::Send + std::marker::Sync, { QueryClient::new(InterceptedService::new(inner, interceptor)) } @@ -900,7 +902,7 @@ pub mod query_server { use tonic::codegen::*; /// Generated trait containing gRPC methods that should be implemented for use with QueryServer. #[async_trait] - pub trait Query: Send + Sync + 'static { + pub trait Query: std::marker::Send + std::marker::Sync + 'static { /// Params queries params of the name module. async fn params( &self, @@ -919,14 +921,14 @@ pub mod query_server { } /// Query defines the gRPC querier service for distribution module. #[derive(Debug)] - pub struct QueryServer { + pub struct QueryServer { inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - impl QueryServer { + impl QueryServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } @@ -977,8 +979,8 @@ pub mod query_server { impl tonic::codegen::Service> for QueryServer where T: Query, - B: Body + Send + 'static, - B::Error: Into + Send + 'static, + B: Body + std::marker::Send + 'static, + B::Error: Into + std::marker::Send + 'static, { type Response = http::Response; type Error = std::convert::Infallible; @@ -1119,7 +1121,7 @@ pub mod query_server { } } } - impl Clone for QueryServer { + impl Clone for QueryServer { fn clone(&self) -> Self { let inner = self.inner.clone(); Self { @@ -1131,8 +1133,10 @@ pub mod query_server { } } } - impl tonic::server::NamedService for QueryServer { - const NAME: &'static str = "provenance.name.v1.Query"; + /// Generated gRPC service name + pub const SERVICE_NAME: &str = "provenance.name.v1.Query"; + impl tonic::server::NamedService for QueryServer { + const NAME: &'static str = SERVICE_NAME; } } /// GenesisState defines the name module's genesis state.