simulation

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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"
	OpWeightMsgTerminatePrivatePlan = "op_weight_msg_terminate_private_plan"
	OpWeightMsgFarm                 = "op_weight_msg_farm"
	OpWeightMsgUnfarm               = "op_weight_msg_unfarm"
	OpWeightMsgHarvest              = "op_weight_msg_harvest"

	DefaultWeightCreatePrivatePlan    = 10
	DefaultWeightTerminatePrivatePlan = 5
	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 SimulateMsgTerminatePrivatePlan added in v4.1.0

func SimulateMsgTerminatePrivatePlan(
	ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper,
) simtypes.Operation

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