Documentation ¶
Index ¶
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenerateADepositParams(r *rand.Rand) types.DepositParams
- func GenerateATallyParams(r *rand.Rand) govTypes.TallyParams
- func GenerateAVotingParams(r *rand.Rand) govTypes.VotingParams
- func GenerateTallyParams(r *rand.Rand) types.TallyParams
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCertifierMsgVote(ak govTypes.AccountKeeper, ck types.CertKeeper, k keeper.Keeper, ...) simulation.Operation
- func SimulateMsgDeposit(ak govTypes.AccountKeeper, k keeper.Keeper, proposalID uint64) simulation.Operation
- func SimulateMsgVote(ak govTypes.AccountKeeper, k keeper.Keeper, simAccount simulation.Account, ...) simulation.Operation
- func SimulateSubmitProposal(ak govTypes.AccountKeeper, ck types.CertKeeper, k keeper.Keeper, ...) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak govTypes.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding gov type
func GenerateADepositParams ¶
func GenerateADepositParams(r *rand.Rand) types.DepositParams
GenerateADepositParams returns a DepositParams object with all of its fields randomized.
func GenerateATallyParams ¶
func GenerateATallyParams(r *rand.Rand) govTypes.TallyParams
GenerateATallyParams returns a TallyParams object with all of its fields randomized.
func GenerateAVotingParams ¶
func GenerateAVotingParams(r *rand.Rand) govTypes.VotingParams
GenerateAVotingParams returns a VotingParams object with all of its fields randomized.
func GenerateTallyParams ¶
func GenerateTallyParams(r *rand.Rand) types.TallyParams
GenerateTallyParams returns a TallyParams object with all of its fields randomized.
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState creates a randomGenesis state for module simulation.
func SimulateCertifierMsgVote ¶ added in v1.1.0
func SimulateCertifierMsgVote(ak govTypes.AccountKeeper, ck types.CertKeeper, k keeper.Keeper, simAccount simulation.Account, proposalID uint64) simulation.Operation
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(ak govTypes.AccountKeeper, k keeper.Keeper, proposalID uint64) simulation.Operation
func SimulateMsgVote ¶
func SimulateMsgVote(ak govTypes.AccountKeeper, k keeper.Keeper, simAccount simulation.Account, proposalID uint64) simulation.Operation
func SimulateSubmitProposal ¶
func SimulateSubmitProposal( ak govTypes.AccountKeeper, ck types.CertKeeper, k keeper.Keeper, contentSim simulation.ContentSimulatorFn, ) simulation.Operation
SimulateSubmitProposal simulates creating a msg Submit Proposal voting on the proposal, and subsequently slashing the proposal. It is implemented using future operations.
func WeightedOperations ¶
func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak govTypes.AccountKeeper, ck types.CertKeeper, k keeper.Keeper, wContents []simulation.WeightedProposalContent) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.