cosmos-sdk/x/auth/keeper
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
..
account.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00
bech32_codec.go feat!: Add bech32 prefix to authkeeper (#9759) 2021-08-25 11:17:18 +00:00
deterministic_test.go feat: x/auth determinism tests for Account query (#13255) 2022-09-16 09:22:09 +02:00
genesis.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00
grpc_query_test.go feat(x/auth): define simplified account query service (#13210) 2022-09-16 09:12:41 +00:00
grpc_query.go feat(x/auth): define simplified account query service (#13210) 2022-09-16 09:12:41 +00:00
keeper_bench_test.go feat: decouple x/auth from simapp (#12360) 2022-06-29 09:53:59 +00:00
keeper_test.go feat(x/auth): define simplified account query service (#13210) 2022-09-16 09:12:41 +00:00
keeper.go chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349) 2022-09-21 02:08:13 +00:00
migrations.go refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
msg_server_test.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00
msg_server.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00
params_test.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00
params.go feat: deprecate x/params usage in x/auth (#12475) 2022-07-11 19:16:27 +02:00