simulation

package
v3.0.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgSwap = "op_weight_msg_swap" //#nosec
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func GenBasePool

func GenBasePool(r *rand.Rand) sdk.Dec

GenBasePool randomized MintBasePool

func GenMinSpread

func GenMinSpread(r *rand.Rand) sdk.Dec

GenMinSpread randomized MinSpread

func GenPoolRecoveryPeriod

func GenPoolRecoveryPeriod(r *rand.Rand) uint64

GenPoolRecoveryPeriod randomized PoolRecoveryPeriod

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

func ParamChanges

func ParamChanges(*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 for gov

func SimulateMsgSwap

func SimulateMsgSwap(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	ok types.OracleKeeper,
) simtypes.Operation

SimulateMsgSwap generates a MsgSwap with random values. nolint: funlen

func SimulateMsgSwapSend

func SimulateMsgSwapSend(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	ok types.OracleKeeper,
) simtypes.Operation

SimulateMsgSwapSend generates a MsgSwapSend with random values. nolint: funlen

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