simulation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuctionCreationFee = "auction_creation_fee"
	ExtendedPeriod     = "extended_period"
)

Simulation parameter constants.

View Source
const (
	OpWeightMsgCreateFixedPriceAuction = "op_weight_msg_create_fixed_price_auction"
	OpWeightMsgCreateBatchAuction      = "op_weight_msg_create_batch_auction"
	OpWeightMsgCancelAuction           = "op_weight_msg_cancel_auction"
	OpWeightMsgPlaceBid                = "op_weight_msg_place_bid"
)

Simulation operation weights constants.

Variables

This section is empty.

Functions

func GenAuctionCreationFee

func GenAuctionCreationFee(r *rand.Rand) sdk.Coins

GenAuctionCreationFee return randomized auction creation fee.

func GenExtendedPeriod

func GenExtendedPeriod(r *rand.Rand) uint32

GenExtendedPeriod return default extended period.

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 fundraising type.

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.LegacyParamChange

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 SimulateMsgCancelAuction

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

SimulateMsgCancelAuction generates a SimulateMsgCancelAuction with random values nolint: interfacer

func SimulateMsgCreateBatchAuction

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

SimulateMsgCreateBatchAuction generates a MsgCreateRatioPlan with random values nolint: interfacer

func SimulateMsgCreateFixedPriceAuction

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

SimulateMsgCreateFixedPriceAuction generates a MsgCreateFixedAmountPlan 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