cosmos-sdk/x/staking/spec
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
..
01_state.md x{stake,slash,gov,distrib} In-place Store Migrations (#8504) 2021-02-25 10:43:31 +00:00
02_state_transitions.md docs: Update x/staking spec (#8395) 2021-02-01 12:35:18 +00:00
03_messages.md docs: Update x/staking spec (#8395) 2021-02-01 12:35:18 +00:00
04_begin_block.md Merge PR #5380: ADR 17 Implementation: Historical Module 2019-12-18 08:20:02 -05:00
05_end_block.md Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
06_hooks.md Update docs website (#5827) 2020-03-24 16:20:30 +00:00
07_events.md docs: Update x/staking spec (#8395) 2021-02-01 12:35:18 +00:00
08_params.md Merge PR #5380: ADR 17 Implementation: Historical Module 2019-12-18 08:20:02 -05:00
README.md docs: Update x/staking spec (#8395) 2021-02-01 12:35:18 +00:00

staking

Abstract

This paper specifies the Staking module of the Cosmos-SDK, which was first described in the Cosmos Whitepaper in June 2016.

The module enables Cosmos-SDK based blockchain to support an advanced Proof-of-Stake system. In this system, holders of the native staking token of the chain can become validators and can delegate tokens to validators, ultimately determining the effective validator set for the system.

This module will be used in the Cosmos Hub, the first Hub in the Cosmos network.

Contents

  1. State
  2. State Transitions
  3. Messages
  4. Begin-Block
  5. End-Block
  6. Hooks
  7. Events
  8. Parameters