Documentation ¶
Index ¶
- func SimulateMsgDeposit(k gov.Keeper) simulation.Operation
- func SimulateMsgVote(k gov.Keeper) simulation.Operation
- func SimulateSubmittingVotingAndSlashingForProposal(k gov.Keeper, contentSim ContentSimulator) simulation.Operation
- func SimulateTextProposalContent(r *rand.Rand, _ *baseapp.BaseApp, _ sdk.Context, _ []simulation.Account) govTypes.Content
- type ContentSimulator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(k gov.Keeper) simulation.Operation
SimulateMsgDeposit generates a MsgDeposit with random values.
func SimulateMsgVote ¶
func SimulateMsgVote(k gov.Keeper) simulation.Operation
SimulateMsgVote generates a MsgVote with random values.
func SimulateSubmittingVotingAndSlashingForProposal ¶
func SimulateSubmittingVotingAndSlashingForProposal(k gov.Keeper, contentSim ContentSimulator) simulation.Operation
SimulateSubmittingVotingAndSlashingForProposal simulates creating a msg Submit Proposal voting on the proposal, and subsequently slashing the proposal. It is implemented using future operations. TODO: Vote more intelligently, so we can actually do some checks regarding votes passing or failing TODO: Actually check that validator slashings happened
Types ¶
Click to show internal directories.
Click to hide internal directories.