simulation

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSegmentLength       = "max_segment_length"
	MinSegmentLength       = "min_segment_length"
	MaxNameLevels          = "max_namne_levels"
	AllowUnrestrictedNames = "allow_unrestricted_names"
)

Simulation parameter constants

View Source
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

func GenAllowUnrestrictedNames(r *rand.Rand) bool

GenAllowUnrestrictedNames returns a randomized AllowUnrestrictedNames parameter.

func GenMaxNameLevels

func GenMaxNameLevels(r *rand.Rand) uint32

GenMaxNameLevels randomized Maximum number of segment levels

func GenMaxSegmentLength

func GenMaxSegmentLength(r *rand.Rand) uint32

GenMaxSegmentLength randomized Max Segment Length

func GenMinSegmentLength

func GenMinSegmentLength(r *rand.Rand) uint32

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL