Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "gov"
)
Default parameter values
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
func Migrate(oldGovState v036gov.GenesisState) *v040gov.GenesisState
Migrate accepts exported v0.36 x/gov genesis state and migrates it to v0.40 x/gov genesis state. The migration includes:
- Convert vote option & proposal status from byte to enum. - Migrate proposal content to Any. - Convert addresses from bytes to bech32 strings. - Re-encode in v0.40 GenesisState.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.