simulation

package
v0.4.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightSubmitTaxRateUpdateProposal      = "op_weight_submit_tax_rate_update_proposal"
	OpWeightSubmitRewardWeightUpdateProposal = "op_weight_submit_reward_weight_update_proposal"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func DecodeStore added in v0.4.0

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's Value to the corresponding distribution type

func GenMiningIncrement added in v0.4.0

func GenMiningIncrement(r *rand.Rand) sdk.Dec

GenMiningIncrement randomized MiningIncrement

func GenRewardPolicy added in v0.4.0

func GenRewardPolicy(r *rand.Rand) types.PolicyConstraints

GenRewardPolicy randomized RewardPolicy

func GenSeigniorageBurdenTarget added in v0.4.0

func GenSeigniorageBurdenTarget(r *rand.Rand) sdk.Dec

GenSeigniorageBurdenTarget randomized SeigniorageBurdenTarget

func GenTaxPolicy added in v0.4.0

func GenTaxPolicy(r *rand.Rand) types.PolicyConstraints

GenTaxPolicy randomized TaxPolicy

func GenWindowLong added in v0.4.0

func GenWindowLong(r *rand.Rand) int64

GenWindowLong randomized WindowLong

func GenWindowProbation added in v0.4.0

func GenWindowProbation(r *rand.Rand) int64

GenWindowProbation randomized WindowProbation

func GenWindowShort added in v0.4.0

func GenWindowShort(r *rand.Rand) int64

GenWindowShort randomized WindowShort

func ParamChanges added in v0.4.0

func ParamChanges(r *rand.Rand) []simulation.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func ProposalContents added in v0.4.0

func ProposalContents(k keeper.Keeper) []simulation.WeightedProposalContent

ProposalContents defines the module weighted proposals' contents

func RandomizedGenState added in v0.4.0

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for gov

func SimulateRewardWeightUpdateProposalContent

func SimulateRewardWeightUpdateProposalContent(k keeper.Keeper) simulation.ContentSimulatorFn

SimulateRewardWeightUpdateProposalContent generates random reward-weight-update proposal content nolint: funlen

func SimulateTaxRateUpdateProposalContent

func SimulateTaxRateUpdateProposalContent(k keeper.Keeper) simulation.ContentSimulatorFn

SimulateTaxRateUpdateProposalContent generates random tax-rate-update proposal content nolint: funlen

Types

This section is empty.

Jump to

Keyboard shortcuts

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