Documentation ¶
Index ¶
- Constants
- func GenParamsDistrEpochIdentifier(r *rand.Rand) string
- func Max(x, y int) int
- func Min(x, y int) int
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomGauge(ctx sdk.Context, r *rand.Rand, k keeper.Keeper) *types.Gauge
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddToGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( DefaultWeightMsgCreateGauge int = 10 DefaultWeightMsgAddToGauge int = 10 OpWeightMsgCreateGauge = "op_weight_msg_create_gauge" OpWeightMsgAddToGauge = "op_weight_msg_add_to_gauge" )
Simulation operation weights constants
View Source
const (
ParamsDistrEpochIdentifier = "distr_epoch_identifier"
)
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.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 gov
func SimulateMsgAddToGauge ¶
func SimulateMsgAddToGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgCreateGauge ¶
func SimulateMsgCreateGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, ek types.EpochKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateGauge generates a MsgCreateGauge with random values
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, ek types.EpochKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.