Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ModuleName is the name of the module
ModuleName = "gov"
)
Variables ¶
This section is empty.
Functions ¶
func MigrateJSON ¶
func MigrateJSON(oldState *v1beta1.GenesisState) *v1beta1.GenesisState
MigrateJSON accepts exported v1 (v0.40) x/gov genesis state and migrates it to v2 (v0.43) x/gov genesis state. The migration includes:
- Gov weighted votes.
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeService corestoretypes.KVStoreService, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v1 (v0.40) to v2 (v0.43). The migration includes:
- Change addresses to be length-prefixed. - Change all legacy votes to ADR-037 weighted votes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.