From 60c1e3163dd5cf77cd5997d1b9dafbc0a39b0c22 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 16 Aug 2023 14:46:57 +0200 Subject: [PATCH 1/7] chore: prepare v0.47.5 --- CHANGELOG.md | 2 ++ RELEASE_NOTES.md | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 589ea2b2919c..c82266656595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-07-21 + ### Improvements * (x/gov) [#17387](https://github.com/cosmos/cosmos-sdk/pull/17387) Add `MsgSubmitProposal` `SetMsgs` method. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 846f81db1fc4..6dd2f913f097 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,15 +1,16 @@ -# Cosmos SDK v0.47.4 Release Notes +# Cosmos SDK v0.47.5 Release Notes 💬 [**Release Discussion**](https://github.com/orgs/cosmos/discussions/categories/announcements) ## 🚀 Highlights -Missed the v0.47.0 announcement? Read it [here](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0). -For this fourth patch release of the `v0.47.x` line, some of the notable changes include: +Get ready for v0.50.0 and start integrating with the new [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-rc.0) release. -* An improvement in ` prune` UX. -* Improving the error handling when there is a snapshot creation failure. +For this 5th patch release of the `v0.47.x` line, some of the notable changes include: -Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.4/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.3...v0.47.4) from last release. +* +* + +Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release. Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md) when migrating from `v0.46.x` to `v0.47.0`. From 2ff7ff1a07417a036b033119f8327a524ad045f0 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 16 Aug 2023 14:48:12 +0200 Subject: [PATCH 2/7] month --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c82266656595..7131c773361a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] -## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-07-21 +## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-08-21 ### Improvements From f4dcf58bd7c06a7e8b901db3b8112b0ae1fa62b8 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 16 Aug 2023 14:49:14 +0200 Subject: [PATCH 3/7] updates --- RELEASE_NOTES.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6dd2f913f097..fed7a4044c64 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,12 +4,12 @@ ## 🚀 Highlights -Get ready for v0.50.0 and start integrating with the new [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-rc.0) release. +Get ready for v0.50.0 and start integrating with the next [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-rc.0) release. For this 5th patch release of the `v0.47.x` line, some of the notable changes include: -* -* +* +* Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release. From 456df0f484841e08e7ccd0c824ac2fee3b6cb2f4 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 17 Aug 2023 17:59:41 +0200 Subject: [PATCH 4/7] updates --- RELEASE_NOTES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index fed7a4044c64..b03f9fe5d018 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -8,7 +8,8 @@ Get ready for v0.50.0 and start integrating with the next [Cosmos SDK](https://g For this 5th patch release of the `v0.47.x` line, some of the notable changes include: -* +* A new command for importing private keys encoded in hex. This complements the existing `import` command that supports mnemonic and key files. + Use ` keys import ` to import a private key encoded in hex. * Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release. From ff2a0dca7c4813f2f3ae85f086fa770f76f287fb Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 21 Aug 2023 17:04:19 +0200 Subject: [PATCH 5/7] updates --- RELEASE_NOTES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index b03f9fe5d018..0f7b616d64de 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -10,7 +10,7 @@ For this 5th patch release of the `v0.47.x` line, some of the notable changes in * A new command for importing private keys encoded in hex. This complements the existing `import` command that supports mnemonic and key files. Use ` keys import ` to import a private key encoded in hex. -* +* A new command, `rpc.QueryEventForTxCmd` for querying a transaction by its hash and blocking until the transaction is included in a block. It is useful as an alternative to the legacy `--sync block`. Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release. From 5ff1f0d6bbbd34feaba6b00b5bd1ad960c5f84d0 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 31 Aug 2023 13:21:02 +0200 Subject: [PATCH 6/7] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db70addef065..02203d95b8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] -## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-08-21 +## [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) - 2023-09-01 ### Features From a259605cc8b4466fa86c59fa61faa4c61b07dfeb Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 31 Aug 2023 13:22:52 +0200 Subject: [PATCH 7/7] Revert "fix(x/authz): GetAuthorizations (backport #17334) (#17524)" This reverts commit bdbc1d6196a90dac1d59795145af8977c78ef7b4. --- CHANGELOG.md | 1 - x/authz/keeper/keeper.go | 2 +- x/authz/keeper/keeper_test.go | 21 --------------------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e140908aaf12..02203d95b8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,7 +54,6 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes -* (x/authz) [#17524](https://github.com/cosmos/cosmos-sdk/pull/17524) Fix an issue where the `cachedValue` of an authorization would not be correcty populated when there are multiple authorizations returned in `GetAuthorizations`. * (server) [#17181](https://github.com/cosmos/cosmos-sdk/pull/17181) Fix `db_backend` lookup fallback from `config.toml`. * (runtime) [#17284](https://github.com/cosmos/cosmos-sdk/pull/17284) Properly allow to combine depinject-enabled modules and non-depinject-enabled modules in app v2. * (baseapp) [#17159](https://github.com/cosmos/cosmos-sdk/pull/17159) Validators can propose blocks that exceed the gas limit. diff --git a/x/authz/keeper/keeper.go b/x/authz/keeper/keeper.go index 8e077e7674f2..788b87418e23 100644 --- a/x/authz/keeper/keeper.go +++ b/x/authz/keeper/keeper.go @@ -234,9 +234,9 @@ func (k Keeper) GetAuthorizations(ctx sdk.Context, grantee sdk.AccAddress, grant iter := sdk.KVStorePrefixIterator(store, key) defer iter.Close() + var authorization authz.Grant var authorizations []authz.Authorization for ; iter.Valid(); iter.Next() { - var authorization authz.Grant if err := k.cdc.Unmarshal(iter.Value(), &authorization); err != nil { return nil, err } diff --git a/x/authz/keeper/keeper_test.go b/x/authz/keeper/keeper_test.go index 80d8aef18377..c9d3189ca055 100644 --- a/x/authz/keeper/keeper_test.go +++ b/x/authz/keeper/keeper_test.go @@ -470,27 +470,6 @@ func (s *TestSuite) TestGetAuthorization() { } } -func (s *TestSuite) TestGetAuthorizations() { - require := s.Require() - addr1 := s.addrs[1] - addr2 := s.addrs[2] - - genAuthMulti := authz.NewGenericAuthorization(sdk.MsgTypeURL(&banktypes.MsgMultiSend{})) - genAuthSend := authz.NewGenericAuthorization(sdk.MsgTypeURL(&banktypes.MsgSend{})) - - start := s.ctx.BlockHeader().Time - expired := start.Add(time.Duration(1) * time.Second) - - s.Require().NoError(s.authzKeeper.SaveGrant(s.ctx, addr1, addr2, genAuthMulti, &expired), "creating multi send grant 1->2") - s.Require().NoError(s.authzKeeper.SaveGrant(s.ctx, addr1, addr2, genAuthSend, &expired), "creating send grant 1->2") - - authzs, err := s.authzKeeper.GetAuthorizations(s.ctx, addr1, addr2) - require.NoError(err) - require.Len(authzs, 2) - require.Equal(sdk.MsgTypeURL(&banktypes.MsgMultiSend{}), authzs[0].MsgTypeURL()) - require.Equal(sdk.MsgTypeURL(&banktypes.MsgSend{}), authzs[1].MsgTypeURL()) -} - func TestTestSuite(t *testing.T) { suite.Run(t, new(TestSuite)) }