cosmos-sdk/x/staking/keeper
Amaury ba74a7c737
x{stake,slash,gov,distrib} In-place Store Migrations (#8504)
* Add 1st version of migrate

* Put migration logic into Configurator

* add test to bank store migration

* add test for configurator

* Error if no migration found

* Remove RunMigrations from Configurator interface

* Update spec

* Rename folders

* copy-paste from keys.go

* Fix nil map

* rename function

* Update simapp/app.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update simapp/app_test.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Adderss reviews

* Fix tests

* Update testutil/context.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update docs for ConsensusVersion

* Rename to forVersion

* Fix tests

* Check error early

* Return 1 for intiial version

* Use MigrationKeeper

* Fix test

* Revert adding marshaler to Configurator

* Godoc updates

* Update docs

* Add distrib legacy folder

* Add tests for distrib migration

* Add gov migrations

* Copy paste whole keys file

* Add gov migrations

* Add staking

* Fix staking tests

* Update spec and module.go

* Update to latest changes

* Update migration scripts

* capability to 1

* Fix tests

* Add package godoc

* Remove whitespace

* Remove global

* Use Migrator

* Remove 042 keys files

* Fix build

* Unlambda

* Rename to Migrate1to2

Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2021-02-25 10:43:31 +00:00
..
alias_functions.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
common_test.go set PowerReduction=10^18 for staking tests 2020-11-12 01:48:42 +10:00
delegation_test.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
delegation.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
grpc_query_test.go codecs: rename MakeCodecs rename and docs update (#8245) 2021-01-07 21:50:52 +00:00
grpc_query.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
historical_info_test.go Sort validators like tendermint in HistoricalInfo (#7691) 2020-10-29 12:17:37 +00:00
historical_info.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
hooks.go Merge PR #4417: cleanup staking references from types pkg 2019-06-04 15:06:58 -07:00
invariants.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
keeper_test.go Sort validators like tendermint in HistoricalInfo (#7691) 2020-10-29 12:17:37 +00:00
keeper.go Removed GetValidator caching to fix concurrency error (#8546) 2021-02-12 11:52:03 +00:00
migrations.go x{stake,slash,gov,distrib} In-place Store Migrations (#8504) 2021-02-25 10:43:31 +00:00
msg_server.go Merge branch 'master' of github.com:cosmos/cosmos-sdk into fix_power_reduction_test_cast_int64 2020-11-12 02:52:59 +10:00
params.go Move some Param types from Keeper to Types in staking (#6451) 2020-06-16 19:59:36 +02:00
pool.go Update x/auth to use Any (#6165) 2020-05-20 19:21:00 +00:00
querier_test.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
querier.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
query_utils.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slash_test.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slash.go Refactor Logging using Zerolog (#8072) 2020-12-03 23:17:21 +00:00
test_common.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
val_state_change.go Refactor store keys for variable-length addresses (#8363) 2021-02-01 13:17:44 +00:00
validator_bench_test.go Removed GetValidator caching to fix concurrency error (#8546) 2021-02-12 11:52:03 +00:00
validator_test.go [Bank] Remove the unsafe balance changing API (#8473) 2021-02-17 18:20:33 +00:00
validator.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00