Documentation ¶
Index ¶
- Constants
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomGenesisBalances(simState *module.SimulationState) []types.Balance
- func RandomGenesisDefaultSendParam(r *rand.Rand) bool
- func RandomGenesisSendParams(r *rand.Rand) types.SendEnabledParams
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgMultiSend(ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation
- func SimulateMsgMultiSendToModuleAccount(ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int) simtypes.Operation
- func SimulateMsgSend(ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation
- func SimulateMsgSendToModuleAccount(ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgSend = "op_weight_msg_send" OpWeightMsgMultiSend = "op_weight_msg_multisend" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func ParamChanges ¶ added in v0.47.0
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.47.0
func RandomGenesisBalances(simState *module.SimulationState) []types.Balance
RandomGenesisBalances returns a slice of account balances. Each account has a balance of simState.InitialStake for sdk.DefaultBondDenom.
func RandomGenesisDefaultSendParam ¶ added in v0.47.0
RandomGenesisDefaultSendParam computes randomized allow all send transfers param for the bank module
func RandomGenesisSendParams ¶ added in v0.47.0
func RandomGenesisSendParams(r *rand.Rand) types.SendEnabledParams
RandomGenesisSendParams randomized Parameters for the bank module
func RandomizedGenState ¶ added in v0.47.0
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for bank
func SimulateMsgMultiSend ¶ added in v0.47.0
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.47.0
func SimulateMsgMultiSendToModuleAccount(ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int) simtypes.Operation
SimulateMsgMultiSendToModuleAccount sends coins to Module Accounts
func SimulateMsgSend ¶ added in v0.47.0
SimulateMsgSend tests and runs a single msg send where both accounts already exist.
func SimulateMsgSendToModuleAccount ¶ added in v0.47.0
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.47.0
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.