simulation

package
v0.48.86 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgSend           = "op_weight_msg_send"
	OpWeightMsgMultiSend      = "op_weight_msg_multisend"
	DefaultWeightMsgSend      = 100 // from simappparams.DefaultWeightMsgSend
	DefaultWeightMsgMultiSend = 10  // from simappparams.DefaultWeightMsgMultiSend
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func ParamChanges added in v0.48.84

func ParamChanges(r *rand.Rand) []simtypes.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomGenesisBalances added in v0.48.84

func RandomGenesisBalances(simState *module.SimulationState) []types.Balance

RandomGenesisBalances returns a slice of account balances. Each account has a balance of simState.InitialStake for simState.BondDenom.

func RandomGenesisDefaultSendEnabledParam added in v0.48.84

func RandomGenesisDefaultSendEnabledParam(r *rand.Rand) bool

RandomGenesisDefaultSendEnabledParam computes randomized allow all send transfers param for the bank module

func RandomGenesisSendEnabled added in v0.48.84

func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnabled

RandomGenesisSendEnabled creates randomized values for the SendEnabled slice.

func RandomizedGenState added in v0.48.84

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for bank

func SimulateMsgMultiSend added in v0.48.84

func SimulateMsgMultiSend(ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation

SimulateMsgMultiSend tests and runs a single msg multisend, with randomized, capped number of inputs/outputs. all accounts in msg fields exist in state

func SimulateMsgMultiSendToModuleAccount added in v0.48.84

func SimulateMsgMultiSendToModuleAccount(ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int) simtypes.Operation

SimulateMsgMultiSendToModuleAccount sends coins to Module Accounts

func SimulateMsgSend added in v0.48.84

func SimulateMsgSend(ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation

SimulateMsgSend tests and runs a single msg send where both accounts already exist.

func SimulateMsgSendToModuleAccount added in v0.48.84

func SimulateMsgSendToModuleAccount(ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int) simtypes.Operation

SimulateMsgSendToModuleAccount tests and runs a single msg send where both accounts already exist.

func WeightedOperations added in v0.48.84

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk keeper.Keeper,
) 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