simulation

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgSwapOrder       = "op_weight_msg_swap_order"
	OpWeightMsgAddLiquidity    = "op_weight_msg_add_liquidity"
	OpWeightMsgRemoveLiquidity = "op_weight_msg_remove_liquidity"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(kvA, kvB kv.Pair) string

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

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 RandomSpendableToken added in v1.5.0

func RandomSpendableToken(r *rand.Rand, spendableCoin sdk.Coins) sdk.Coin

func RandomTotalToken added in v1.5.0

func RandomTotalToken(r *rand.Rand, coins sdk.Coins) sdk.Coin

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for coinswap

func SimulateMsgAddLiquidity added in v1.5.0

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

SimulateMsgAddLiquidity simulates the addition of liquidity

func SimulateMsgRemoveLiquidity added in v1.5.0

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

SimulateMsgRemoveLiquidity simulates the removal of liquidity

func SimulateMsgSwapOrder added in v1.5.0

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

SimulateMsgSwapOrder simulates the swap of order

func WeightedOperations added in v1.5.0

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL