simulation

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const OpWeightSubmitParamChangeProposal = "op_weight_submit_param_change_proposal"

OpWeightSubmitParamChangeProposal app params key for param change proposal

Variables

This section is empty.

Functions

func ProposalContents

func ProposalContents(paramChanges []simulation.ParamChange) []simulation.WeightedProposalContent

ProposalContents defines the module weighted proposals' contents

func SimulateParamChangeProposalContent

func SimulateParamChangeProposalContent(paramChangePool []simulation.ParamChange) simulation.ContentSimulatorFn

SimulateParamChangeProposalContent returns random parameter change content. It will generate a ParameterChangeProposal object with anywhere between 1 and the total amount of defined parameters changes, all of which have random valid values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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