Documentation
¶
Index ¶
- Constants
- func MsgMultiSendFactory() simsx.SimMsgFactoryFn[*types.MsgMultiSend]
- func MsgSendFactory() simsx.SimMsgFactoryFn[*types.MsgSend]
- func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomGenesisBalances(simState *module.SimulationState) []types.Balance
- func RandomGenesisDefaultSendEnabledParam(r *rand.Rand) bool
- func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnabled
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgMultiSend(txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation
- func SimulateMsgMultiSendToModuleAccount(txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgSend(txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper) simtypes.Operation
- func SimulateMsgSendToModuleAccount(txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, ...) simulation.WeightedOperations
Constants ¶
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 will be removed in the future
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants will be removed in the future
Variables ¶
This section is empty.
Functions ¶
func MsgMultiSendFactory ¶ added in v0.53.0
func MsgMultiSendFactory() simsx.SimMsgFactoryFn[*types.MsgMultiSend]
func MsgSendFactory ¶ added in v0.53.0
func MsgSendFactory() simsx.SimMsgFactoryFn[*types.MsgSend]
func MsgUpdateParamsFactory ¶ added in v0.53.0
func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
MsgUpdateParamsFactory creates a gov proposal for param updates
func ProposalMsgs ¶ added in v0.47.0
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents migrate to the msg factories instead, this method will be removed in the future
func RandomGenesisBalances ¶
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.47.0
RandomGenesisDefaultSendEnabledParam computes randomized allow all send transfers param for the bank module
func RandomGenesisSendEnabled ¶ added in v0.47.0
func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnabled
RandomGenesisSendEnabled creates randomized values for the SendEnabled slice.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for bank
func SimulateMsgMultiSend ¶
func SimulateMsgMultiSend(txGen client.TxConfig, 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 migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgMultiSendToModuleAccount ¶ added in v0.43.0
func SimulateMsgMultiSendToModuleAccount( txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int, ) simtypes.Operation
SimulateMsgMultiSendToModuleAccount sends coins to Module Accounts migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgSend ¶
func SimulateMsgSend( txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, ) simtypes.Operation
SimulateMsgSend tests and runs a single msg send where both accounts already exist. migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgSendToModuleAccount ¶ added in v0.43.0
func SimulateMsgSendToModuleAccount( txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, moduleAccCount int, ) simtypes.Operation
SimulateMsgSendToModuleAccount tests and runs a single msg send where both accounts already exist. migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgUpdateParams ¶ added in v0.47.0
SimulateMsgUpdateParams returns a random MsgUpdateParams will be removed in the future
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights migrate to the msg factories instead, this method will be removed in the future
Types ¶
This section is empty.