Documentation ¶
Index ¶
- Constants
- func Dispatch(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenMaxRewardsByAddress(r *rand.Rand) sdk.Coin
- func GenTotalRewardsPool(r *rand.Rand) sdk.Coin
- func MaxActionsFn(r *rand.Rand) uint64
- func MinActionsFn(r *rand.Rand) uint64
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreateRewardsProgram(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgEndRewardsProgram(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( MaxActions = "max_actions" MinActions = "min_actions" TotalRewardsPool = "total_rewards_pool" MaxRewardByAddress = "max_reward_by_address" )
Simulation parameter constants
const ( OpWeightSubmitCreateRewardsProposal = "op_weight_submit_create_rewards_proposal" OpWeightEndRewardsProposal = "op_weight_submit_end_reward_proposal" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶
func Dispatch( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper, from simtypes.Account, chainID string, msg sdk.Msg, futures []simtypes.FutureOperation, ) ( simtypes.OperationMsg, []simtypes.FutureOperation, error, )
Dispatch sends an operation to the chain using a given account/funds on account for fees. Failures on the server side are handled as no-op msg operations with the error string as the status/response.
func GenMaxRewardsByAddress ¶
GenMaxRewardsByAddress randomized MaxRewardByAddress
func GenTotalRewardsPool ¶
GenTotalRewardsPool randomized TotalRewardsPool
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshalls the KVPair's Value
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateMsgCreateRewardsProgram ¶
func SimulateMsgCreateRewardsProgram(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgCreateRewardsProgram sends of a MsgCreateRewardProgramRequest.
func SimulateMsgEndRewardsProgram ¶
func SimulateMsgEndRewardsProgram(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgEndRewardsProgram sends a MsgEndRewardProgramRequest for a random existing reward program.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.