From b9e9592aeff2f8aba62b027ca00386ca211fa077 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:07:30 -0800 Subject: [PATCH 1/6] Update CHANGELOG.md and .changelog dir --- .../breaking-changes/279-remove-legacy-api.md | 0 .../382-refactor-get-and-store-methods.md | 0 .../breaking-changes/418-host-timestamp.md | 0 .../bug-fixes/403-fix-error-todos.md | 0 .../feature/415-remove-val-exec-ctx.md | 0 .../430-adapt-unit-tests-to-val-exec-ctx.md | 0 .../432-impl-mock-validate-self-client.md | 0 .../434-doc-validate-self-client.md | 0 .../440-refactor-conn-unit-tests.md | 0 .changelog/v0.29.0/summary.md | 5 +++ CHANGELOG.md | 43 +++++++++++++++++++ 11 files changed, 48 insertions(+) rename .changelog/{unreleased => v0.29.0}/breaking-changes/279-remove-legacy-api.md (100%) rename .changelog/{unreleased => v0.29.0}/breaking-changes/382-refactor-get-and-store-methods.md (100%) rename .changelog/{unreleased => v0.29.0}/breaking-changes/418-host-timestamp.md (100%) rename .changelog/{unreleased => v0.29.0}/bug-fixes/403-fix-error-todos.md (100%) rename .changelog/{unreleased => v0.29.0}/feature/415-remove-val-exec-ctx.md (100%) rename .changelog/{unreleased => v0.29.0}/improvement/430-adapt-unit-tests-to-val-exec-ctx.md (100%) rename .changelog/{unreleased => v0.29.0}/improvements/432-impl-mock-validate-self-client.md (100%) rename .changelog/{unreleased => v0.29.0}/improvements/434-doc-validate-self-client.md (100%) rename .changelog/{unreleased => v0.29.0}/improvements/440-refactor-conn-unit-tests.md (100%) create mode 100644 .changelog/v0.29.0/summary.md diff --git a/.changelog/unreleased/breaking-changes/279-remove-legacy-api.md b/.changelog/v0.29.0/breaking-changes/279-remove-legacy-api.md similarity index 100% rename from .changelog/unreleased/breaking-changes/279-remove-legacy-api.md rename to .changelog/v0.29.0/breaking-changes/279-remove-legacy-api.md diff --git a/.changelog/unreleased/breaking-changes/382-refactor-get-and-store-methods.md b/.changelog/v0.29.0/breaking-changes/382-refactor-get-and-store-methods.md similarity index 100% rename from .changelog/unreleased/breaking-changes/382-refactor-get-and-store-methods.md rename to .changelog/v0.29.0/breaking-changes/382-refactor-get-and-store-methods.md diff --git a/.changelog/unreleased/breaking-changes/418-host-timestamp.md b/.changelog/v0.29.0/breaking-changes/418-host-timestamp.md similarity index 100% rename from .changelog/unreleased/breaking-changes/418-host-timestamp.md rename to .changelog/v0.29.0/breaking-changes/418-host-timestamp.md diff --git a/.changelog/unreleased/bug-fixes/403-fix-error-todos.md b/.changelog/v0.29.0/bug-fixes/403-fix-error-todos.md similarity index 100% rename from .changelog/unreleased/bug-fixes/403-fix-error-todos.md rename to .changelog/v0.29.0/bug-fixes/403-fix-error-todos.md diff --git a/.changelog/unreleased/feature/415-remove-val-exec-ctx.md b/.changelog/v0.29.0/feature/415-remove-val-exec-ctx.md similarity index 100% rename from .changelog/unreleased/feature/415-remove-val-exec-ctx.md rename to .changelog/v0.29.0/feature/415-remove-val-exec-ctx.md diff --git a/.changelog/unreleased/improvement/430-adapt-unit-tests-to-val-exec-ctx.md b/.changelog/v0.29.0/improvement/430-adapt-unit-tests-to-val-exec-ctx.md similarity index 100% rename from .changelog/unreleased/improvement/430-adapt-unit-tests-to-val-exec-ctx.md rename to .changelog/v0.29.0/improvement/430-adapt-unit-tests-to-val-exec-ctx.md diff --git a/.changelog/unreleased/improvements/432-impl-mock-validate-self-client.md b/.changelog/v0.29.0/improvements/432-impl-mock-validate-self-client.md similarity index 100% rename from .changelog/unreleased/improvements/432-impl-mock-validate-self-client.md rename to .changelog/v0.29.0/improvements/432-impl-mock-validate-self-client.md diff --git a/.changelog/unreleased/improvements/434-doc-validate-self-client.md b/.changelog/v0.29.0/improvements/434-doc-validate-self-client.md similarity index 100% rename from .changelog/unreleased/improvements/434-doc-validate-self-client.md rename to .changelog/v0.29.0/improvements/434-doc-validate-self-client.md diff --git a/.changelog/unreleased/improvements/440-refactor-conn-unit-tests.md b/.changelog/v0.29.0/improvements/440-refactor-conn-unit-tests.md similarity index 100% rename from .changelog/unreleased/improvements/440-refactor-conn-unit-tests.md rename to .changelog/v0.29.0/improvements/440-refactor-conn-unit-tests.md diff --git a/.changelog/v0.29.0/summary.md b/.changelog/v0.29.0/summary.md new file mode 100644 index 000000000..a691f6f66 --- /dev/null +++ b/.changelog/v0.29.0/summary.md @@ -0,0 +1,5 @@ +This release includes the latest Tendermint-rs v0.29.0 and replaces the +old API with the new `ValidationContext`/`ExecutionContext` API as the default. +Additionally, unit tests have been updated to work with the new API. + +There are consensus-breaking changes. diff --git a/CHANGELOG.md b/CHANGELOG.md index 690c70284..26d7c1799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,48 @@ # CHANGELOG +## v0.29.0 + +*February 22, 2023* + +This release includes the latest Tendermint-rs v0.29.0 and replaces the +old API with the new `ValidationContext`/`ExecutionContext` API as the default. +Additionally, unit tests have been updated to work with the new API. + +There are consensus-breaking changes. + +### BREAKING CHANGES + +- Remove Reader and Keeper API + ([#279](https://github.com/cosmos/ibc-rs/issues/279)) +- Refactor `get_*` and `store_*` methods to take `*Path` structs instead + ([#382](https://github.com/cosmos/ibc-rs/issues/382)) +- Make `ValidationContext::host_timestamp()` abstract and remove + `ValidationContext::pending_host_consensus_state()` + ([#418](https://github.com/cosmos/ibc-rs/issues/418)) + +### BUG FIXES + +- Mend error variant todo!()s wherever tendermint client calls the + "consensus_state" method + ([#403](https://github.com/cosmos/ibc-rs/issues/403)) + +### FEATURE + +- Remove `val_exec_ctx` feature flag + ([#415](https://github.com/cosmos/ibc-rs/issues/415)) + +### IMPROVEMENTS + +- Make all unit tests test the ValidationContext/ExecutionContext API + ([#430](https://github.com/cosmos/ibc-rs/issues/430)) +- Add an implementation of `validate_self_client` for the mock client + ([#432](https://github.com/cosmos/ibc-rs/issues/432)) +- Add a docstring and rename the `validate_self_client` argument for improved + code documentation and readability + ([#434](https://github.com/cosmos/ibc-rs/issues/434)) +- Refactor connection handler unit tests to adapt with new Validation/Execution API + ([#440](https://github.com/cosmos/ibc-rs/issues/440)) + ## v0.28.0 *February 9, 2023* From 28165b014369c47fa707200f94d9383153dfab54 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:10:10 -0800 Subject: [PATCH 2/6] Bump version --- crates/ibc/Cargo.toml | 2 +- crates/ibc/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ibc/Cargo.toml b/crates/ibc/Cargo.toml index 4a8e72169..cc9adc590 100644 --- a/crates/ibc/Cargo.toml +++ b/crates/ibc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ibc" -version = "0.28.0" +version = "0.29.0" edition = "2021" license = "Apache-2.0" readme = "README.md" diff --git a/crates/ibc/src/lib.rs b/crates/ibc/src/lib.rs index a16c81d55..7d1831ff2 100644 --- a/crates/ibc/src/lib.rs +++ b/crates/ibc/src/lib.rs @@ -13,7 +13,7 @@ #![forbid(unsafe_code)] // https://github.com/cosmos/ibc-rs/issues/342 #![allow(clippy::result_large_err)] -#![doc(html_root_url = "https://docs.rs/ibc/0.28.0")] +#![doc(html_root_url = "https://docs.rs/ibc/0.29.0")] //! This library implements the InterBlockchain Communication (IBC) protocol in Rust. IBC is //! a distributed protocol that enables communication between distinct sovereign blockchains. //! Loose analogies may be drawn between the IBC protocol and the TCP/UDP protocols that enable From e6d8b2f4e92a25edc06947f266bfb45dfcbe86b5 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:17:09 -0800 Subject: [PATCH 3/6] Fix improvements dir --- .../430-adapt-unit-tests-to-val-exec-ctx.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .changelog/v0.29.0/{improvement => improvements}/430-adapt-unit-tests-to-val-exec-ctx.md (100%) diff --git a/.changelog/v0.29.0/improvement/430-adapt-unit-tests-to-val-exec-ctx.md b/.changelog/v0.29.0/improvements/430-adapt-unit-tests-to-val-exec-ctx.md similarity index 100% rename from .changelog/v0.29.0/improvement/430-adapt-unit-tests-to-val-exec-ctx.md rename to .changelog/v0.29.0/improvements/430-adapt-unit-tests-to-val-exec-ctx.md From a87c1a2707f0455c9bda3c56dc3e218d5e356728 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:25:20 -0800 Subject: [PATCH 4/6] Update CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philippe Laferrière Signed-off-by: Farhad Shabani --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d7c1799..89653e0a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,8 @@ *February 22, 2023* -This release includes the latest Tendermint-rs v0.29.0 and replaces the -old API with the new `ValidationContext`/`ExecutionContext` API as the default. +This release includes the latest Tendermint-rs v0.29.0 and removes the +`Reader` and `Keeper` API in favor of the new `ValidationContext`/`ExecutionContext` API as the default. Additionally, unit tests have been updated to work with the new API. There are consensus-breaking changes. From 4011edbc1bf6de265a0b90b5fc1c68baee67c70a Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:26:04 -0800 Subject: [PATCH 5/6] Update .changelog/v0.29.0/summary.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philippe Laferrière Signed-off-by: Farhad Shabani --- .changelog/v0.29.0/summary.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changelog/v0.29.0/summary.md b/.changelog/v0.29.0/summary.md index a691f6f66..2881444be 100644 --- a/.changelog/v0.29.0/summary.md +++ b/.changelog/v0.29.0/summary.md @@ -1,5 +1,5 @@ -This release includes the latest Tendermint-rs v0.29.0 and replaces the -old API with the new `ValidationContext`/`ExecutionContext` API as the default. +This release includes the latest Tendermint-rs v0.29.0 and removes the +`Reader` and `Keeper` API in favor of the new `ValidationContext`/`ExecutionContext` API as the default. Additionally, unit tests have been updated to work with the new API. There are consensus-breaking changes. From f28f09d86fe41ad419cb69975d43bd36b38828f7 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Wed, 22 Feb 2023 06:27:03 -0800 Subject: [PATCH 6/6] Remove html_root_url --- crates/ibc/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/ibc/src/lib.rs b/crates/ibc/src/lib.rs index 7d1831ff2..9f98fc6f7 100644 --- a/crates/ibc/src/lib.rs +++ b/crates/ibc/src/lib.rs @@ -13,7 +13,6 @@ #![forbid(unsafe_code)] // https://github.com/cosmos/ibc-rs/issues/342 #![allow(clippy::result_large_err)] -#![doc(html_root_url = "https://docs.rs/ibc/0.29.0")] //! This library implements the InterBlockchain Communication (IBC) protocol in Rust. IBC is //! a distributed protocol that enables communication between distinct sovereign blockchains. //! Loose analogies may be drawn between the IBC protocol and the TCP/UDP protocols that enable