simulation

package
v20.0.0-...-da339d1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 15 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 Max

func Max(x, y int) int

func Min

func Min(x, y int) int

func RandomGauge

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

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

SimulateMsgAddToGauge generates and executes a MsgAddToGauge with random parameters

func SimulateMsgCreateGauge

SimulateMsgCreateGauge generates and executes a MsgCreateGauge with random parameters

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