Documentation ¶
Index ¶
- Constants
- func GenMaxValidators(r *rand.Rand) (maxValidators uint32)
- func GenUnbondingTime(r *rand.Rand) (ubdTime time.Duration)
- func GetHistEntries(r *rand.Rand) uint32
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgDelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgEditValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUndelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, ...) simulation.WeightedOperations
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 GenMaxValidators ¶ added in v0.41.4
GenMaxValidators randomized MaxValidators
func GenUnbondingTime ¶ added in v0.41.4
GenUnbondingTime randomized UnbondingTime
func GetHistEntries ¶ added in v0.41.4
GetHistEntries randomized HistoricalEntries between 0-100.
func NewDecodeStore ¶ added in v0.41.4
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding staking type.
func ParamChanges ¶ added in v0.41.4
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func RandomizedGenState ¶ added in v0.41.4
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for staking
func SimulateMsgBeginRedelegate ¶
func SimulateMsgBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values nolint: interfacer
func SimulateMsgCreateValidator ¶
func SimulateMsgCreateValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateValidator generates a MsgCreateValidator with random values nolint: interfacer
func SimulateMsgDelegate ¶
func SimulateMsgDelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgDelegate generates a MsgDelegate with random values nolint: interfacer
func SimulateMsgEditValidator ¶
func SimulateMsgEditValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgEditValidator generates a MsgEditValidator with random values nolint: interfacer
func SimulateMsgUndelegate ¶
func SimulateMsgUndelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgUndelegate generates a MsgUndelegate with random values nolint: interfacer
func WeightedOperations ¶ added in v0.41.4
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.