simulation

package
v2.0.0-...-e3dbc25 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgAnchor           = "op_weight_msg_anchor"            //nolint: gosec
	OpWeightMsgAttest           = "op_weight_msg_attest"            //nolint: gosec
	OpWeightMsgDefineResolver   = "op_weight_msg_define_resolver"   //nolint: gosec
	OpWeightMsgRegisterResolver = "op_weight_msg_register_resolver" //nolint: gosec
)

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, qryClient data.QueryServer) simtypes.Operation

SimulateMsgDefineResolver generates a MsgDefineResolver with random values.

func SimulateMsgRegisterResolver

func SimulateMsgRegisterResolver(ak data.AccountKeeper, bk data.BankKeeper,
	qryClient data.QueryServer) 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.QueryServer) 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