cosmos-sdk/x/genutil
Emmanuel T Odeke 9c2aef342d
chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349)
Uses golang.org/x/exp/maps.(Keys, Values) to sort out flagged
potential non-determinism issues due to map iteration which is
randomized in maps.

These were flagged by cosmos/gosec in

* https://github.com/cosmos/cosmos-sdk/security/code-scanning/724
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/725
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/726
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/727
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/728
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/729
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/782
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/813
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/814
* https://github.com/cosmos/cosmos-sdk/security/code-scanning/816

which complained about potential non-determinism in
map iteration in which we only want appends in map iteration loops,
this change instead uses golang.org/x/exp/maps.Keys to retrieve
the keys then sort.Strings which simplifies the helper code.

This change fixes issues in:
* orm/model/ormdb: non-determinism in ExportJSON
* store/internal/proofs
* types/module
* x/auth/keeper
* x/bank
* x/genutil/client/cli

Fixes #13348
2022-09-21 02:08:13 +00:00
..
client chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349) 2022-09-21 02:08:13 +00:00
migrations fix: x/gov migrations (#13045) 2022-08-29 15:15:36 +02:00
testutil feat: add unit test with mocks to x/genutil (#13007) 2022-08-24 14:25:11 +00:00
types refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
collect_test.go refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
collect.go feat(gentx): allow custom tx validation (#12956) 2022-08-23 15:36:30 +00:00
doc.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
genesis.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
gentx_test.go refactor!: Remove sdk.Router and refactor baseapp tests (#13005) 2022-08-30 23:50:47 +02:00
gentx.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
module.go feat(gentx): allow custom tx validation (#12956) 2022-08-23 15:36:30 +00:00
utils_test.go chore: downgrade to tendermint v0.34.x (#12958) 2022-08-20 02:33:07 +02:00
utils.go refactor: remove use of tmos "github.com/tendermint/tendermint/libs/os" (#13113) 2022-09-01 21:00:50 +00:00