Documentation ¶
Index ¶
- Constants
- func GenBaseProposerReward(r *rand.Rand) sdk.Dec
- func GenBonusProposerReward(r *rand.Rand) sdk.Dec
- func GenCommunityTax(r *rand.Rand) sdk.Dec
- func GenWithdrawEnabled(r *rand.Rand) bool
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCommunityPoolSpendProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMsgFundCommunityPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( CommunityTax = "community_tax" BaseProposerReward = "base_proposer_reward" BonusProposerReward = "bonus_proposer_reward" WithdrawEnabled = "withdraw_enabled" )
Simulation parameter constants
const ( OpWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address" OpWeightMsgWithdrawDelegationReward = "op_weight_msg_withdraw_delegation_reward" OpWeightMsgWithdrawValidatorCommission = "op_weight_msg_withdraw_validator_commission" OpWeightMsgFundCommunityPool = "op_weight_msg_fund_community_pool" )
Simulation operation weights constants
const OpWeightSubmitCommunitySpendProposal = "op_weight_submit_community_spend_proposal"
OpWeightSubmitCommunitySpendProposal app params key for community spend proposal
Variables ¶
This section is empty.
Functions ¶
func GenBaseProposerReward ¶ added in v0.41.4
GenBaseProposerReward randomized BaseProposerReward
func GenBonusProposerReward ¶ added in v0.41.4
GenBonusProposerReward randomized BonusProposerReward
func GenCommunityTax ¶ added in v0.41.4
GenCommunityTax randomized CommunityTax
func GenWithdrawEnabled ¶ added in v0.41.4
GenWithdrawEnabled returns a randomized WithdrawEnabled parameter.
func NewDecodeStore ¶ added in v0.41.4
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding distribution type.
func ParamChanges ¶ added in v0.41.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.41.4
func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶ added in v0.41.4
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateCommunityPoolSpendProposalContent ¶ added in v0.41.4
func SimulateCommunityPoolSpendProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCommunityPoolSpendProposalContent generates random community-pool-spend proposal content
func SimulateMsgFundCommunityPool ¶ added in v0.41.4
func SimulateMsgFundCommunityPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation
SimulateMsgFundCommunityPool simulates MsgFundCommunityPool execution where a random account sends a random amount of its funds to the community pool.
func SimulateMsgSetWithdrawAddress ¶
func SimulateMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.
func SimulateMsgWithdrawDelegatorReward ¶
func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation
SimulateMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values.
func SimulateMsgWithdrawValidatorCommission ¶ added in v0.30.0
func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation
SimulateMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values.
func WeightedOperations ¶ added in v0.41.4
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.