Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- 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 ParamChanges(r *rand.Rand) []sim.ParamChange
- func ProposalContents(k keeper.Keeper) []sim.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCommunityPoolSpendProposalContent(k keeper.Keeper) types.SimulationContentSimulatorFn
- func SimulateMsgFundCommunityPool(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, ...) types.SimulationOperation
- func SimulateMsgSetWithdrawAddress(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper) types.SimulationOperation
- func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, ...) types.SimulationOperation
- func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, ...) types.SimulationOperation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ...) types.SimulationWeightedOperations
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 DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding distribution type
func GenBaseProposerReward ¶
GenBaseProposerReward randomized BaseProposerReward
func GenBonusProposerReward ¶
GenBonusProposerReward randomized BonusProposerReward
func GenCommunityTax ¶
GenCommunityTax randomized CommunityTax
func GenWithdrawEnabled ¶
GenWithdrawEnabled returns a randomized WithdrawEnabled parameter.
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 ProposalContents ¶
func ProposalContents(k keeper.Keeper) []sim.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateCommunityPoolSpendProposalContent ¶
func SimulateCommunityPoolSpendProposalContent(k keeper.Keeper) types.SimulationContentSimulatorFn
SimulateCommunityPoolSpendProposalContent generates random community-pool-spend proposal content
func SimulateMsgFundCommunityPool ¶
func SimulateMsgFundCommunityPool(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, sk types.StakingKPKeeper) types.SimulationOperation
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.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper) types.SimulationOperation
SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.
func SimulateMsgWithdrawDelegatorReward ¶
func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, sk types.StakingKPKeeper) types.SimulationOperation
SimulateMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values.
func SimulateMsgWithdrawValidatorCommission ¶
func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, sk types.StakingKPKeeper) types.SimulationOperation
SimulateMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values.
func WeightedOperations ¶
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeperAccountID, bk types.BankKeeperAccountID, k keeper.Keeper, sk types.StakingKPKeeper, ) types.SimulationWeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.