simulation

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCall   = "op_weight_msg_call"
	OpWeightMsgDeploy = "op_weight_msg_deploy"
)

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's value to the corresponding type of cvm module.

func GenerateAContract

func GenerateAContract(r *rand.Rand) types.Contract

GenerateAContract returns a Contract object with all of its fields randomized.

func GenerateAContractMeta

func GenerateAContractMeta(r *rand.Rand) types.ContractMeta

GenerateAContractMeta returns a ContractMeta object with all of its fields randomized.

func GenerateAMetadata

func GenerateAMetadata(r *rand.Rand) types.Metadata

GenerateAMetadata returns a Metadata object with all of its fields randomized.

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState creates a random genesis state for module simulation.

func SimulateMsgCall

func SimulateMsgCall(k keeper.Keeper) simulation.Operation

SimulateMsgCall creates a message operation of MsgCall with randomized field values.

func SimulateMsgDeploy

func SimulateMsgDeploy(k keeper.Keeper) simulation.Operation

SimulateMsgDeploy creates a massage operation of MsgDeploy with randomized field values.

func WeightedOperations

func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, k keeper.Keeper) simulation.WeightedOperations

WeightedOperations creates an operation with a weight for each type of message generators.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL