Documentation ¶
Index ¶
- Constants
- func GetSimAccount(address sdk.Address, accs []simtypes.Account) *simtypes.Account
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func NewRandomProfile(r *rand.Rand, account authtypes.AccountI) *types.Profile
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomBio(r *rand.Rand) string
- func RandomBioParams(r *rand.Rand) sdk.Int
- func RandomDTag(r *rand.Rand) string
- func RandomDTagParams(r *rand.Rand) types.DTagParams
- func RandomDTagTransferRequest(r *rand.Rand, requests []types.DTagTransferRequest) types.DTagTransferRequest
- func RandomMoniker(r *rand.Rand) string
- func RandomMonikerParams(r *rand.Rand) types.MonikerParams
- func RandomProfile(r *rand.Rand, accounts []*types.Profile) *types.Profile
- func RandomProfileCover(r *rand.Rand) string
- func RandomProfilePic(r *rand.Rand) string
- func RandomRelationship(r *rand.Rand, relationships []types.Relationship) types.Relationship
- func RandomSubspace(r *rand.Rand) string
- func RandomUserBlock(r *rand.Rand, userBlocks []types.UserBlock) types.UserBlock
- func RandomizedGenState(simsState *module.SimulationState)
- func SimulateMsgAcceptDTagTransfer(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgBlockUser(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgCancelDTagTransfer(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgCreateRelationship(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgDeleteProfile(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgDeleteRelationship(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgRefuseDTagTransfer(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgRequestDTagTransfer(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgSaveProfile(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.JSONMarshaler, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgSaveProfile = "op_weight_msg_save_profile" OpWeightMsgDeleteProfile = "op_weight_msg_delete_profile" OpWeightMsgRequestDTagTransfer = "op_weight_msg_request_dtag_transfer" OpWeightMsgAcceptDTagTransfer = "op_weight_msg_accept_dtag_transfer_request" OpWeightMsgRefuseDTagTransfer = "op_weight_msg_refuse_dtag_transfer_request" OpWeightMsgCancelDTagTransfer = "op_weight_msg_cancel_dtag_transfer_request" 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 GetSimAccount ¶
GetProfile gets the profile having the given address from the accs list
func NewDecodeStore ¶ added in v0.15.0
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding relationships type
func NewRandomProfile ¶
NewRandomProfile return a random ProfileData from random data and the given account nolint:interfacer
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
func RandomBioParams ¶
RandomBioParams return a random biography param
func RandomDTagParams ¶
func RandomDTagParams(r *rand.Rand) types.DTagParams
RandomDTagParams return a random set of moniker params
func RandomDTagTransferRequest ¶ added in v0.12.0
func RandomDTagTransferRequest(r *rand.Rand, requests []types.DTagTransferRequest) types.DTagTransferRequest
RandomDTagTransferRequest picks and returns a random DTag transfer request from an array of requests
func RandomMonikerParams ¶
func RandomMonikerParams(r *rand.Rand) types.MonikerParams
RandomMonikerParams return a random set of moniker params
func RandomProfile ¶
RandomProfile picks and returns a random profile from an array
func RandomProfileCover ¶
RandomProfileCover return a random profile cover from the list of randomProfileCovers
func RandomProfilePic ¶
RandomProfilePic return a random profile pic value from the list of randomProfilePics given
func RandomRelationship ¶ added in v0.16.0
func RandomRelationship(r *rand.Rand, relationships []types.Relationship) types.Relationship
RandomRelationship picks and returns a random relationships from an array
func RandomSubspace ¶ added in v0.16.0
RandomSubspace returns a random post subspace from the above random subspaces
func RandomUserBlock ¶ added in v0.16.0
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 SimulateMsgAcceptDTagTransfer ¶ added in v0.12.0
func SimulateMsgAcceptDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgAcceptDTagTransfer tests and runs a single MsgAcceptDTagTransfer
func SimulateMsgBlockUser ¶ added in v0.16.0
func SimulateMsgBlockUser(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgBlockUser tests and runs a single msg block user nolint: funlen
func SimulateMsgCancelDTagTransfer ¶ added in v0.13.0
func SimulateMsgCancelDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgCancelDTagTransfer tests and runs a single MsgCancelDTagTransfer nolint: funlen
func SimulateMsgCreateRelationship ¶ added in v0.16.0
func SimulateMsgCreateRelationship(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgCreateRelationship tests and runs a single msg create relationships nolint: funlen
func SimulateMsgDeleteProfile ¶
func SimulateMsgDeleteProfile( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteProfile tests and runs a single msg delete profile where the creator already exists nolint: funlen
func SimulateMsgDeleteRelationship ¶ added in v0.16.0
func SimulateMsgDeleteRelationship( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteRelationship tests and runs a single msg delete relationships nolint: funlen
func SimulateMsgRefuseDTagTransfer ¶ added in v0.13.0
func SimulateMsgRefuseDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgRefuseDTagTransfer tests and runs a single MsgRefuseDTagTransfer nolint: funlen
func SimulateMsgRequestDTagTransfer ¶ added in v0.12.0
func SimulateMsgRequestDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgRequestDTagTransfer tests and runs a single MsgRequestDTagTransfer nolint: funlen
func SimulateMsgSaveProfile ¶
func SimulateMsgSaveProfile( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgSaveProfile tests and runs a single msg save profile where the creator already exists nolint: funlen
func SimulateMsgUnblockUser ¶ added in v0.16.0
func SimulateMsgUnblockUser(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgUnblockUser tests and runs a single msg unblock user nolint: funlen
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, k keeper.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.