Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ModuleName is the name of the module
ModuleName = "staking"
)
Variables ¶
This section is empty.
Functions ¶
func MigrateJSON ¶
func MigrateJSON(oldState types.GenesisState) (types.GenesisState, error)
MigrateJSON accepts exported v0.43 x/stakinng genesis state and migrates it to v0.46 x/staking genesis state. The migration includes:
- Add MinCommissionRate & ValidatorBondFactor params.
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec, paramstore paramtypes.Subspace) error
MigrateStore performs in-place store migrations from v0.43/v0.44/v0.45 to v0.46. The migration includes:
- Setting the MinCommissionRate, ValidatorBondFactor and GlobalLiquidStakingCap params in the paramstore - Initializing TotalLiquidStakedTokens to 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.