Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "distribution"
)
Variables ¶
View Source
var ParamsKey = []byte{0x09}
Functions ¶
func MigrateJSON ¶
func MigrateJSON(oldState *types.GenesisState) *types.GenesisState
MigrateJSON accepts exported v2 (v0.46) x/distribution genesis state and migrates it to v3 (v0.47) x/distribution genesis state. The migration includes:
Reset of the deprecated rewards to zero.
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, legacySubspace exported.Subspace, cdc codec.BinaryCodec) error
MigrateStore migrates the x/distribution module state from the consensus version 2 to version 3. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/distribution module state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.