simulation

package
v5.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

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

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