simulation

package
v25.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 16 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