simulation

package
v5.0.0-rc6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgMintShare = "op_weight_msg_mint_share"
	OpWeightMsgBurnShare = "op_weight_msg_burn_share"
	OpWeightMsgPlaceBid  = "op_weight_msg_place_bid"

	DefaultWeightMsgMintShare int = 50
	DefaultWeightMsgBurnShare int = 10
	DefaultWeightMsgPlaceBid  int = 20
)

Simulation operation weights constants.

View Source
const (
	RewardsAuctionDuration = "rewards_auction_duration"
)

Simulation parameter constants.

Variables

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

Functions

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 liquidamm 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 SimulateMsgBurnShare

func SimulateMsgBurnShare(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgBurnShare generates a MsgBurnShare with random values nolint: interfacer

func SimulateMsgMintShare

func SimulateMsgMintShare(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgMintShare generates a MsgMintShare 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 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