From 605e7b50bcc92d8d71f888cec8a4e71740dfa392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Laferri=C3=A8re?= Date: Thu, 12 Jan 2023 14:16:12 -0500 Subject: [PATCH] Release v0.26.0 (#348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * unclog release * bump version * Add serde feature (#331) * Add serde feature * Fix clippy warnings * Feature gate serde imports * Fix for `ErasedSerialize` * Fix unused imports * Fix CI * cargo fmt * Add serde feature to no-std-check's ibc dep * Document ErasedSerialize re-export * Move TimeoutHeight serde into it's own module * Move ClientState serde tests into it's own module * Fix typo * Apply suggestions from code review Co-authored-by: Philippe Laferrière Signed-off-by: Shoaib Ahmed * Update issue templates and CONTRIBUTING.md (#345) * Update issue templates and CONTRIBUTING.md * Reflect review input * few edits Co-authored-by: Philippe Laferriere * make transfer application serde-dependent Signed-off-by: Shoaib Ahmed Co-authored-by: Davirain Co-authored-by: Philippe Laferrière Co-authored-by: Farhad Shabani * add serde changelog from #331 Signed-off-by: Shoaib Ahmed Co-authored-by: Shoaib Ahmed Co-authored-by: Davirain Co-authored-by: Farhad Shabani --- .../20-refactor-channel-msgs.md | 0 .../218-prune-msg-interface.md | 0 .../230-packet-proofs-verification.md | 0 ...-reader-function-use-reference-modifier.md | 0 .../309-change-error-type-ics07.md | 0 .../319-val-ctx-use-reference-modifier.md | 0 .../338-make-process-pub-crate.md | 0 .../feature/259-add-borsh-and-scale-codec.md | 0 ...ec-for-acknowledgement-and-module-event.md | 0 ...-add-borsh-and-scale-codec-for-ibcevent.md | 0 .../v0.26.0/features/293-serde-feature.md | 2 + .../features/311-add-mocks-no-std-feature.md | 0 .../improvements/154-trim-redundant-code.md | 0 ...refactor-conn-open-ack-unreachable-test.md | 0 .../improvements/309-fix-clippy-warnings.md | 0 .changelog/v0.26.0/summary.md | 3 ++ CHANGELOG.md | 52 +++++++++++++++++++ crates/ibc/Cargo.toml | 2 +- crates/ibc/src/lib.rs | 2 +- 19 files changed, 59 insertions(+), 2 deletions(-) rename .changelog/{unreleased => v0.26.0}/breaking-changes/20-refactor-channel-msgs.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/218-prune-msg-interface.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/230-packet-proofs-verification.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/304-reader-function-use-reference-modifier.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/309-change-error-type-ics07.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/319-val-ctx-use-reference-modifier.md (100%) rename .changelog/{unreleased => v0.26.0}/breaking-changes/338-make-process-pub-crate.md (100%) rename .changelog/{unreleased => v0.26.0}/feature/259-add-borsh-and-scale-codec.md (100%) rename .changelog/{unreleased => v0.26.0}/feature/303-add-borsh-and-scale-codec-for-acknowledgement-and-module-event.md (100%) rename .changelog/{unreleased => v0.26.0}/feature/320-add-borsh-and-scale-codec-for-ibcevent.md (100%) create mode 100644 .changelog/v0.26.0/features/293-serde-feature.md rename .changelog/{unreleased => v0.26.0}/features/311-add-mocks-no-std-feature.md (100%) rename .changelog/{unreleased => v0.26.0}/improvements/154-trim-redundant-code.md (100%) rename .changelog/{unreleased => v0.26.0}/improvements/30-refactor-conn-open-ack-unreachable-test.md (100%) rename .changelog/{unreleased => v0.26.0}/improvements/309-fix-clippy-warnings.md (100%) create mode 100644 .changelog/v0.26.0/summary.md diff --git a/.changelog/unreleased/breaking-changes/20-refactor-channel-msgs.md b/.changelog/v0.26.0/breaking-changes/20-refactor-channel-msgs.md similarity index 100% rename from .changelog/unreleased/breaking-changes/20-refactor-channel-msgs.md rename to .changelog/v0.26.0/breaking-changes/20-refactor-channel-msgs.md diff --git a/.changelog/unreleased/breaking-changes/218-prune-msg-interface.md b/.changelog/v0.26.0/breaking-changes/218-prune-msg-interface.md similarity index 100% rename from .changelog/unreleased/breaking-changes/218-prune-msg-interface.md rename to .changelog/v0.26.0/breaking-changes/218-prune-msg-interface.md diff --git a/.changelog/unreleased/breaking-changes/230-packet-proofs-verification.md b/.changelog/v0.26.0/breaking-changes/230-packet-proofs-verification.md similarity index 100% rename from .changelog/unreleased/breaking-changes/230-packet-proofs-verification.md rename to .changelog/v0.26.0/breaking-changes/230-packet-proofs-verification.md diff --git a/.changelog/unreleased/breaking-changes/304-reader-function-use-reference-modifier.md b/.changelog/v0.26.0/breaking-changes/304-reader-function-use-reference-modifier.md similarity index 100% rename from .changelog/unreleased/breaking-changes/304-reader-function-use-reference-modifier.md rename to .changelog/v0.26.0/breaking-changes/304-reader-function-use-reference-modifier.md diff --git a/.changelog/unreleased/breaking-changes/309-change-error-type-ics07.md b/.changelog/v0.26.0/breaking-changes/309-change-error-type-ics07.md similarity index 100% rename from .changelog/unreleased/breaking-changes/309-change-error-type-ics07.md rename to .changelog/v0.26.0/breaking-changes/309-change-error-type-ics07.md diff --git a/.changelog/unreleased/breaking-changes/319-val-ctx-use-reference-modifier.md b/.changelog/v0.26.0/breaking-changes/319-val-ctx-use-reference-modifier.md similarity index 100% rename from .changelog/unreleased/breaking-changes/319-val-ctx-use-reference-modifier.md rename to .changelog/v0.26.0/breaking-changes/319-val-ctx-use-reference-modifier.md diff --git a/.changelog/unreleased/breaking-changes/338-make-process-pub-crate.md b/.changelog/v0.26.0/breaking-changes/338-make-process-pub-crate.md similarity index 100% rename from .changelog/unreleased/breaking-changes/338-make-process-pub-crate.md rename to .changelog/v0.26.0/breaking-changes/338-make-process-pub-crate.md diff --git a/.changelog/unreleased/feature/259-add-borsh-and-scale-codec.md b/.changelog/v0.26.0/feature/259-add-borsh-and-scale-codec.md similarity index 100% rename from .changelog/unreleased/feature/259-add-borsh-and-scale-codec.md rename to .changelog/v0.26.0/feature/259-add-borsh-and-scale-codec.md diff --git a/.changelog/unreleased/feature/303-add-borsh-and-scale-codec-for-acknowledgement-and-module-event.md b/.changelog/v0.26.0/feature/303-add-borsh-and-scale-codec-for-acknowledgement-and-module-event.md similarity index 100% rename from .changelog/unreleased/feature/303-add-borsh-and-scale-codec-for-acknowledgement-and-module-event.md rename to .changelog/v0.26.0/feature/303-add-borsh-and-scale-codec-for-acknowledgement-and-module-event.md diff --git a/.changelog/unreleased/feature/320-add-borsh-and-scale-codec-for-ibcevent.md b/.changelog/v0.26.0/feature/320-add-borsh-and-scale-codec-for-ibcevent.md similarity index 100% rename from .changelog/unreleased/feature/320-add-borsh-and-scale-codec-for-ibcevent.md rename to .changelog/v0.26.0/feature/320-add-borsh-and-scale-codec-for-ibcevent.md diff --git a/.changelog/v0.26.0/features/293-serde-feature.md b/.changelog/v0.26.0/features/293-serde-feature.md new file mode 100644 index 000000000..44363fe5d --- /dev/null +++ b/.changelog/v0.26.0/features/293-serde-feature.md @@ -0,0 +1,2 @@ +- Make `serde` optional behind the `serde` feature flag + ([#293](https://github.com/cosmos/ibc-rs/issues/293)) diff --git a/.changelog/unreleased/features/311-add-mocks-no-std-feature.md b/.changelog/v0.26.0/features/311-add-mocks-no-std-feature.md similarity index 100% rename from .changelog/unreleased/features/311-add-mocks-no-std-feature.md rename to .changelog/v0.26.0/features/311-add-mocks-no-std-feature.md diff --git a/.changelog/unreleased/improvements/154-trim-redundant-code.md b/.changelog/v0.26.0/improvements/154-trim-redundant-code.md similarity index 100% rename from .changelog/unreleased/improvements/154-trim-redundant-code.md rename to .changelog/v0.26.0/improvements/154-trim-redundant-code.md diff --git a/.changelog/unreleased/improvements/30-refactor-conn-open-ack-unreachable-test.md b/.changelog/v0.26.0/improvements/30-refactor-conn-open-ack-unreachable-test.md similarity index 100% rename from .changelog/unreleased/improvements/30-refactor-conn-open-ack-unreachable-test.md rename to .changelog/v0.26.0/improvements/30-refactor-conn-open-ack-unreachable-test.md diff --git a/.changelog/unreleased/improvements/309-fix-clippy-warnings.md b/.changelog/v0.26.0/improvements/309-fix-clippy-warnings.md similarity index 100% rename from .changelog/unreleased/improvements/309-fix-clippy-warnings.md rename to .changelog/v0.26.0/improvements/309-fix-clippy-warnings.md diff --git a/.changelog/v0.26.0/summary.md b/.changelog/v0.26.0/summary.md new file mode 100644 index 000000000..c3c8963e2 --- /dev/null +++ b/.changelog/v0.26.0/summary.md @@ -0,0 +1,3 @@ +This release contains miscellaneous improvements, focusing mainly on addressing technical debt. + +There are no consensus-breaking changes. diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f66a5113..fa9b9e3a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # CHANGELOG +## v0.26.0 + +*December 14, 2022* + +This release contains miscellaneous improvements, focusing mainly on addressing technical debt. + +There are no consensus-breaking changes. + +### BREAKING CHANGES + +- Exclude `ChannelEnd` from `MsgChannelOpenInit` and `MsgChannelOpenTry` and refactor their fields to match the spec + ([#20](https://github.com/cosmos/ibc-rs/issues/20)) +- Simplify Msg trait by removing unnecessary methods. + ([#218](https://github.com/cosmos/ibc-rs/issues/218)) +- Refactor proof handlers to conduct proof verifications inline with the process function + and apply naming conventions to packet messages types + ([#230](https://github.com/cosmos/ibc-rs/issues/230)) +- The function parameters in the Reader traits now references, + while the functions in the Keeper traits take ownership directly. + ([#304](https://github.com/cosmos/ibc-rs/issues/304)) +- Change type of `trusted_validator_set` field in + `MisbehaviourTrustedValidatorHashMismatch` error variant from `ValidatorSet` to + `Vec` to avoid clippy catches + ([#309](https://github.com/cosmos/ibc-rs/issues/309)) +- The function parameters in the `ValidationContext` trait now use references, + while the functions in the `ExecutionContext` trait take ownership directly. + ([#319](https://github.com/cosmos/ibc-rs/issues/319)) +- Make internal `process()` `pub(crate)` + ([#338](https://github.com/cosmos/ibc-rs/issues/338)) + +### FEATURES + +- Add serialization and deserialization features for codec and borsh to the host + type in ics24 ([#259](https://github.com/cosmos/ibc-rs/issues/259)) +- Add codec and borsh for ics04_channel::msgs::Acknowledgement and + events::ModuleEvent ([#303](https://github.com/cosmos/ibc-rs/issues/303)) +- Add parity-scale-codec and borsh for ibc::events::IbcEvent + ([#320](https://github.com/cosmos/ibc-rs/issues/320)) +- Make the code under mocks features work in no-std + ([#311](https://github.com/cosmos/ibc-rs/issues/311)) +- Make `serde` optional behind the `serde` feature flag + ([#293](https://github.com/cosmos/ibc-rs/issues/293)) + +### IMPROVEMENTS + +- Refactor unreachable test of conn_open_ack handler + ([#30](https://github.com/cosmos/ibc-rs/issues/30)) +- Remove legacy relayer-specific code and move ics18_relayer under the mock module + ([#154](https://github.com/cosmos/ibc-rs/issues/154)) +- Improve clippy catches and fix lint issues identified by clippy 0.1.67 + ([#309](https://github.com/cosmos/ibc-rs/issues/309)) + ## v0.25.0 *December 14, 2022* diff --git a/crates/ibc/Cargo.toml b/crates/ibc/Cargo.toml index 4b6e0f242..5c2689554 100644 --- a/crates/ibc/Cargo.toml +++ b/crates/ibc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ibc" -version = "0.25.0" +version = "0.26.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 20b17af95..c45302485 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.25.0")] +#![doc(html_root_url = "https://docs.rs/ibc/0.26.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