simulation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateRecord = "op_weight_msg_create_record"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's Value to the corresponding slashing type

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for record

func SimulateCreateRecord

func SimulateCreateRecord(ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateCreateRecord tests and runs a single msg create a new record

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams,
	cdc *codec.Codec,
	ak types.AccountKeeper,
	bk types.BankKeeper) simulation.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