simulation

package
v0.8.0-gravity-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/* #nosec */
	OpWeightMsgUpdateTokenMapping = "op_weight_msg_update_token_mapping"
)
View Source
const (
	WeightMsgEthCreateContract = 50
)

Variables

This section is empty.

Functions

func GenCronosAdmin

func GenCronosAdmin(r *rand.Rand, simState *module.SimulationState) string

func GenEnableAutoDeployment

func GenEnableAutoDeployment(r *rand.Rand) bool

func GenIbcCroDenom

func GenIbcCroDenom(r *rand.Rand) string

func GenIbcTimeout

func GenIbcTimeout(r *rand.Rand) uint64

func NewDecodeStore

func NewDecodeStore() func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's value to the corresponding cronos type.

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 cronos module

func SimulateUpdateTokenMapping

func SimulateUpdateTokenMapping(k *keeper.Keeper) simtypes.Operation

SimulateUpdateTokenMapping generate mocked MsgUpdateTokenMapping message, apply the message and assert the results.

func WeightedOperations

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

WeightedOperations generate SimulateUpdateTokenMapping operation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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