diff --git a/.changelog/config.toml b/.changelog/config.toml new file mode 100644 index 0000000..6858a29 --- /dev/null +++ b/.changelog/config.toml @@ -0,0 +1 @@ +project_url = "https://github.com/noble-assets/forwarding" diff --git a/.changelog/unreleased/.gitkeep b/.changelog/unreleased/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.changelog/v1.0.0/summary.md b/.changelog/v1.0.0/summary.md new file mode 100644 index 0000000..48b9adc --- /dev/null +++ b/.changelog/v1.0.0/summary.md @@ -0,0 +1,5 @@ +*Apr 24, 2024* + +This is a standalone release of the `x/forwarding` module introduced to Noble's codebase in the `v4.1.0` Fusion release. + +The module has been ported from [noble-assets/noble@`bb9ee09`](https://github.com/noble-assets/noble/commit/bb9ee097f09ce3e923242e9bac3ac997f0d44f8b), which was the latest commit hash that [Halborn](https://www.halborn.com) audited. We have additionally upstreamed [noble-assets/noble#350](https://github.com/noble-assets/noble/pull/350), which introduces a small fix to the forwarding IBC middleware. diff --git a/.changelog/v1.1.0/bug-fixes/8-genesis-account.md b/.changelog/v1.1.0/bug-fixes/8-genesis-account.md new file mode 100644 index 0000000..b55f6e9 --- /dev/null +++ b/.changelog/v1.1.0/bug-fixes/8-genesis-account.md @@ -0,0 +1 @@ +- Register forwarding accounts as a `GenesisAccount` implementation. ([#8](https://github.com/noble-assets/forwarding/pull/8)) diff --git a/.changelog/v1.1.0/features/5-stats-query.md b/.changelog/v1.1.0/features/5-stats-query.md new file mode 100644 index 0000000..2a2928f --- /dev/null +++ b/.changelog/v1.1.0/features/5-stats-query.md @@ -0,0 +1 @@ +- Implement generic stats query across all channels. ([#5](https://github.com/noble-assets/forwarding/pull/5)) diff --git a/.changelog/v1.1.0/summary.md b/.changelog/v1.1.0/summary.md new file mode 100644 index 0000000..3476564 --- /dev/null +++ b/.changelog/v1.1.0/summary.md @@ -0,0 +1,3 @@ +*Apr 29, 2024* + +This is a minor, non-consensus breaking, release to the `v1` line. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..0b811a5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# CHANGELOG + +## v1.1.0 + +*Apr 29, 2024* + +This is a minor, non-consensus breaking, release to the `v1` line. + +### BUG FIXES + +- Register forwarding accounts as a `GenesisAccount` implementation. ([#8](https://github.com/noble-assets/forwarding/pull/8)) + +### FEATURES + +- Implement generic stats query across all channels. ([#5](https://github.com/noble-assets/forwarding/pull/5)) + +## v1.0.0 + +*Apr 24, 2024* + +This is a standalone release of the `x/forwarding` module introduced to Noble's codebase in the `v4.1.0` Fusion release. + +The module has been ported from [noble-assets/noble@`bb9ee09`](https://github.com/noble-assets/noble/commit/bb9ee097f09ce3e923242e9bac3ac997f0d44f8b), which was the latest commit hash that [Halborn](https://www.halborn.com) audited. We have additionally upstreamed [noble-assets/noble#350](https://github.com/noble-assets/noble/pull/350), which introduces a small fix to the forwarding IBC middleware. + diff --git a/proto/noble/forwarding/v1/query.proto b/proto/noble/forwarding/v1/query.proto index 3541a40..866ce66 100644 --- a/proto/noble/forwarding/v1/query.proto +++ b/proto/noble/forwarding/v1/query.proto @@ -14,7 +14,6 @@ service Query { } rpc Stats(QueryStats) returns (QueryStatsResponse) { - // NOTE: This is intentionally not a module safe query. option (google.api.http).get = "/noble/forwarding/v1/stats"; } diff --git a/x/forwarding/types/account.go b/x/forwarding/types/account.go index fd88f84..f70c8ce 100644 --- a/x/forwarding/types/account.go +++ b/x/forwarding/types/account.go @@ -21,11 +21,11 @@ func GenerateAddress(channel string, recipient string) sdk.AccAddress { func (fa *ForwardingAccount) Validate() error { if !channeltypes.IsValidChannelID(fa.Channel) { - return fmt.Errorf("channel id (%s) is invalid for account %s", fa.Channel, fa.Address) + return fmt.Errorf("%s is an invalid channel id", fa.Channel) } if fa.CreatedAt < 0 { - return fmt.Errorf("%d is an invalid creation height for account %s", fa.CreatedAt, fa.Address) + return fmt.Errorf("%d is an invalid creation block height", fa.CreatedAt) } return fa.BaseAccount.Validate()