simulation

package
v6.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 GenParamsDistrEpochIdentifier

func GenParamsDistrEpochIdentifier(r *rand.Rand) string

func Max

func Max(x, y int) int

func Min

func Min(x, y int) int

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 RandomGauge

func RandomGauge(ctx sdk.Context, r *rand.Rand, k keeper.Keeper) *types.Gauge

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for gov

func SimulateMsgCreateGauge

SimulateMsgCreateGauge generates a MsgCreateGauge with random values

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL