cosmos-sdk/orm
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
..
cmd/protoc-gen-go-cosmos-orm feat(orm): codegen (#11033) 2022-01-28 18:43:24 +00:00
encoding build(deps): Bump pgregory.net/rapid from 0.4.8 to 0.5.2 (#13096) 2022-08-30 20:17:15 +00:00
features/table feat(orm): gRPC codes for save errors (#11386) 2022-03-17 18:57:55 +00:00
internal build(deps): Bump pgregory.net/rapid from 0.4.8 to 0.5.2 (#13096) 2022-08-30 20:17:15 +00:00
model chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349) 2022-09-21 02:08:13 +00:00
testing chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
types chore: update errors sub-module module path (#11832) 2022-04-29 15:04:33 -04:00
go.mod chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349) 2022-09-21 02:08:13 +00:00
go.sum chore: all: use golang.org/x/exp/maps.(Keys, Values) where necessary (#13349) 2022-09-21 02:08:13 +00:00
Makefile feat(orm): codegen (#11033) 2022-01-28 18:43:24 +00:00