Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string
- func GetSimAccount(address sdk.Address, accs []sim.Account) *sim.Account
- func NewRandomProfile(r *rand.Rand, account sdk.AccAddress) types.Profile
- func ParamChanges(r *rand.Rand) []simulation.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 RandomMoniker(r *rand.Rand) *string
- func RandomMonikerParams(r *rand.Rand) types.MonikerParams
- func RandomProfile(r *rand.Rand, accounts types.Profiles) types.Profile
- func RandomProfileCover(r *rand.Rand) *string
- func RandomProfilePic(r *rand.Rand) *string
- func RandomizedGenState(simsState *module.SimulationState)
- func SimulateMsgDeleteProfile(k keeper.Keeper, ak auth.AccountKeeper) sim.Operation
- func SimulateMsgSaveProfile(k keeper.Keeper, ak auth.AccountKeeper) sim.Operation
- func WeightedOperations(appParams sim.AppParams, cdc *codec.Codec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgSaveProfile = "op_weight_msg_save_profile" OpWeightMsgDeleteProfile = "op_weight_msg_delete_profile" DefaultGasValue = 200000 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding profile type
func GetSimAccount ¶
GetProfile gets the profile having the given address from the accs list
func NewRandomProfile ¶
NewRandomProfile return a random ProfileData from random data and the given account
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.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 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 RandomizedGenState ¶
func RandomizedGenState(simsState *module.SimulationState)
RandomizedGenState generates a random GenesisState for profile
func SimulateMsgDeleteProfile ¶
SimulateMsgDeleteProfile tests and runs a single msg delete profile where the creator already exists nolint: funlen
func SimulateMsgSaveProfile ¶
SimulateMsgSaveProfile tests and runs a single msg save profile where the creator already exists nolint: funlen
func WeightedOperations ¶
func WeightedOperations(appParams sim.AppParams, cdc *codec.Codec, k keeper.Keeper, ak auth.AccountKeeper) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.