simulation

package
v0.32.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 64

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInvariants added in v0.24.0

func AllInvariants() sdk.Invariant

AllInvariants tests all governance invariants

func SimulateMsgDeposit

func SimulateMsgDeposit(k gov.Keeper) simulation.Operation

SimulateMsgDeposit

func SimulateMsgSubmitProposal added in v0.24.0

func SimulateMsgSubmitProposal(k gov.Keeper) simulation.Operation

SimulateMsgSubmitProposal simulates a msg Submit Proposal Note: Currently doesn't ensure that the proposal txt is in JSON form

func SimulateMsgVote

func SimulateMsgVote(k gov.Keeper) simulation.Operation

SimulateMsgVote nolint: unparam

func SimulateSubmittingVotingAndSlashingForProposal added in v0.25.0

func SimulateSubmittingVotingAndSlashingForProposal(k gov.Keeper) 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

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL