simulation

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeeCollector       = "fee_collector"
	MaxNumPrivatePlans = "max_num_private_plans"
)

Simulation parameter constants

View Source
const (
	OpWeightMsgCreatePrivatePlan = "op_weight_msg_create_private_plan"
	OpWeightMsgFarm              = "op_weight_msg_farm"
	OpWeightMsgUnfarm            = "op_weight_msg_unfarm"
	OpWeightMsgHarvest           = "op_weight_msg_harvest"

	DefaultWeightCreatePrivatePlan = 10
	DefaultWeightFarm              = 40
	DefaultWeightUnfarm            = 50
	DefaultWeightHarvest           = 20
)

Simulation operation weights constants.

Variables

This section is empty.

Functions

func GenFeeCollector

func GenFeeCollector(r *rand.Rand) string

func GenMaxNumPrivatePlans

func GenMaxNumPrivatePlans(r *rand.Rand) uint32

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

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 the module.

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