Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenMaxValidators(r *rand.Rand) (maxValidators uint16)
- func GenUnbondingTime(r *rand.Rand) (ubdTime time.Duration)
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBeginRedelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCreateValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgDelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgEditValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgUndelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( UnbondingTime = "unbonding_time" MaxValidators = "max_validators" )
Simulation parameter constants
const ( OpWeightMsgCreateValidator = "op_weight_msg_create_validator" OpWeightMsgEditValidator = "op_weight_msg_edit_validator" OpWeightMsgDelegate = "op_weight_msg_delegate" OpWeightMsgUndelegate = "op_weight_msg_undelegate" OpWeightMsgBeginRedelegate = "op_weight_msg_begin_redelegate" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶ added in v0.1.3
DecodeStore unmarshals the KVPair's Value to the corresponding staking type
func GenMaxValidators ¶
GenMaxValidators randomized MaxValidators
func GenUnbondingTime ¶
GenUnbondingTime randomized UnbondingTime
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for staking
func SimulateMsgBeginRedelegate ¶
func SimulateMsgBeginRedelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values nolint: funlen
func SimulateMsgCreateValidator ¶
func SimulateMsgCreateValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgCreateValidator generates a MsgCreateValidator with random values nolint: funlen
func SimulateMsgDelegate ¶
func SimulateMsgDelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgDelegate generates a MsgDelegate with random values nolint: funlen
func SimulateMsgEditValidator ¶
func SimulateMsgEditValidator(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgEditValidator generates a MsgEditValidator with random values nolint: funlen
func SimulateMsgUndelegate ¶
func SimulateMsgUndelegate(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgUndelegate generates a MsgUndelegate with random values nolint: funlen
func WeightedOperations ¶
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.