Documentation ¶
Index ¶
- Constants
- func DecodeStore(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgAddUnilateralLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgRemoveLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgRemoveUnilateralLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgSwapOrder(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
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 ¶
DecodeStore unmarshals the KVPair's Value to the corresponding htlc type
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 SimulateMsgAddUnilateralLiquidity ¶ added in v1.7.0
func SimulateMsgAddUnilateralLiquidity( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgAddUnilateralLiquidity simulates the addition of unilateral 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 SimulateMsgRemoveUnilateralLiquidity ¶ added in v1.7.0
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 ¶ 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
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) 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.