Documentation ¶
Index ¶
- Constants
- func GenPrivatePlanCreationFee(r *rand.Rand) sdk.Coins
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgClaim(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateFixedAmountPlan(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateRatioPlan(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgStake(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUnstake(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 ¶
const ( OpWeightMsgCreateFixedAmountPlan = "op_weight_msg_create_fixed_amount_plan" OpWeightMsgCreateRatioPlan = "op_weight_msg_create_ratio_plan" OpWeightMsgStake = "op_weight_msg_stake" OpWeightMsgUnstake = "op_weight_msg_unstake" OpWeightMsgClaim = "op_weight_msg_claim" )
Simulation operation weights constants
const (
PrivatePlanCreationFee = "private_plan_creation_fee"
)
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func GenPrivatePlanCreationFee ¶
GenPrivatePlanCreationFee return default PrivatePlanCreationFee
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding farming type.
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 farming
func SimulateMsgClaim ¶
func SimulateMsgClaim(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgClaim generates a MsgClaim with random values nolint: interfacer
func SimulateMsgCreateFixedAmountPlan ¶
func SimulateMsgCreateFixedAmountPlan(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateFixedAmountPlan generates a MsgCreateFixedAmountPlan with random values nolint: interfacer
func SimulateMsgCreateRatioPlan ¶
func SimulateMsgCreateRatioPlan(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateRatioPlan generates a MsgCreateRatioPlan with random values nolint: interfacer
func SimulateMsgStake ¶
func SimulateMsgStake(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgStake generates a MsgCreateFixedAmountPlan with random values nolint: interfacer
func SimulateMsgUnstake ¶
func SimulateMsgUnstake(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgUnstake generates a SimulateMsgUnstake with random values nolint: interfacer
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.