Documentation
¶
Index ¶
- Constants
- func GenCommunityTax(r *rand.Rand) math.LegacyDec
- func GenWithdrawEnabled(r *rand.Rand) bool
- func MsgSetWithdrawAddressFactory(k keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgSetWithdrawAddress]
- func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
- func MsgWithdrawDelegatorRewardFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryFn[*types.MsgWithdrawDelegatorReward]
- func MsgWithdrawValidatorCommissionFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryFn[*types.MsgWithdrawValidatorCommission]
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgFundCommunityPool(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgSetWithdrawAddress(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func SimulateMsgWithdrawDelegatorReward(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgWithdrawValidatorCommission(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, _ codec.JSONCodec, txConfig client.TxConfig, ...) simulation.WeightedOperations
Constants ¶
const ( CommunityTax = "community_tax" 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" DefaultWeightMsgSetWithdrawAddress int = 50 DefaultWeightMsgWithdrawDelegationReward int = 50 DefaultWeightMsgWithdrawValidatorCommission int = 50 DefaultWeightMsgFundCommunityPool int = 50 )
Simulation operation weights constants will be removed in the future
const ( DefaultWeightMsgUpdateParams int = 50 OpWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants will be removed in the future
Variables ¶
This section is empty.
Functions ¶
func GenCommunityTax ¶
GenCommunityTax randomized CommunityTax
func GenWithdrawEnabled ¶
GenWithdrawEnabled returns a randomized WithdrawEnabled parameter.
func MsgSetWithdrawAddressFactory ¶ added in v0.53.0
func MsgSetWithdrawAddressFactory(k keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgSetWithdrawAddress]
func MsgUpdateParamsFactory ¶ added in v0.53.0
func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
func MsgWithdrawDelegatorRewardFactory ¶ added in v0.53.0
func MsgWithdrawDelegatorRewardFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryFn[*types.MsgWithdrawDelegatorReward]
func MsgWithdrawValidatorCommissionFactory ¶ added in v0.53.0
func MsgWithdrawValidatorCommissionFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryFn[*types.MsgWithdrawValidatorCommission]
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding distribution type.
func ProposalMsgs ¶ added in v0.47.0
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents migrate to MsgUpdateParamsFactory instead
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateMsgFundCommunityPool ¶
func SimulateMsgFundCommunityPool(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation
SimulateMsgFundCommunityPool simulates MsgFundCommunityPool execution where a random account sends a random amount of its funds to the community pool. migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgSetWithdrawAddress ¶
func SimulateMsgSetWithdrawAddress(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values. migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgUpdateParams ¶ added in v0.47.0
SimulateMsgUpdateParams returns a random MsgUpdateParams migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgWithdrawDelegatorReward ¶
func SimulateMsgWithdrawDelegatorReward(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation
SimulateMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values. migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgWithdrawValidatorCommission ¶
func SimulateMsgWithdrawValidatorCommission(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation
SimulateMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values. migrate to the msg factories instead, this method will be removed in the future
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, _ codec.JSONCodec, txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights migrate to the msg factories instead, this method will be removed in the future
Types ¶
This section is empty.