Skip to content

Commit

Permalink
Merge tag 'v0.46.0' into luca_joss/update-ibc-go-commit
Browse files Browse the repository at this point in the history
ibc-proto-rs v0.46.0

June 3rd, 2024

This release only bumps `tendermint-proto` to v0.37.

BREAKING CHANGES:

- Update `tendermint-proto` to v0.37 ([#215](#215))
  • Loading branch information
ljoss17 committed Jul 23, 2024
2 parents 4c4e095 + a1a4716 commit 7ccb9af
Show file tree
Hide file tree
Showing 70 changed files with 3,346 additions and 876 deletions.
1 change: 1 addition & 0 deletions .changelog/v0.45.0/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))
2 changes: 2 additions & 0 deletions .changelog/v0.45.0/breaking-changes/210-borsh-v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Update `borsh` to v1
([\#210](https://github.com/cosmos/ibc-proto-rs/pull/210))
1 change: 1 addition & 0 deletions .changelog/v0.45.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This release updates `tonic` to v0.11.0 and `borsh` to v1.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Update `tendermint-proto` to v0.37
([#215](https://github.com/cosmos/ibc-proto-rs/issues/215))
3 changes: 3 additions & 0 deletions .changelog/v0.46.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*June 3rd, 2024*

This release only bumps `tendermint-proto` to v0.37.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# CHANGELOG

## v0.46.0

*June 3rd, 2024*

This release only bumps `tendermint-proto` to v0.37.

### BREAKING CHANGES

- Update `tendermint-proto` to v0.37 ([#215](https://github.com/cosmos/ibc-proto-rs/issues/215))

## v0.45.0

*May 30th, 2024*

This release updates `tonic` to v0.11.0 and `borsh` to v1.

### BREAKING CHANGES

- Update `tonic` to v0.11.0 ([#195](https://github.com/cosmos/ibc-proto-rs/pull/195))
- Update `borsh` to v1 ([\#210](https://github.com/cosmos/ibc-proto-rs/pull/210))

## v0.44.0

*April 25th, 2024*
Expand Down
8 changes: 2 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ exposed.

Our release process is as follows:

0. Bump the version in `Cargo.toml`.
1. Update the [changelog](#changelog) to reflect and summarize all changes in
the release. This involves:
1. Running `unclog build -u` and copy pasting the output at the top
Expand All @@ -228,13 +229,8 @@ Our release process is as follows:
2. Running `unclog release --version vX.Y.Z --editor <editor>` to create a
summary of all of the changes in this release.
3. Committing the updated `CHANGELOG.md` file and `.changelog` directory to the repo.
2. Push this to a branch `release/vX.Y.Z` according to the version number of
3. Push this to a branch `release/vX.Y.Z` according to the version number of
the anticipated release (e.g. `release/v0.18.0`) and open a **draft PR**.
3. Bump all relevant versions in the codebase to the new version and push these
changes to the release PR. This includes:
1. All `Cargo.toml` files (making sure dependencies' versions are updated too).
2. All crates' `lib.rs` files documentation references' `html_root_url`
parameters must point to the new version.
4. Run `cargo doc --all-features --open` locally to double-check that all the
documentation compiles and is up-to-date and coherent. Fix any potential
issues here and push them to the release PR.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-proto"
version = "0.44.0"
version = "0.46.0"
authors = ["Informal Systems <hello@informal.systems>"]
edition = "2021"
license = "Apache-2.0"
Expand Down Expand Up @@ -45,10 +45,10 @@ scale-info = { version = "2.1.2", default-features = false, features = [

## Optional: enabled by the `borsh` feature
## For borsh encode or decode, needs to track `anchor-lang` and `near-sdk-rs` borsh version
borsh = { version = "0.10", default-features = false, optional = true }
borsh = { version = "1", default-features = false, features = ["derive"], optional = true }

[dependencies.tendermint-proto]
version = "0.36"
version = "0.37"
default-features = false

[dev-dependencies]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
![Rust Stable][rustc-image]
![Rust 1.56.1+][rustc-version]

Rust crate for interacting with Cosmos SDK IBC structs.
Rust Protobuf definitions and gRPC clients for interacting with Cosmos SDK, IBC and Interchain Security.

This repository maintains all the data structures relevant for interacting with on-chain IBC data.

Whether you're building an IBC relayer, IBC modules, or any client software that consumes IBC data structures in Rust, you're at the right place.


Expand Down
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
9 changes: 2 additions & 7 deletions src/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ pub mod protobuf {

#[cfg(feature = "borsh")]
impl borsh::BorshSerialize for Any {
fn serialize<W: borsh::maybestd::io::Write>(
&self,
writer: &mut W,
) -> borsh::maybestd::io::Result<()> {
fn serialize<W: borsh::io::Write>(&self, writer: &mut W) -> borsh::io::Result<()> {
let inner_any = InnerAny {
type_url: self.type_url.clone(),
value: self.value.clone(),
Expand All @@ -272,9 +269,7 @@ pub mod protobuf {

#[cfg(feature = "borsh")]
impl borsh::BorshDeserialize for Any {
fn deserialize_reader<R: borsh::maybestd::io::Read>(
reader: &mut R,
) -> borsh::maybestd::io::Result<Self> {
fn deserialize_reader<R: borsh::io::Read>(reader: &mut R) -> borsh::io::Result<Self> {
let inner_any = InnerAny::deserialize_reader(reader)?;

Ok(Any {
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

0 comments on commit 7ccb9af

Please sign in to comment.