simulation

package
v0.4.6-oracle.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OpWeightMsgSwap = "op_weight_msg_swap"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's Value to the corresponding distribution type

func GenBasePool

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

GenBasePool randomized BasePool

func GenMinSpread

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

GenMinSpread randomized MinSpread

func GenPoolRecoveryPeriod

func GenPoolRecoveryPeriod(r *rand.Rand) int64

GenPoolRecoveryPeriod randomized PoolRecoveryPeriod

func ParamChanges

func ParamChanges(r *rand.Rand) []simulation.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 for gov

func SimulateMsgSwap

func SimulateMsgSwap(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation

SimulateMsgSwap generates a MsgSwap with random values. nolint: funlen

func SimulateMsgSwapSend

func SimulateMsgSwapSend(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation

SimulateMsgSwapSend generates a MsgSwapSend with random values. nolint: funlen

func WeightedOperations

func WeightedOperations(
	appParams simulation.AppParams, cdc *codec.Codec, ak authkeeper.AccountKeeper, ok oracle.Keeper,
) 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