Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.BinaryMarshaler) func(kvA, kvB kv.Pair) string
- func RandomPostID(r *rand.Rand) string
- func RandomReportMessage(r *rand.Rand) string
- func RandomReportTypes(r *rand.Rand) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgReportPost(pk postskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, pk posts.Keeper, ...) sim.WeightedOperations
- type ReportsData
Constants ¶
View Source
const ( OpWeightMsgReportPost = "op_weight_msg_report_post" DefaultGasValue = 200000 )
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶ added in v0.15.0
func NewDecodeStore(cdc codec.BinaryMarshaler) func(kvA, kvB kv.Pair) string
NewDecodeStore unmarshalls the KVPair's Reports to the corresponding reports type
func RandomPostID ¶
RandomPostID returns a randomly generated postID
func RandomReportMessage ¶
func RandomReportTypes ¶
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
func SimulateMsgReportPost ¶
func SimulateMsgReportPost( pk postskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgReportPost tests and runs a single MsgReportPost created by a random account. nolint: funlen
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, pk posts.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
type ReportsData ¶
func RandomReportsData ¶
RandomReportsData returns a randomly generated ReportsData based on the given random posts and accounts list
Click to show internal directories.
Click to hide internal directories.