Documentation ¶
Index ¶
- Constants
- Variables
- func GenBatchSize(r *rand.Rand) uint32
- func GenMaxOrderLifespan(r *rand.Rand) time.Duration
- func GenMaxPriceRatio(r *rand.Rand) sdk.Dec
- func GenTickPrecision(r *rand.Rand) uint32
- func GenWithdrawFeeRate(r *rand.Rand) sdk.Dec
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCancelAllOrders(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCancelOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreatePair(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreatePool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgLimitOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgMarketOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgWithdraw(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgCreatePair = "op_weight_msg_create_pair" OpWeightMsgCreatePool = "op_weight_msg_create_pool" OpWeightMsgDeposit = "op_weight_msg_deposit" OpWeightMsgWithdraw = "op_weight_msg_withdraw" OpWeightMsgLimitOrder = "op_weight_msg_limit_order" OpWeightMsgMarketOrder = "op_weight_msg_market_order" OpWeightMsgCancelOrder = "op_weight_msg_cancel_order" OpWeightMsgCancelAllOrders = "op_weight_msg_cancel_all_orders" )
Simulation operation weights constants.
Variables ¶
Functions ¶
func GenBatchSize ¶
func GenTickPrecision ¶
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 SimulateMsgCancelAllOrders ¶
func SimulateMsgCancelAllOrders(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgCancelOrder ¶
func SimulateMsgCancelOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgCreatePair ¶
func SimulateMsgCreatePair(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgCreatePool ¶
func SimulateMsgCreatePool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgDeposit ¶
func SimulateMsgDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgLimitOrder ¶
func SimulateMsgLimitOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgMarketOrder ¶
func SimulateMsgMarketOrder(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgWithdraw ¶
func SimulateMsgWithdraw(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.