Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenDepositParamsDepositPeriod(r *rand.Rand) time.Duration
- func GenDepositParamsMinDeposit(r *rand.Rand) sdk.Coins
- func GenTallyParamsQuorum(r *rand.Rand) sdk.Dec
- func GenTallyParamsThreshold(r *rand.Rand) sdk.Dec
- func GenTallyParamsVeto(r *rand.Rand) sdk.Dec
- func GenVotingParamsVotingPeriod(r *rand.Rand) time.Duration
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func ProposalContents() []simulation.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgDeposit(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgVote(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateSubmitProposal(ak types.AccountKeeper, k keeper.Keeper, ...) simulation.Operation
- func SimulateTextProposalContent(r *rand.Rand, _ sdk.Context, _ []simulation.Account) types.Content
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( DepositParamsMinDeposit = "deposit_params_min_deposit" DepositParamsDepositPeriod = "deposit_params_deposit_period" VotingParamsVotingPeriod = "voting_params_voting_period" TallyParamsQuorum = "tally_params_quorum" TallyParamsThreshold = "tally_params_threshold" TallyParamsVeto = "tally_params_veto" )
Simulation parameter constants
const ( OpWeightMsgDeposit = "op_weight_msg_deposit" OpWeightMsgVote = "op_weight_msg_vote" )
Simulation operation weights constants
const OpWeightSubmitTextProposal = "op_weight_submit_text_proposal"
OpWeightSubmitTextProposal app params key for text proposal
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding gov type
func GenDepositParamsDepositPeriod ¶
GenDepositParamsDepositPeriod randomized DepositParamsDepositPeriod
func GenDepositParamsMinDeposit ¶
GenDepositParamsMinDeposit randomized DepositParamsMinDeposit
func GenTallyParamsQuorum ¶
GenTallyParamsQuorum randomized TallyParamsQuorum
func GenTallyParamsThreshold ¶
GenTallyParamsThreshold randomized TallyParamsThreshold
func GenTallyParamsVeto ¶
GenTallyParamsVeto randomized TallyParamsVeto
func GenVotingParamsVotingPeriod ¶
GenVotingParamsVotingPeriod randomized VotingParamsVotingPeriod
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 ProposalContents ¶
func ProposalContents() []simulation.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for gov
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgDeposit generates a MsgDeposit with random values. nolint: funlen
func SimulateMsgVote ¶
func SimulateMsgVote(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgVote generates a MsgVote with random values. nolint: funlen
func SimulateSubmitProposal ¶
func SimulateSubmitProposal( ak types.AccountKeeper, 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. nolint: funlen
func SimulateTextProposalContent ¶
SimulateTextProposalContent returns a random text proposal content.
func WeightedOperations ¶
func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, 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.