simulation

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreatePair       = "op_weight_msg_create_pair"
	OpWeightMsgCreatePool       = "op_weight_msg_create_pool"
	OpWeightMsgCreateRangedPool = "op_weight_msg_create_ranged_pool"
	OpWeightMsgDeposit          = "op_weight_msg_deposit"
	OpWeightMsgWithdraw         = "op_weight_msg_withdraw"
	OpWeightMsgLimitOrder       = "op_weight_msg_limit_order"
	OpWeightMsgMarketOrder      = "op_weight_msg_market_order"
	OpWeightMsgMMOrder          = "op_weight_msg_mm_order"
	OpWeightMsgCancelOrder      = "op_weight_msg_cancel_order"
	OpWeightMsgCancelAllOrders  = "op_weight_msg_cancel_all_orders"
)

Simulation operation weights constants.

Variables

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

Functions

func GenBatchSize

func GenBatchSize(r *rand.Rand) uint32

func GenMaxOrderLifespan

func GenMaxOrderLifespan(r *rand.Rand) time.Duration

func GenMaxPriceRatio

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

func GenTickPrecision

func GenTickPrecision(r *rand.Rand) uint32

func GenWithdrawFeeRate

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

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

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 for liquidity.

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