Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomGenesisAccount(r *rand.Rand, accounts []authtypes.GenesisAccount) authtypes.GenesisAccount
- func RandomRelationship(r *rand.Rand, relationships []types.Relationship) types.Relationship
- func RandomUserBlock(r *rand.Rand, userBlocks []types.UserBlock) types.UserBlock
- func RandomizedGenState(simsState *module.SimulationState)
- func SimulateMsgBlockUser(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgCreateRelationship(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgDeleteRelationship(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgUnblockUser(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgCreateRelationship = "op_weight_msg_create_relationship" OpWeightMsgDeleteRelationship = "op_weight_msg_delete_relationship" OpWeightMsgBlockUser = "op_weight_msg_block_user" OpWeightMsgUnBlockUser = "op_weight_msg_unblock_user" DefaultGasValue = 200000 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding relationships type
func RandomGenesisAccount ¶
func RandomGenesisAccount(r *rand.Rand, accounts []authtypes.GenesisAccount) authtypes.GenesisAccount
RandomGenesisAccount picks and returns a random genesis account from an array
func RandomRelationship ¶
func RandomRelationship(r *rand.Rand, relationships []types.Relationship) types.Relationship
RandomRelationship picks and returns a random relationships from an array
func RandomUserBlock ¶
RandomUserBlock picks and returns a random user block from an array
func RandomizedGenState ¶
func RandomizedGenState(simsState *module.SimulationState)
RandomizedGenState generates a random GenesisState for profile
func SimulateMsgBlockUser ¶
func SimulateMsgBlockUser( k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgBlockUser tests and runs a single MsgBlockUser
func SimulateMsgCreateRelationship ¶
func SimulateMsgCreateRelationship( k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgCreateRelationship tests and runs a single MsgCreateRelationship
func SimulateMsgDeleteRelationship ¶
func SimulateMsgDeleteRelationship( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteRelationship tests and runs a single MsgDeleteRelationship
func SimulateMsgUnblockUser ¶
func SimulateMsgUnblockUser( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgUnblockUser tests and runs a single MsgUnblockUser
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, sk types.SubspacesKeeper, 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.