simulation

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OpWeightMsgSwapOrder                 = "op_weight_msg_swap_order"
	OpWeightMsgAddLiquidity              = "op_weight_msg_add_liquidity"
	OpWeightMsgRemoveLiquidity           = "op_weight_msg_remove_liquidity"
	OpWeightMsgAddUnilateralLiquidity    = "op_weight_msg_add_unilateral_liquidity"
	OpWeightMsgRemoveUnilateralLiquidity = "op_weight_msg_remove_unilateral_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 RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for coinswap

func SimulateMsgAddLiquidity

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

SimulateMsgAddLiquidity simulates the addition of liquidity

func SimulateMsgAddUnilateralLiquidity

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

SimulateMsgAddUnilateralLiquidity simulates the addition of unilateral liquidity

func SimulateMsgRemoveLiquidity

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

SimulateMsgRemoveLiquidity simulates the removal of liquidity

func SimulateMsgRemoveUnilateralLiquidity

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

SimulateMsgRemoveUnilateralLiquidity simulates the removal of unilateral liquidity TODO: formula need update

func SimulateMsgSwapOrder

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

SimulateMsgSwapOrder simulates the swap of order

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