Documentation ¶
Index ¶
- Constants
- func GenDepositMinInitialDepositRatio(r *rand.Rand) sdkmath.LegacyDec
- func GenDepositPeriod(r *rand.Rand) time.Duration
- func GenExpeditedMinDeposit(r *rand.Rand, bondDenom string) sdk.Coins
- func GenExpeditedThreshold(r *rand.Rand) sdkmath.LegacyDec
- func GenExpeditedVotingPeriod(r *rand.Rand) time.Duration
- func GenMinDeposit(r *rand.Rand, bondDenom string) sdk.Coins
- func GenMinDepositRatio(r *rand.Rand) sdkmath.LegacyDec
- func GenOptimisticRejectedThreshold(r *rand.Rand) sdkmath.LegacyDec
- func GenProposalCancelRate(r *rand.Rand) sdkmath.LegacyDec
- func GenProposalMaxCancelVotingPeriod(r *rand.Rand) sdkmath.LegacyDec
- func GenQuorum(r *rand.Rand) sdkmath.LegacyDec
- func GenThreshold(r *rand.Rand) sdkmath.LegacyDec
- func GenVeto(r *rand.Rand) sdkmath.LegacyDec
- func GenVotingPeriod(r *rand.Rand) time.Duration
- func GenYesQuorum(r *rand.Rand) sdkmath.LegacyDec
- func MsgCancelProposalFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgCancelProposal]
- func MsgDepositFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgDeposit]
- func MsgSubmitLegacyProposalFactory(k *keeper.Keeper, contentSimFn simtypes.ContentSimulatorFn) simsx.SimMsgFactoryX
- func MsgSubmitProposalFactory(k *keeper.Keeper, payloadFactory simsx.FactoryMethod) simsx.SimMsgFactoryX
- func MsgVoteFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgVote]
- func MsgWeightedVoteFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgVoteWeighted]
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateLegacyTextProposalContent(r *rand.Rand, _ context.Context, _ []simtypes.Account) simtypes.Content
- func TextProposalFactory() simsx.SimMsgFactoryFn[sdk.Msg]
- type SharedState
Constants ¶
const ( MinDeposit = "min_deposit" ExpeditedMinDeposit = "expedited_min_deposit" DepositPeriod = "deposit_period" MinInitialRatio = "min_initial_ratio" VotingPeriod = "voting_period" ExpeditedVotingPeriod = "expedited_voting_period" Quorum = "quorum" ExpeditedQuorum = "expedited_quorum" YesQuorum = "yes_quorum" Threshold = "threshold" ExpeditedThreshold = "expedited_threshold" Veto = "veto" OptimisticRejectedThreshold = "optimistic_rejected_threshold" ProposalCancelRate = "proposal_cancel_rate" ProposalMaxCancelVotingPeriod = "proposal_max_cancel_voting_period" MinDepositRatio = "min_deposit_ratio" )
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func GenDepositMinInitialDepositRatio ¶
GenDepositMinInitialDepositRatio returns randomized DepositMinInitialRatio
func GenDepositPeriod ¶
GenDepositPeriod returns randomized DepositPeriod
func GenExpeditedMinDeposit ¶
GenExpeditedMinDeposit returns randomized ExpeditedMinDeposit It is always greater than GenMinDeposit
func GenExpeditedThreshold ¶
GenExpeditedThreshold randomized ExpeditedThreshold
func GenExpeditedVotingPeriod ¶
GenExpeditedVotingPeriod randomized ExpeditedVotingPeriod
func GenMinDeposit ¶
GenMinDeposit returns randomized MinDeposit
func GenMinDepositRatio ¶
GenMinDepositRatio returns randomized DepositMinRatio
func GenOptimisticRejectedThreshold ¶
GenOptimisticRejectedThreshold randomized OptimisticRejectedThreshold
func GenProposalCancelRate ¶
GenProposalCancelRate returns randomized ProposalCancelRate
func GenThreshold ¶
GenThreshold returns randomized Threshold
func GenVotingPeriod ¶
GenVotingPeriod returns randomized VotingPeriod
func GenYesQuorum ¶
GenYesQuorum returns randomized YesQuorum
func MsgCancelProposalFactory ¶
func MsgCancelProposalFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgCancelProposal]
func MsgDepositFactory ¶
func MsgDepositFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgDeposit]
func MsgSubmitLegacyProposalFactory ¶
func MsgSubmitLegacyProposalFactory(k *keeper.Keeper, contentSimFn simtypes.ContentSimulatorFn) simsx.SimMsgFactoryX
func MsgSubmitProposalFactory ¶
func MsgSubmitProposalFactory(k *keeper.Keeper, payloadFactory simsx.FactoryMethod) simsx.SimMsgFactoryX
func MsgVoteFactory ¶
func MsgVoteFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgVote]
func MsgWeightedVoteFactory ¶
func MsgWeightedVoteFactory(k *keeper.Keeper, sharedState *SharedState) simsx.SimMsgFactoryFn[*v1.MsgVoteWeighted]
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for gov
func SimulateLegacyTextProposalContent ¶
func SimulateLegacyTextProposalContent(r *rand.Rand, _ context.Context, _ []simtypes.Account) simtypes.Content
SimulateLegacyTextProposalContent returns a random text proposal content.
func TextProposalFactory ¶
func TextProposalFactory() simsx.SimMsgFactoryFn[sdk.Msg]
TextProposalFactory returns a random text proposal content. A text proposal is a proposal that contains no msgs.
Types ¶
type SharedState ¶
type SharedState struct {
// contains filtered or unexported fields
}
SharedState shared state between message invocations