simulation

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL