simulation

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateBid  = "op_weight_msg_create_bid"  // nolint gosec
	OpWeightMsgCloseBid   = "op_weight_msg_close_bid"   // nolint gosec
	OpWeightMsgCloseLease = "op_weight_msg_close_lease" // nolint gosec
)

Simulation operation weights constants

View Source
const (
	DefaultWeightMsgUpdateParams int = 100

	OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func ProposalMsgs

func ProposalMsgs() []simtypes.WeightedProposalMsg

ProposalMsgs defines the module weighted proposals' contents

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for supply

func SimulateMsgCloseBid

func SimulateMsgCloseBid(ks keepers.Keepers) simtypes.Operation

SimulateMsgCloseBid generates a MsgCloseBid with random values

func SimulateMsgCloseLease

func SimulateMsgCloseLease(_ keepers.Keepers) simtypes.Operation

SimulateMsgCloseLease generates a MsgCloseLease with random values

func SimulateMsgCreateBid

func SimulateMsgCreateBid(ks keepers.Keepers) simtypes.Operation

SimulateMsgCreateBid generates a MsgCreateBid with random values

func SimulateMsgUpdateParams

func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, _ codec.JSONCodec, ks keepers.Keepers) simulation.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