Documentation ¶
Index ¶
- Constants
- func GetRandomMessage(r *rand.Rand) string
- func GetRandomReasonDescription(r *rand.Rand) string
- func GetRandomReasonTitle(r *rand.Rand) string
- func GetRandomStandardReasons(r *rand.Rand, num int) []types.StandardReason
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(_ *rand.Rand) []simtypes.ParamChange
- func RandomReason(r *rand.Rand, reasons []types.Reason) types.Reason
- func RandomReport(r *rand.Rand, reports []types.Report) types.Report
- func RandomStandardReason(r *rand.Rand, reasons []types.StandardReason) types.StandardReason
- func RandomizeGenState(simState *module.SimulationState)
- func SimulateMsgAddReason(sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgCreateReport(k keeper.Keeper, sk subspaceskeeper.Keeper, pk postskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgDeleteReport(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgRemoveReason(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgSupportStandardReason(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgCreateReport = "op_weight_msg_create_report" OpWeightMsgDeleteReport = "op_weight_msg_delete_report" OpWeightMsgSupportStandardReason = "op_weight_msg_support_standard_reason" OpWeightMsgAddReason = "op_weight_msg_add_reason" OpWeightMsgRemoveReason = "op_weight_msg_remove_reason" DefaultGasValue = 200_000 )
Simulation operation weights constants #nosec G101 -- This is a false positive
Variables ¶
This section is empty.
Functions ¶
func GetRandomMessage ¶
GetRandomMessage returns a random reporting message
func GetRandomReasonDescription ¶
GetRandomReasonDescription returns a random reason description
func GetRandomReasonTitle ¶
GetRandomReasonTitle returns a random reason title
func GetRandomStandardReasons ¶
func GetRandomStandardReasons(r *rand.Rand, num int) []types.StandardReason
GetRandomStandardReasons returns a randomly generated slice of standard reason
func NewDecodeStore ¶
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding reports type
func ParamChanges ¶
func ParamChanges(_ *rand.Rand) []simtypes.ParamChange
func RandomReason ¶
RandomReason returns a random reason from the given slice
func RandomReport ¶
RandomReport returns a random report from the given slice
func RandomStandardReason ¶
func RandomStandardReason(r *rand.Rand, reasons []types.StandardReason) types.StandardReason
RandomStandardReason returns a random standard reason from the given slice
func RandomizeGenState ¶
func RandomizeGenState(simState *module.SimulationState)
RandomizeGenState generates a random GenesisState for subspaces
func SimulateMsgAddReason ¶
func SimulateMsgAddReason( sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgAddReason tests and runs a single MsgAddReason
func SimulateMsgCreateReport ¶
func SimulateMsgCreateReport( k keeper.Keeper, sk subspaceskeeper.Keeper, pk postskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgCreateReport tests and runs a single MsgCreateReport
func SimulateMsgDeleteReport ¶
func SimulateMsgDeleteReport( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteReport tests and runs a single msg delete subspace
func SimulateMsgRemoveReason ¶
func SimulateMsgRemoveReason( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgRemoveReason tests and runs a single MsgRemoveReason
func SimulateMsgSupportStandardReason ¶
func SimulateMsgSupportStandardReason( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgSupportStandardReason tests and runs a single MsgSupportStandardReason
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, sk subspaceskeeper.Keeper, pk postskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.