Skip to content

Commit

Permalink
chore: bump cosmos-sdk-proto
Browse files Browse the repository at this point in the history
  • Loading branch information
scirner22 committed Aug 29, 2024
1 parent dc789e4 commit 42f14e0
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 111 deletions.
2 changes: 1 addition & 1 deletion provenance-sdk-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ pub mod msg_client {
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Expand All @@ -396,7 +396,7 @@ pub mod msg_client {
>,
>,
<T as tonic::codegen::Service<http::Request<tonic::body::BoxBody>>>::Error:
Into<StdError> + Send + Sync,
Into<StdError> + std::marker::Send + std::marker::Sync,
{
MsgClient::new(InterceptedService::new(inner, interceptor))
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -648,14 +648,14 @@ pub mod msg_server {
}
/// Msg defines the attribute module Msg service.
#[derive(Debug)]
pub struct MsgServer<T: Msg> {
pub struct MsgServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T: Msg> MsgServer<T> {
impl<T> MsgServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
Expand Down Expand Up @@ -706,8 +706,8 @@ pub mod msg_server {
impl<T, B> tonic::codegen::Service<http::Request<B>> for MsgServer<T>
where
T: Msg,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::BoxBody>;
type Error = std::convert::Infallible;
Expand Down Expand Up @@ -1012,7 +1012,7 @@ pub mod msg_server {
}
}
}
impl<T: Msg> Clone for MsgServer<T> {
impl<T> Clone for MsgServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
Expand All @@ -1024,8 +1024,10 @@ pub mod msg_server {
}
}
}
impl<T: Msg> tonic::server::NamedService for MsgServer<T> {
const NAME: &'static str = "provenance.attribute.v1.Msg";
/// Generated gRPC service name
pub const SERVICE_NAME: &str = "provenance.attribute.v1.Msg";
impl<T> tonic::server::NamedService for MsgServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}
/// QueryParamsRequest is the request type for the Query/Params RPC method.
Expand Down Expand Up @@ -1196,8 +1198,8 @@ pub mod query_client {
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Expand All @@ -1221,7 +1223,7 @@ pub mod query_client {
>,
>,
<T as tonic::codegen::Service<http::Request<tonic::body::BoxBody>>>::Error:
Into<StdError> + Send + Sync,
Into<StdError> + std::marker::Send + std::marker::Sync,
{
QueryClient::new(InterceptedService::new(inner, interceptor))
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1432,14 +1434,14 @@ pub mod query_server {
}
/// Query defines the gRPC querier service for attribute module.
#[derive(Debug)]
pub struct QueryServer<T: Query> {
pub struct QueryServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T: Query> QueryServer<T> {
impl<T> QueryServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
Expand Down Expand Up @@ -1490,8 +1492,8 @@ pub mod query_server {
impl<T, B> tonic::codegen::Service<http::Request<B>> for QueryServer<T>
where
T: Query,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::BoxBody>;
type Error = std::convert::Infallible;
Expand Down Expand Up @@ -1746,7 +1748,7 @@ pub mod query_server {
}
}
}
impl<T: Query> Clone for QueryServer<T> {
impl<T> Clone for QueryServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
Expand All @@ -1758,8 +1760,10 @@ pub mod query_server {
}
}
}
impl<T: Query> tonic::server::NamedService for QueryServer<T> {
const NAME: &'static str = "provenance.attribute.v1.Query";
/// Generated gRPC service name
pub const SERVICE_NAME: &str = "provenance.attribute.v1.Query";
impl<T> tonic::server::NamedService for QueryServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}
/// GenesisState defines the attribute module's genesis state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,8 @@ pub mod msg_client {
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Expand All @@ -952,7 +952,7 @@ pub mod msg_client {
>,
>,
<T as tonic::codegen::Service<http::Request<tonic::body::BoxBody>>>::Error:
Into<StdError> + Send + Sync,
Into<StdError> + std::marker::Send + std::marker::Sync,
{
MsgClient::new(InterceptedService::new(inner, interceptor))
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1782,14 +1782,14 @@ pub mod msg_server {
}
/// Msg defines the Marker Msg service.
#[derive(Debug)]
pub struct MsgServer<T: Msg> {
pub struct MsgServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T: Msg> MsgServer<T> {
impl<T> MsgServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
Expand Down Expand Up @@ -1840,8 +1840,8 @@ pub mod msg_server {
impl<T, B> tonic::codegen::Service<http::Request<B>> for MsgServer<T>
where
T: Msg,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::BoxBody>;
type Error = std::convert::Infallible;
Expand Down Expand Up @@ -2969,7 +2969,7 @@ pub mod msg_server {
}
}
}
impl<T: Msg> Clone for MsgServer<T> {
impl<T> Clone for MsgServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
Expand All @@ -2981,8 +2981,10 @@ pub mod msg_server {
}
}
}
impl<T: Msg> tonic::server::NamedService for MsgServer<T> {
const NAME: &'static str = "provenance.marker.v1.Msg";
/// Generated gRPC service name
pub const SERVICE_NAME: &str = "provenance.marker.v1.Msg";
impl<T> tonic::server::NamedService for MsgServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}
/// SIPrefix represents an International System of Units (SI) Prefix.
Expand Down Expand Up @@ -3295,8 +3297,8 @@ pub mod query_client {
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Expand All @@ -3320,7 +3322,7 @@ pub mod query_client {
>,
>,
<T as tonic::codegen::Service<http::Request<tonic::body::BoxBody>>>::Error:
Into<StdError> + Send + Sync,
Into<StdError> + std::marker::Send + std::marker::Sync,
{
QueryClient::new(InterceptedService::new(inner, interceptor))
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -3617,14 +3619,14 @@ pub mod query_server {
}
/// Query defines the gRPC querier service for marker module.
#[derive(Debug)]
pub struct QueryServer<T: Query> {
pub struct QueryServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T: Query> QueryServer<T> {
impl<T> QueryServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
Expand Down Expand Up @@ -3675,8 +3677,8 @@ pub mod query_server {
impl<T, B> tonic::codegen::Service<http::Request<B>> for QueryServer<T>
where
T: Query,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::BoxBody>;
type Error = std::convert::Infallible;
Expand Down Expand Up @@ -4082,7 +4084,7 @@ pub mod query_server {
}
}
}
impl<T: Query> Clone for QueryServer<T> {
impl<T> Clone for QueryServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
Expand All @@ -4094,8 +4096,10 @@ pub mod query_server {
}
}
}
impl<T: Query> tonic::server::NamedService for QueryServer<T> {
const NAME: &'static str = "provenance.marker.v1.Query";
/// Generated gRPC service name
pub const SERVICE_NAME: &str = "provenance.marker.v1.Query";
impl<T> tonic::server::NamedService for QueryServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}
/// MarkerTransferAuthorization gives the grantee permissions to execute
Expand Down
Loading

0 comments on commit 42f14e0

Please sign in to comment.