feat!: Define Genesis state transition (#15999)

This commit is contained in:
Marko
2023-05-03 08:58:58 +00:00
committed by GitHub
parent 672b1f9e15
commit d31f2964b0
14 changed files with 79 additions and 44 deletions
+8
View File
@@ -70,3 +70,11 @@ See an example of `ExportGenesis` from the `auth` module.
```go reference
https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/x/auth/keeper/genesis.go#L37-L49
```
### GenesisTxHandler
`GenesisTxHandler` is a way for modules to submit state transitions prior to the first block. This is used by `x/genutil` to submit the genesis transactions for the validators to be added to staking.
```go reference
https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/core/genesis/txhandler.go#L3-L6
```