Documentation
¶
Index ¶
- Constants
- func GenFarmingFeeCollector(r *rand.Rand) string
- func GenNextEpochDays(r *rand.Rand) uint32
- 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 ProposalContents(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateAddPublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateDeletePublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
- 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 SimulateMsgHarvest(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 SimulateUpdatePublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( PrivatePlanCreationFee = "private_plan_creation_fee" NextEpochDays = "next_epoch_days" FarmingFeeCollector = "farming_fee_collector" )
Simulation parameter 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" OpWeightMsgHarvest = "op_weight_msg_harvest" )
Simulation operation weights constants.
const ( OpWeightSimulateAddPublicPlanProposal = "op_weight_add_public_plan_proposal" OpWeightSimulateUpdatePublicPlanProposal = "op_weight_update_public_plan_proposal" OpWeightSimulateDeletePublicPlanProposal = "op_weight_delete_public_plan_proposal" )
Simulation operation weights constants.
Variables ¶
This section is empty.
Functions ¶
func GenFarmingFeeCollector ¶
GenFarmingFeeCollector returns default farming fee collector.
func GenNextEpochDays ¶
GenNextEpochDays return default next epoch days.
func GenPrivatePlanCreationFee ¶
GenPrivatePlanCreationFee return randomized private plan creation fee.
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 ProposalContents ¶
func ProposalContents(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for farming.
func SimulateAddPublicPlanProposal ¶
func SimulateAddPublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateAddPublicPlanProposal generates random public plan proposal content
func SimulateDeletePublicPlanProposal ¶
func SimulateDeletePublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateDeletePublicPlanProposal generates random public plan proposal content
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 SimulateMsgHarvest ¶
func SimulateMsgHarvest(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgHarvest generates a MsgHarvest with random values nolint: interfacer
func SimulateMsgStake ¶
func SimulateMsgStake(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgStake generates a MsgStake 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 SimulateUpdatePublicPlanProposal ¶
func SimulateUpdatePublicPlanProposal(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateUpdatePublicPlanProposal generates random public plan proposal content
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.