Documentation ¶
Index ¶
- Constants
- func Max(x, y int) int
- func Min(x, y int) int
- 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 RandomGauge ¶
RandomGauge takes a context, then returns a random existing gauge.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the incentives module.
func SimulateMsgAddToGauge ¶
func SimulateMsgAddToGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgAddToGauge generates and executes a MsgAddToGauge with random parameters
func SimulateMsgCreateGauge ¶
func SimulateMsgCreateGauge(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, ek types.EpochKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateGauge generates and executes a MsgCreateGauge with random parameters
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.