Documentation ¶
Index ¶
- 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 NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []sim.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCertifierMsgVote(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, ...) simtypes.Operation
- func SimulateMsgDeposit(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgVote(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateSubmitProposal(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak govtypes.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding gov type
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []sim.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 ¶
func SimulateCertifierMsgVote(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, k keeper.Keeper, simAccount simtypes.Account, proposalID uint64) simtypes.Operation
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, k keeper.Keeper, proposalID uint64) simtypes.Operation
func SimulateMsgVote ¶
func SimulateSubmitProposal ¶
func SimulateSubmitProposal( ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, k keeper.Keeper, contentSim simtypes.ContentSimulatorFn, ) simtypes.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 simtypes.AppParams, cdc codec.JSONCodec, ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, k keeper.Keeper, wContents []simtypes.WeightedProposalContent) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.