Documentation ¶
Index ¶
- Constants
- Variables
- func GenRewardsAuctionDuration(r *rand.Rand) time.Duration
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgLiquidFarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgLiquidUnfarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgPlaceBid(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgRefundBid(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 ( OpWeightMsgLiquidFarm = "op_weight_msg_liquid_farm" OpWeightMsgLiquidUnfarm = "op_weight_msg_liquid_unfarm" OpWeightMsgPlaceBid = "op_weight_msg_place_bid" OpWeightMsgRefundBid = "op_weight_msg_refund_bid" )
Simulation operation weights constants.
const (
RewardsAuctionDuration = "rewards_auction_duration"
)
Simulation parameter constants.
Variables ¶
Functions ¶
func GenRewardsAuctionDuration ¶
GenRewardsAuctionDuration returns randomized rewards auction duration.
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding liquidfarming 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.
func SimulateMsgLiquidFarm ¶
func SimulateMsgLiquidFarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgLiquidFarm generates a MsgLiquidFarm with random values nolint: interfacer
func SimulateMsgLiquidUnfarm ¶
func SimulateMsgLiquidUnfarm(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgLiquidUnfarm generates a MsgLiquidUnfarm with random values nolint: interfacer
func SimulateMsgPlaceBid ¶
func SimulateMsgPlaceBid(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgPlaceBid generates a MsgPlaceBid with random values nolint: interfacer
func SimulateMsgRefundBid ¶
func SimulateMsgRefundBid(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgRefundBid generates a MsgCancelBid 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.