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 ProposalMsgs() []simtypes.WeightedProposalMsg
- 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 SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- 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
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec )
Simulation operation weights constants
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 ProposalMsgs ¶
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
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, ) 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, ) 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, ) 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, ) 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, ) simtypes.Operation
SimulateMsgSupportStandardReason tests and runs a single MsgSupportStandardReason
func SimulateMsgUpdateParams ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
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, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.