Documentation ¶
Index ¶
- Constants
- func GenerateRandomDisplayValue(r *rand.Rand) string
- func GenerateRandomShorthandCode(r *rand.Rand) string
- func GenerateRandomSubspaceReactionsParams(r *rand.Rand, subspaceID uint64) types.SubspaceReactionsParams
- func GetRandomFreeTextValue(r *rand.Rand, limit uint32) string
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomReaction(r *rand.Rand, reactions []types.Reaction) types.Reaction
- func RandomRegisteredReaction(r *rand.Rand, reactions []types.RegisteredReaction) types.RegisteredReaction
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddReaction(k keeper.Keeper, sk subspaceskeeper.Keeper, pk postskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgAddRegisteredReaction(sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgEditRegisteredReaction(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgRemoveReaction(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgRemoveRegisteredReaction(k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgSetReactionsParams(sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgAddReaction = "op_weight_msg_add_reactions" OpWeightMsgRemoveReaction = "op_weight_msg_remove_reaction" OpWeightMsgAddRegisteredReaction = "op_weight_msg_add_registered_reaction" OpWeightMsgEditRegisteredReaction = "op_weight_msg_edit_registered_reaction" OpWeightMsgRemoveRegisteredReaction = "op_weight_msg_remove_registered_reaction" OpWeightMsgSetReactionsParams = "op_weight_msg_set_reactions_params" DefaultGasValue = 200_000 )
Simulation operation weights constants #nosec G101 -- This is a false positive
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomDisplayValue ¶
GenerateRandomDisplayValue returns a random display value
func GenerateRandomShorthandCode ¶
GenerateRandomShorthandCode returns a random shorthand code
func GenerateRandomSubspaceReactionsParams ¶
func GenerateRandomSubspaceReactionsParams(r *rand.Rand, subspaceID uint64) types.SubspaceReactionsParams
GenerateRandomSubspaceReactionsParams returns a randomly reactions params
func GetRandomFreeTextValue ¶
GetRandomFreeTextValue returns a random free text value based on the given limit
func NewDecodeStore ¶
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding reactions type
func RandomReaction ¶
RandomReaction returns a random reaction from the slice given
func RandomRegisteredReaction ¶
func RandomRegisteredReaction(r *rand.Rand, reactions []types.RegisteredReaction) types.RegisteredReaction
RandomRegisteredReaction returns a random registered reaction from the slice given
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState
func SimulateMsgAddReaction ¶
func SimulateMsgAddReaction( k keeper.Keeper, sk subspaceskeeper.Keeper, pk postskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgAddReaction tests and runs a single MsgAddReaction
func SimulateMsgAddRegisteredReaction ¶
func SimulateMsgAddRegisteredReaction( sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgAddRegisteredReaction tests and runs a single MsgAddRegisteredReaction
func SimulateMsgEditRegisteredReaction ¶
func SimulateMsgEditRegisteredReaction( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgEditRegisteredReaction tests and runs a single MsgEditRegisteredReaction
func SimulateMsgRemoveReaction ¶
func SimulateMsgRemoveReaction( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgRemoveReaction tests and runs a single MsgRemoveReaction
func SimulateMsgRemoveRegisteredReaction ¶
func SimulateMsgRemoveRegisteredReaction( k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgRemoveRegisteredReaction tests and runs a single MsgRemoveRegisteredReaction
func SimulateMsgSetReactionsParams ¶
func SimulateMsgSetReactionsParams( sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgSetReactionsParams tests and runs a single MsgSetReactionsParams
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.