Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenInitialNumberOfBonds(r *rand.Rand) (initialBonds uint64)
- func GenMaxNumberOfBonds(r *rand.Rand) (maxBonds uint64)
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBuy(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCreateBond(ak auth.AccountKeeper) simulation.Operation
- func SimulateMsgEditBond(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgSell(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgSwap(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak auth.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( InitialBonds = "initial_bonds" MaxBonds = "max_bonds" MaxNumberOfInitialBonds = 100 MaxNumberOfBonds = 100000 )
Simulation parameters constants
View Source
const ( OpWeightMsgCreateBond = "op_weight_msg_create_bond" OpWeightMsgEditBond = "op_weight_msg_edit_bond" OpWeightMsgBuy = "op_weight_msg_buy" OpWeightMsgSell = "op_weight_msg_sell" OpWeightMsgSwap = "op_weight_msg_swap" DefaultWeightMsgCreateBond = 5 DefaultWeightMsgEditBond = 5 DefaultWeightMsgBuy = 100 DefaultWeightMsgSell = 100 DefaultWeightMsgSwap = 100 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding type
func GenInitialNumberOfBonds ¶
GenInitialNumberOfBonds randomized initial number of bonds
func GenMaxNumberOfBonds ¶
GenMaxNumberOfBonds randomized max number of bonds
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState
func SimulateMsgBuy ¶
func SimulateMsgBuy(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
func SimulateMsgCreateBond ¶
func SimulateMsgCreateBond(ak auth.AccountKeeper) simulation.Operation
func SimulateMsgEditBond ¶
func SimulateMsgEditBond(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
func SimulateMsgSell ¶
func SimulateMsgSell(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
func SimulateMsgSwap ¶
func SimulateMsgSwap(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak auth.AccountKeeper, 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.