Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreateSession(ak auth.AccountKeeper) sim.Operation
- func WeightedOperations(appParams sim.AppParams, cdc *codec.Codec, k keeper.Keeper, ...) sim.WeightedOperations
- type SessionData
Constants ¶
View Source
const (
OpWeightMsgCreatePost = "op_weight_msg_create_session"
)
Simulation operation weights constants
Variables ¶
View Source
var (
RandomNamespaces = []string{"cosmos", "iris", "kava", "regen"}
)
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding magpie type
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for auth
func SimulateMsgCreateSession ¶
func SimulateMsgCreateSession(ak auth.AccountKeeper) sim.Operation
SimulateMsgCreateSession tests and runs a single msg create session where the post creator account already exists nolint: funlen
func WeightedOperations ¶
func WeightedOperations(appParams sim.AppParams, cdc *codec.Codec, k keeper.Keeper, ak auth.AccountKeeper) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
type SessionData ¶
type SessionData struct { Owner simulation.Account Namespace string ExternalOwner string PubKey string Signature string }
func RandomSessionData ¶
func RandomSessionData(simAccount simulation.Account, r *rand.Rand) SessionData
Click to show internal directories.
Click to hide internal directories.