Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tonic requirement from 0.10 to 0.11 #195

Merged
merged 7 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/unreleased/breaking-changes/195-tonic-0.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Update `tonic` to v0.11.0 ([#195](https://github.com/cosmos/ibc-proto-rs/pull/195))
10 changes: 6 additions & 4 deletions scripts/sync-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ COSMOS_ICS_DIR=$(mktemp -d /tmp/interchain-security-XXXXXXXX)

pushd "$COSMOS_ICS_DIR"
git clone "$COSMOS_ICS_GIT" .
git checkout -b "$INTERCHAIN_SECURITY_COMMIT" "$INTERCHAIN_SECURITY_COMMIT"
git checkout "$INTERCHAIN_SECURITY_COMMIT"

cd proto
buf mod prune
buf mod update
buf export -v -o ../proto-include
popd
Expand All @@ -138,9 +139,10 @@ COSMOS_SDK_DIR=$(mktemp -d /tmp/cosmos-sdk-XXXXXXXX)

pushd "$COSMOS_SDK_DIR"
git clone "$COSMOS_SDK_GIT" .
git checkout -b "$COSMOS_SDK_COMMIT" "$COSMOS_SDK_COMMIT"
git checkout "$COSMOS_SDK_COMMIT"

cd proto
buf mod prune
buf mod update
buf export -v -o ../proto-include
popd
Expand All @@ -164,7 +166,7 @@ IBC_GO_DIR=$(mktemp -d /tmp/ibc-go-XXXXXXXX)

pushd "$IBC_GO_DIR"
git clone "$IBC_GO_GIT" .
git checkout -b "$IBC_GO_COMMIT" "$IBC_GO_COMMIT"
git checkout "$IBC_GO_COMMIT"

cd proto
buf export -v -o ../proto-include
Expand All @@ -174,7 +176,7 @@ NFT_TRANSFER_DIR=$(mktemp -d /tmp/nft-transfer-XXXXXXXX)

pushd "$NFT_TRANSFER_DIR"
git clone "$NFT_TRANSFER_GIT" .
git checkout -b "$NFT_TRANSFER_COMMIT" "$NFT_TRANSFER_COMMIT"
git checkout "$NFT_TRANSFER_COMMIT"

cd proto
buf export -v -o ../proto-include
Expand Down
16 changes: 13 additions & 3 deletions src/prost/cosmos.app.v1alpha1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This file is @generated by prost-build.
/// ModuleDescriptor describes an app module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -27,7 +28,10 @@ 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)
"cosmos.app.v1alpha1.ModuleDescriptor".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/cosmos.app.v1alpha1.ModuleDescriptor".into()
}
}
/// PackageReference is a reference to a protobuf package used by a module.
Expand Down Expand Up @@ -79,7 +83,10 @@ 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)
"cosmos.app.v1alpha1.PackageReference".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/cosmos.app.v1alpha1.PackageReference".into()
}
}
/// MigrateFromInfo is information on a module version that a newer module
Expand All @@ -96,6 +103,9 @@ 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)
"cosmos.app.v1alpha1.MigrateFromInfo".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/cosmos.app.v1alpha1.MigrateFromInfo".into()
}
}
11 changes: 9 additions & 2 deletions src/prost/cosmos.auth.module.v1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This file is @generated by prost-build.
/// Module is the config object for the auth module.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand All @@ -16,7 +17,10 @@ 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)
"cosmos.auth.module.v1.Module".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/cosmos.auth.module.v1.Module".into()
}
}
/// ModuleAccountPermission represents permissions for a module account.
Expand All @@ -35,6 +39,9 @@ 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)
"cosmos.auth.module.v1.ModuleAccountPermission".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/cosmos.auth.module.v1.ModuleAccountPermission".into()
}
}
Loading
Loading