Documentation ¶
Index ¶
- Constants
- func GenAllowUnrestrictedNames(r *rand.Rand) bool
- func GenMaxNameLevels(r *rand.Rand) uint32
- func GenMaxSegmentLength(r *rand.Rand) uint32
- func GenMinSegmentLength(r *rand.Rand) uint32
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCreateRootNameProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
Constants ¶
const ( MaxSegmentLength = "max_segment_length" MinSegmentLength = "min_segment_length" MaxNameLevels = "max_namne_levels" AllowUnrestrictedNames = "allow_unrestricted_names" )
Simulation parameter constants
const OpWeightSubmitCreateRootNameProposal = "op_weight_submit_create_root_name_proposal"
OpWeightSubmitCreateRootNameProposal app params key for create root name proposal
Variables ¶
This section is empty.
Functions ¶
func GenAllowUnrestrictedNames ¶
GenAllowUnrestrictedNames returns a randomized AllowUnrestrictedNames parameter.
func GenMaxNameLevels ¶
GenMaxNameLevels randomized Maximum number of segment levels
func GenMaxSegmentLength ¶
GenMaxSegmentLength randomized Max Segment Length
func GenMinSegmentLength ¶
GenMinSegmentLength randomized minimum segment name length
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func ProposalContents ¶
func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for name
func SimulateCreateRootNameProposalContent ¶
func SimulateCreateRootNameProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateRootNameProposalContent generates random create-root-name proposal content
Types ¶
This section is empty.