Documentation ¶
Index ¶
- Constants
- func GenFeeCollector(r *rand.Rand) string
- func GenMaxNumPrivatePlans(r *rand.Rand) uint32
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreatePrivatePlan(ak types.AccountKeeper, bk types.BankKeeper, lk types.LiquidityKeeper, ...) simtypes.Operation
- func SimulateMsgFarm(ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgHarvest(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgTerminatePrivatePlan(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUnfarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( FeeCollector = "fee_collector" MaxNumPrivatePlans = "max_num_private_plans" )
Simulation parameter constants
View Source
const ( OpWeightMsgCreatePrivatePlan = "op_weight_msg_create_private_plan" OpWeightMsgTerminatePrivatePlan = "op_weight_msg_terminate_private_plan" OpWeightMsgFarm = "op_weight_msg_farm" OpWeightMsgUnfarm = "op_weight_msg_unfarm" OpWeightMsgHarvest = "op_weight_msg_harvest" DefaultWeightCreatePrivatePlan = 10 DefaultWeightTerminatePrivatePlan = 5 DefaultWeightFarm = 40 DefaultWeightUnfarm = 50 DefaultWeightHarvest = 20 )
Simulation operation weights constants.
Variables ¶
This section is empty.
Functions ¶
func GenFeeCollector ¶
func GenMaxNumPrivatePlans ¶
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the module.
func SimulateMsgCreatePrivatePlan ¶
func SimulateMsgCreatePrivatePlan( ak types.AccountKeeper, bk types.BankKeeper, lk types.LiquidityKeeper, k keeper.Keeper, ) simtypes.Operation
func SimulateMsgFarm ¶
func SimulateMsgFarm(ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
func SimulateMsgHarvest ¶
func SimulateMsgHarvest(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgTerminatePrivatePlan ¶
func SimulateMsgTerminatePrivatePlan( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
func SimulateMsgUnfarm ¶
func SimulateMsgUnfarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, lk types.LiquidityKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.