simulation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgAnchor           = "op_weight_msg_anchor"
	OpWeightMsgAttest           = "op_weight_msg_attest"
	OpWeightMsgDefineResolver   = "op_weight_msg_define_resolver"
	OpWeightMsgRegisterResolver = "op_weight_msg_register_resolver"
)

Simulation operation weights constants

View Source
const (
	WeightAnchor           = 100
	WeightAttest           = 100
	WeightRegisterResolver = 100
	WeightDefineResolver   = 100
)

Variables

View Source
var (
	TypeMsgAnchor           = data.MsgAnchor{}.Type()
	TypeMsgAttest           = data.MsgAttest{}.Type()
	TypeMsgDefineResolver   = data.MsgDefineResolver{}.Type()
	TypeMsgRegisterResolver = data.MsgRegisterResolver{}.Type()
)

Functions

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for the data module.

func SimulateMsgAnchor

func SimulateMsgAnchor(ak data.AccountKeeper, bk data.BankKeeper) simtypes.Operation

SimulateMsgAnchor generates a MsgAnchor with random values.

func SimulateMsgAttest

func SimulateMsgAttest(ak data.AccountKeeper, bk data.BankKeeper) simtypes.Operation

SimulateMsgAttest generates a MsgAttest with random values.

func SimulateMsgDefineResolver

func SimulateMsgDefineResolver(ak data.AccountKeeper, bk data.BankKeeper) simtypes.Operation

SimulateMsgDefineResolver generates a MsgDefineResolver with random values.

func SimulateMsgRegisterResolver

func SimulateMsgRegisterResolver(ak data.AccountKeeper, bk data.BankKeeper,
	qryClient data.QueryClient) simtypes.Operation

SimulateMsgRegisterResolver generates a MsgRegisterResolver with random values.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec,
	ak data.AccountKeeper, bk data.BankKeeper,
	qryClient data.QueryClient) simulation.WeightedOperations

WeightedOperations returns all the operations from the data 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