Back to godoc.org

Package simulation

v0.39.1
Latest Go to latest

The latest major version is .

Published: Aug 11, 2020 | License: Apache-2.0 | Module: github.com/cosmos/cosmos-sdk

Index

Constants

const OpWeightSubmitParamChangeProposal = "op_weight_submit_param_change_proposal"

OpWeightSubmitParamChangeProposal app params key for param change proposal

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier