Documentation ¶
Index ¶
- Constants
- func GetSimAccount(address sdk.Address, accs []simtypes.Account) *simtypes.Account
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func NewRandomProfile(r *rand.Rand, account authtypes.AccountI) *types.Profile
- func NewRandomProfiles(r *rand.Rand, accounts []simtypes.Account, number int) []*types.Profile
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomAppLinksParams(r *rand.Rand) types.AppLinksParams
- func RandomBio(r *rand.Rand) string
- func RandomBioParams(r *rand.Rand) types.BioParams
- func RandomChainLink(r *rand.Rand, links []types.ChainLink) types.ChainLink
- func RandomDTag(r *rand.Rand) string
- func RandomDTagParams(r *rand.Rand) types.DTagParams
- func RandomDTagTransferRequest(r *rand.Rand, requests []types.DTagTransferRequest) types.DTagTransferRequest
- func RandomNickname(r *rand.Rand) string
- func RandomNicknameParams(r *rand.Rand) types.NicknameParams
- func RandomOracleParams(r *rand.Rand) types.OracleParams
- func RandomProfile(r *rand.Rand, accounts []*types.Profile) *types.Profile
- func RandomProfileCover(r *rand.Rand) string
- func RandomProfilePic(r *rand.Rand) string
- func RandomizedGenState(simsState *module.SimulationState)
- func SimulateMsgAcceptDTagTransfer(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 SimulateMsgDeleteProfile(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgLinkChainAccount(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 SimulateMsgSetDefaultExternalAddress(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgUnlinkChainAccount(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 ( 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" OpWeightMsgLinkChainAccount = "op_weight_msg_link_chain_account" OpWeightMsgUnlinkChainAccount = "op_weight_msg_unlink_chain_account" OpWeightSetDefaultExternalAddress = "op_weight_set_default_external_address" DefaultGasValue = 200000 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GetSimAccount ¶
GetSimAccount gets the profile having the given address from the accs list
func NewDecodeStore ¶
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
func NewRandomProfiles ¶
NewRandomProfiles returns number random profiles
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
func RandomAppLinksParams ¶
func RandomAppLinksParams(r *rand.Rand) types.AppLinksParams
RandomAppLinksParams return a random appLinks param
func RandomBioParams ¶
RandomBioParams return a random biography param
func RandomChainLink ¶
RandomChainLink picks and returns a random chain link from an array of chain links
func RandomDTagParams ¶
func RandomDTagParams(r *rand.Rand) types.DTagParams
RandomDTagParams return a random set of nickname params
func RandomDTagTransferRequest ¶
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 RandomNickname ¶
RandomNickname return a random nickname
func RandomNicknameParams ¶
func RandomNicknameParams(r *rand.Rand) types.NicknameParams
RandomNicknameParams return a random set of nickname params
func RandomOracleParams ¶
func RandomOracleParams(r *rand.Rand) types.OracleParams
RandomOracleParams return a random oracle param
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 SimulateMsgAcceptDTagTransfer ¶
func SimulateMsgAcceptDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgAcceptDTagTransfer tests and runs a single MsgAcceptDTagTransfer
func SimulateMsgCancelDTagTransfer ¶
func SimulateMsgCancelDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgCancelDTagTransfer tests and runs a single MsgCancelDTagTransfer
func SimulateMsgDeleteProfile ¶
func SimulateMsgDeleteProfile( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteProfile tests and runs a single msg delete profile where the creator already exists
func SimulateMsgLinkChainAccount ¶
func SimulateMsgLinkChainAccount( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgLinkChainAccount tests and runs a single MsgLinkChainAccount
func SimulateMsgRefuseDTagTransfer ¶
func SimulateMsgRefuseDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgRefuseDTagTransfer tests and runs a single MsgRefuseDTagTransfer
func SimulateMsgRequestDTagTransfer ¶
func SimulateMsgRequestDTagTransfer( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgRequestDTagTransfer tests and runs a single MsgRequestDTagTransfer
func SimulateMsgSaveProfile ¶
func SimulateMsgSaveProfile( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgSaveProfile tests and runs a single msg save profile where the creator already exists
func SimulateMsgSetDefaultExternalAddress ¶
func SimulateMsgSetDefaultExternalAddress( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgSetDefaultExternalAddress tests and runs a single MsgSetDefaultExternalAddress
func SimulateMsgUnlinkChainAccount ¶
func SimulateMsgUnlinkChainAccount( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper, ) simtypes.Operation
SimulateMsgUnlinkChainAccount tests and runs a single MsgUnlinkChainAccount
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.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.