Documentation ¶
Index ¶
- Constants
- func GetRandomExistingRewardsPlan(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper) (types.RewardsPlan, bool)
- func ProposalMsgs(bankKeeper bankkeeper.Keeper) []simtypes.WeightedProposalMsg
- func RandomCurrentRewardsRecords(r *rand.Rand, servicesGenesis servicestypes.GenesisState, ...) []types.CurrentRewardsRecord
- func RandomDecPools(r *rand.Rand, availableDenoms []string) types.DecPools
- func RandomDelegatorStartingInfoRecords(r *rand.Rand, availableDenoms []string) []types.DelegatorStartingInfoRecord
- func RandomDelegatorWithdrawInfos(r *rand.Rand, accs []simtypes.Account) []types.DelegatorWithdrawInfo
- func RandomDistribution(r *rand.Rand, delegationType restakingtypes.DelegationType, ...) types.Distribution
- func RandomDistributionType(r *rand.Rand) types.DistributionType
- func RandomOperatorAccumulatedCommissionRecords(r *rand.Rand, operators []operatorstypes.Operator, availableDenoms []string) []types.OperatorAccumulatedCommissionRecord
- func RandomParams(r *rand.Rand, rewardsPlanCreationFeeDenoms []string) types.Params
- func RandomPoolServiceTotalDelegatorShares(r *rand.Rand, poolsGenesis poolstypes.GenesisState, ...) []types.PoolServiceTotalDelegatorShares
- func RandomRewardsPlan(r *rand.Rand, serviceID uint32, pools []poolstypes.Pool, ...) types.RewardsPlan
- func RandomRewardsPlans(r *rand.Rand, pools []poolstypes.Pool, operators []operatorstypes.Operator, ...) []types.RewardsPlan
- func RandomServicePools(r *rand.Rand, servicesGenesis servicestypes.GenesisState, ...) types.ServicePools
- func RandomUsersDistribution(r *rand.Rand) types.UsersDistribution
- func RandomUsersDistributionType(_ *rand.Rand) types.UsersDistributionType
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreateRewardsPlan(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgEditRewardsPlan(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgSetWithdrawAddress(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateParams(bankKeeper bankkeeper.Keeper) func(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func SimulateMsgWithdrawDelegatorReward(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgWithdrawOperatorCommission(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ok *operatorskeeper.Keeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, ak authkeeper.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( DefaultWeightMsgCreateRewardsPlan int = 80 DefaultWeightMsgEditRewardsPlan int = 40 DefaultWeightMsgSetWithdrawAddress int = 20 DefaultWeightMsgWithdrawDelegatorReward int = 30 DefaultWeightMsgWithdrawOperatorCommission int = 10 OperationWeightMsgCreateRewardsPlan = "op_weight_msg_create_rewards_plan" OperationWeightMsgEditRewardsPlan = "op_weight_msg_edit_rewards_plan" OperationWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address" OperationWeightMsgWithdrawDelegatorReward = "op_weight_msg_withdraw_delegator_reward" OperationWeightMsgWithdrawOperatorCommission = "op_weight_msg_withdraw_operator_commission" )
Simulation operation weights constants
View Source
const ( DefaultWeightMsgUpdateParams = 30 OperationWeightMsgUpdateParams = "op_weight_msg_update_params" )
Variables ¶
This section is empty.
Functions ¶
func ProposalMsgs ¶
func ProposalMsgs(bankKeeper bankkeeper.Keeper) []simtypes.WeightedProposalMsg
func RandomCurrentRewardsRecords ¶
func RandomCurrentRewardsRecords( r *rand.Rand, servicesGenesis servicestypes.GenesisState, availableDenoms []string, ) []types.CurrentRewardsRecord
func RandomDelegatorStartingInfoRecords ¶
func RandomDelegatorStartingInfoRecords( r *rand.Rand, availableDenoms []string, ) []types.DelegatorStartingInfoRecord
func RandomDistribution ¶
func RandomDistribution( r *rand.Rand, delegationType restakingtypes.DelegationType, target restakingtypes.DelegationTarget, ) types.Distribution
func RandomDistributionType ¶
func RandomDistributionType(r *rand.Rand) types.DistributionType
func RandomOperatorAccumulatedCommissionRecords ¶
func RandomOperatorAccumulatedCommissionRecords( r *rand.Rand, operators []operatorstypes.Operator, availableDenoms []string, ) []types.OperatorAccumulatedCommissionRecord
func RandomParams ¶
func RandomPoolServiceTotalDelegatorShares ¶
func RandomPoolServiceTotalDelegatorShares( r *rand.Rand, poolsGenesis poolstypes.GenesisState, servicesGenesis servicestypes.GenesisState, availableDenoms []string, ) []types.PoolServiceTotalDelegatorShares
func RandomRewardsPlan ¶
func RandomRewardsPlan( r *rand.Rand, serviceID uint32, pools []poolstypes.Pool, operators []operatorstypes.Operator, amtPerDeyDenoms []string, ) types.RewardsPlan
func RandomRewardsPlans ¶
func RandomRewardsPlans( r *rand.Rand, pools []poolstypes.Pool, operators []operatorstypes.Operator, services []servicestypes.Service, allowedDenoms []string, ) []types.RewardsPlan
func RandomServicePools ¶
func RandomServicePools( r *rand.Rand, servicesGenesis servicestypes.GenesisState, availableDenoms []string, ) types.ServicePools
func RandomUsersDistribution ¶
func RandomUsersDistribution(r *rand.Rand) types.UsersDistribution
func RandomUsersDistributionType ¶
func RandomUsersDistributionType(_ *rand.Rand) types.UsersDistributionType
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the operators module
func SimulateMsgCreateRewardsPlan ¶
func SimulateMsgCreateRewardsPlan( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ok *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgEditRewardsPlan ¶
func SimulateMsgEditRewardsPlan( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ok *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgSetWithdrawAddress ¶
func SimulateMsgSetWithdrawAddress(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgUpdateParams ¶
func SimulateMsgUpdateParams(bankKeeper bankkeeper.Keeper) func(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
SimulateMsgUpdateParams returns a random MsgUpdateParams
func SimulateMsgWithdrawDelegatorReward ¶
func SimulateMsgWithdrawDelegatorReward(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgWithdrawOperatorCommission ¶
func SimulateMsgWithdrawOperatorCommission( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ok *operatorskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ok *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simulation.WeightedOperations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.