Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenInitialNumberOfWars(r *rand.Rand) (initialWars uint64)
- func GenMaxNumberOfWars(r *rand.Rand) (maxWars uint64)
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBuy(ak auth.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgCreateWar(ak auth.AccountKeeper) simulation.Operation
- func SimulateMsgEditWar(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 ( InitialWars = "initial_wars" MaxWars = "max_wars" MaxNumberOfInitialWars = 100 MaxNumberOfWars = 100000 )
Simulation parameters constants
View Source
const ( OpWeightMsgCreateWar = "op_weight_msg_create_war" OpWeightMsgEditWar = "op_weight_msg_edit_war" OpWeightMsgBuy = "op_weight_msg_buy" OpWeightMsgSell = "op_weight_msg_sell" OpWeightMsgSwap = "op_weight_msg_swap" DefaultWeightMsgCreateWar = 5 DefaultWeightMsgEditWar = 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 GenInitialNumberOfWars ¶
GenInitialNumberOfWars randomized initial number of wars
func GenMaxNumberOfWars ¶
GenMaxNumberOfWars randomized max number of wars
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 SimulateMsgCreateWar ¶
func SimulateMsgCreateWar(ak auth.AccountKeeper) simulation.Operation
func SimulateMsgEditWar ¶
func SimulateMsgEditWar(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.