Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/derive_more-1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rano | Ranadeep <[email protected]>
  • Loading branch information
rnbguy authored Nov 12, 2024
2 parents f97c7fc + 6d1ac7c commit 39ae690
Show file tree
Hide file tree
Showing 207 changed files with 4,158 additions and 4,693 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [ibc] Update `ibc-proto` to `v0.51.1` and `tendermint` to `v0.40.0`.
([\#1375](https://github.com/cosmos/ibc-rs/pull/1375))
- [ibc] Update MSRV to `1.75.0`.
([\#1375](https://github.com/cosmos/ibc-rs/pull/1375))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-apps] Relax timeout check during `MsgTransfer` proto to domain
conversions ([#1362](https://github.com/cosmos/ibc-rs/issues/1362)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-app-nft-transfer] Preallocate `Vec` to avoid reallocation of memory
([\#1374](https://github.com/cosmos/ibc-rs/pull/1374)).
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Modify `validate_self_client` error type to return `ContextError` instead of
`ConnectionError`
([#482](https://github.com/cosmos/ibc-rs/issues/482))
- Modify `validate_self_client` error type to return `HostError` instead of
`ConnectionError`
([#482](https://github.com/cosmos/ibc-rs/issues/482))
2 changes: 1 addition & 1 deletion .changelog/v0.33.0/improvement/547-error-strings.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Fix ContextError Display output
- Fix HandlerError Display output
([#547](https://github.com/cosmos/ibc-rs/issues/547))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Allow hosts to handle overflow cases in `increase_*_counter` methods by
returning `Result<(),ContextError>` type.
returning `Result<(),HostError>` type.
([#857](https://github.com/cosmos/ibc-rs/issues/857))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- logger and event emitter methods return `Result<(), ContextError>` type.
- logger and event emitter methods return `Result<(), HostError>` type.
([#859](https://github.com/cosmos/ibc-rs/issues/859))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [cosmwasm] Migrate the `cosmwasm` workspace into its own separate repository
located at [cosmwasm-ibc](https://github.com/informalsystems/cosmwasm-ibc).
([\#1311](https://github.com/cosmos/ibc-rs/issues/1311))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc] Consolidate decoding-related errors into new `DecodingError` type
([\1319](https://github.com/cosmos/ibc-rs/issues/1319))
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [ibc-core] Define a new `HostError` type in ICS-24 to draw distinction between
protocol errors and host errors. Additionally, rename `ContextError` to
`HandlerError` to better reflect its use case.
([\1320](https://github.com/cosmos/ibc-rs/issues/1320))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-core-channel] Merge `PacketError` type into `ChannelError`
([#1339](https://github.com/cosmos/ibc-rs/issues/1339))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc] Clean up multi-purpose variants like the `Other` variant and reduce
unnecessary `String` allocations in `*Error` enums.
([\#1346](https://github.com/cosmos/ibc-rs/issues/1346))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc-core-client] Update ICS-02 `ConsensusState::timestamp()` to return
`Result<Timestamp, ClientError>`
([\#1352](https://github.com/cosmos/ibc-rs/issues/1352))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc] Standardize error variants across the codebase to make them less
specific and more consistent.
([\#270](https://github.com/cosmos/ibc-rs/issues/270))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-core-handler] Return `DecodingError` for `MsgEnvelope` when trying to
decode from `Any` ([\#950](https://github.com/cosmos/ibc-rs/issues/950))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-core] Remove faulty receipt check during `recv_packet_validate`
([#1336](https://github.com/cosmos/ibc-rs/issues/1336)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc-primitives] Define utility traits for converting between `Timestamp` and
host-specific time types.
([#1323](https://github.com/cosmos/ibc-rs/pull/1323)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc-testkit] Remove redundant path constructions in the implementation of
`ValidationContext` for `MockIbcStore`
([#1338](https://github.com/cosmos/ibc-rs/pull/1338)).
22 changes: 22 additions & 0 deletions .changelog/v0.55.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
This release brings major improvements to error handling in `ibc-rs`, giving
hosting environments better control over errors and easier debugging for the
developers. A key enhancement is the clearer distinction between host-sourced
errors and those propagated by `ibc-rs`, effectively separating host-level
errors from protocol-level ones. Therefore, a noticeable update is the renaming
of the previous `ContextError` to `HandlerError`, which now exclusively manages
errors from IBC handlers. In parallel, a new `HostError` has been introduced to
handle errors originating from hosts, particularly those from validation and
execution contexts. Additionally, error definitions within `ibc-rs` have been
unified, reducing the granularity of error variants. For more details, please
refer to [ADR-011](./docs/architecture/adr-11-refactor-errors.md).

In addition, it introduces various fixes and enhancements. Notably, helper
traits with default implementations have been added to simplify the conversion
between host time types and `Timestamp`. Consequently, the `ibc-primitives`
crate has been fully decoupled from the `tendermint` dependency.

It’s also worth noting that the `cosmwasm` workspace has been relocated to its
own repository, now available under
[cosmwasm-ibc](https://github.com/informalsystems/cosmwasm-ibc).

There are no consensus-breaking changes in this release.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc] Remove non-existing `ibc-client-cw` link in the `Cargo.toml` workspace.
([#1357](https://github.com/cosmos/ibc-rs/issues/1357)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc-core] Implement `From<Infallible>` for `ClientError`
([#1356](https://github.com/cosmos/ibc-rs/issues/1356)).
4 changes: 4 additions & 0 deletions .changelog/v0.55.1/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This patch release fixes the `Cargo.toml` workspace file and adds a helper
`From<Infallible>` implementation for `ClientError`.

There are no consensus-breaking changes in this release.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ jobs:
name: Test MSRV for `ibc` libraries
timeout-minutes: 30
env:
CARGO_MSRV_VERSION: 0.16.0-beta.23
MSRV: 1.72.1
CARGO_MSRV_VERSION: 0.16.2
MSRV: 1.75.0
strategy:
matrix:
param:
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
cargo msrv --version
- name: Calculate MSRV
run: cargo msrv --output-format minimal --min 1.68.0
run: cargo msrv find --output-format minimal --min 1.68.0

- name: Build with MSRV
uses: actions-rs/cargo@v1
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ mc.log
# caused by a dependency updated to a faulty version.
/Cargo.lock

# Ignore CosmWasm artifacts
cw-contracts/

# Ignore dotenv
.env
93 changes: 89 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,90 @@
# CHANGELOG

## v0.55.1

*October 17, 2024*

This patch release fixes the `Cargo.toml` workspace file and adds a helper
`From<Infallible>` implementation for `ClientError`.

There are no consensus-breaking changes in this release.

### BUG FIXES

- [ibc] Remove non-existing `ibc-client-cw` link in the `Cargo.toml` workspace.
([#1357](https://github.com/cosmos/ibc-rs/issues/1357)).

### IMPROVEMENTS

- [ibc-core] Implement `From<Infallible>` for `ClientError`
([#1356](https://github.com/cosmos/ibc-rs/issues/1356)).

## v0.55.0

*September 26, 2024*

This release brings major improvements to error handling in `ibc-rs`, giving
hosting environments better control over errors and easier debugging for the
developers. A key enhancement is the clearer distinction between host-sourced
errors and those propagated by `ibc-rs`, effectively separating host-level
errors from protocol-level ones. Therefore, a noticeable update is the renaming
of the previous `ContextError` to `HandlerError`, which now exclusively manages
errors from IBC handlers. In parallel, a new `HostError` has been introduced to
handle errors originating from hosts, particularly those from validation and
execution contexts. Additionally, error definitions within `ibc-rs` have been
unified, reducing the granularity of error variants. For more details, please
refer to [ADR-011](./docs/architecture/adr-11-refactor-errors.md).

In addition, it introduces various fixes and enhancements. Notably, helper
traits with default implementations have been added to simplify the conversion
between host time types and `Timestamp`. Consequently, the `ibc-primitives`
crate has been fully decoupled from the `tendermint` dependency.

It’s also worth noting that the `cosmwasm` workspace has been relocated to its
own repository, now available under
[cosmwasm-ibc](https://github.com/informalsystems/cosmwasm-ibc).

There are no consensus-breaking changes in this release.

### BREAKING CHANGES

- [ibc] Standardize error variants across the codebase to make them less
specific and more consistent.
([\#270](https://github.com/cosmos/ibc-rs/issues/270))
- [ibc-core-handler] Return `DecodingError` for `MsgEnvelope` when trying to
decode from `Any` ([\#950](https://github.com/cosmos/ibc-rs/issues/950))
- [cosmwasm] Migrate the `cosmwasm` workspace into its own separate repository
located at [cosmwasm-ibc](https://github.com/informalsystems/cosmwasm-ibc).
([\#1311](https://github.com/cosmos/ibc-rs/issues/1311))
- [ibc] Consolidate decoding-related errors into new `DecodingError` type
([\1319](https://github.com/cosmos/ibc-rs/issues/1319))
- [ibc-core] Define a new `HostError` type in ICS-24 to draw distinction between
protocol errors and host errors. Additionally, rename `ContextError` to
`HandlerError` to better reflect its use case.
([\1320](https://github.com/cosmos/ibc-rs/issues/1320))
- [ibc-core-channel] Merge `PacketError` type into `ChannelError`
([#1339](https://github.com/cosmos/ibc-rs/issues/1339))
- [ibc] Clean up multi-purpose variants like the `Other` variant and reduce
unnecessary `String` allocations in `*Error` enums.
([\#1346](https://github.com/cosmos/ibc-rs/issues/1346))
- [ibc-core-client] Update ICS-02 `ConsensusState::timestamp()` to return
`Result<Timestamp, ClientError>`
([\#1352](https://github.com/cosmos/ibc-rs/issues/1352))

### BUG FIXES

- [ibc-core] Remove faulty receipt check during `recv_packet_validate`
([#1336](https://github.com/cosmos/ibc-rs/issues/1336)).

### IMPROVEMENTS

- [ibc-primitives] Define utility traits for converting between `Timestamp` and
host-specific time types.
([#1323](https://github.com/cosmos/ibc-rs/pull/1323)).
- [ibc-testkit] Remove redundant path constructions in the implementation of
`ValidationContext` for `MockIbcStore`
([#1338](https://github.com/cosmos/ibc-rs/pull/1338)).

## v0.54.0

*August 12, 2024*
Expand Down Expand Up @@ -641,9 +726,9 @@ There are no consensus-breaking changes.
- Bump ibc-proto-rs to v0.34.0
([#790](https://github.com/cosmos/ibc-rs/issues/790))
- Allow hosts to handle overflow cases in `increase_*_counter` methods by
returning `Result<(),ContextError>` type.
returning `Result<(),HandlerError>` type.
([#857](https://github.com/cosmos/ibc-rs/issues/857))
- logger and event emitter methods return `Result<(), ContextError>` type.
- logger and event emitter methods return `Result<(), HandlerError>` type.
([#859](https://github.com/cosmos/ibc-rs/issues/859))
- Bump `ibc-proto-rs` to v0.35.0 along with some other minor dependency updates
([#873](https://github.com/cosmos/ibc-rs/issues/873))
Expand Down Expand Up @@ -1042,7 +1127,7 @@ There are no consensus-breaking changes.

### IMPROVEMENT

- Fix `ContextError` Display output
- Fix `HandlerError` Display output
([#547](https://github.com/cosmos/ibc-rs/issues/547))

## v0.32.0
Expand Down Expand Up @@ -1099,7 +1184,7 @@ There are no consensus-breaking changes.
([#479](https://github.com/cosmos/ibc-rs/issues/479))
- Remove Send + Sync supertraits on the Module trait
([#480](https://github.com/cosmos/ibc-rs/issues/480))
- Modify `validate_self_client` error type to return `ContextError` instead of
- Modify `validate_self_client` error type to return `HandlerError` instead of
`ConnectionError`
([#482](https://github.com/cosmos/ibc-rs/issues/482))

Expand Down
Loading

0 comments on commit 39ae690

Please sign in to comment.