Documentation ¶
Index ¶
- Constants
- 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 NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func ProposalContents() []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgSubmitProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgVote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgVoteWeighted(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateTextProposalContent(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) simtypes.Content
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, 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" OpWeightMsgVoteWeighted = "op_weight_msg_weighted_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 GenDepositParamsDepositPeriod ¶ added in v0.44.4
GenDepositParamsDepositPeriod randomized DepositParamsDepositPeriod
func GenDepositParamsMinDeposit ¶ added in v0.44.4
GenDepositParamsMinDeposit randomized DepositParamsMinDeposit
func GenTallyParamsQuorum ¶ added in v0.44.4
GenTallyParamsQuorum randomized TallyParamsQuorum
func GenTallyParamsThreshold ¶ added in v0.44.4
GenTallyParamsThreshold randomized TallyParamsThreshold
func GenTallyParamsVeto ¶ added in v0.44.4
GenTallyParamsVeto randomized TallyParamsVeto
func GenVotingParamsVotingPeriod ¶ added in v0.44.4
GenVotingParamsVotingPeriod randomized VotingParamsVotingPeriod
func NewDecodeStore ¶ added in v0.44.4
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding gov type.
func ParamChanges ¶ added in v0.44.4
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func ProposalContents ¶ added in v0.44.4
func ProposalContents() []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶ added in v0.44.4
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for gov
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgDeposit generates a MsgDeposit with random values.
func SimulateMsgSubmitProposal ¶
func SimulateMsgSubmitProposal( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, contentSim simtypes.ContentSimulatorFn, ) simtypes.Operation
SimulateMsgSubmitProposal simulates creating a msg Submit Proposal voting on the proposal, and subsequently slashing the proposal. It is implemented using future operations.
func SimulateMsgVote ¶
func SimulateMsgVote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgVote generates a MsgVote with random values.
func SimulateMsgVoteWeighted ¶ added in v0.44.4
func SimulateMsgVoteWeighted(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgVoteWeighted generates a MsgVoteWeighted with random values.
func SimulateTextProposalContent ¶ added in v0.44.4
func SimulateTextProposalContent(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) simtypes.Content
SimulateTextProposalContent returns a random text proposal content.
func WeightedOperations ¶ added in v0.44.4
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, 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.