simulation

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeeCollector           = "fee_collector"
	RewardsAuctionDuration = "rewards_auction_duration"
	LiquidFarms            = "liquid_farms"
)

Simulation parameter constants.

View Source
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.

Variables

View Source
var (
	Gas  = uint64(20000000)
	Fees = sdk.Coins{
		{
			Denom:  "stake",
			Amount: sdk.NewInt(0),
		},
	}
)

Functions

func GenFeeCollector

func GenFeeCollector(r *rand.Rand) string

GenFeeCollector returns randomized test account for fee collector.

func GenLiquidFarms

func GenLiquidFarms(r *rand.Rand) []types.LiquidFarm

GenLiquidFarms returns randomized liquid farm list.

func GenRewardsAuctionDuration

func GenRewardsAuctionDuration(r *rand.Rand) time.Duration

GenRewardsAuctionDuration returns randomized rewards auction duration.

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

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 MsgRefundBid with random values nolint: interfacer

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL