simulation

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgExchangeRatePrevote = "op_weight_msg_exchange_rate_prevote"
	OpWeightMsgExchangeRateVote    = "op_weight_msg_exchange_rate_vote"
	OpWeightMsgDelegateFeedConsent = "op_weight_msg_exchange_feed_consent"
)

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 GenMinValidPerWindow added in v0.4.0

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

GenMinValidPerWindow randomized MinValidPerWindow

func GenRewardBand added in v0.4.0

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

GenRewardBand randomized RewardBand

func GenRewardDistributionWindow added in v0.4.0

func GenRewardDistributionWindow(r *rand.Rand) int64

GenRewardDistributionWindow randomized RewardDistributionWindow

func GenSlashFraction added in v0.4.0

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

GenSlashFraction randomized SlashFraction

func GenSlashWindow added in v0.4.0

func GenSlashWindow(r *rand.Rand) int64

GenSlashWindow randomized SlashWindow

func GenVotePeriod added in v0.4.0

func GenVotePeriod(r *rand.Rand) int64

GenVotePeriod randomized VotePeriod

func GenVoteThreshold added in v0.4.0

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

GenVoteThreshold randomized VoteThreshold

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 RandomizedGenState added in v0.4.0

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for oracle

func SimulateMsgDelegateFeedConsent

func SimulateMsgDelegateFeedConsent(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgDelegateFeedConsent generates a MsgDelegateFeedConsent with random values. nolint: funlen

func SimulateMsgExchangeRatePrevote added in v0.4.0

func SimulateMsgExchangeRatePrevote(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgExchangeRatePrevote generates a MsgExchangeRatePrevote with random values. nolint: funlen

func SimulateMsgExchangeRateVote added in v0.4.0

func SimulateMsgExchangeRateVote(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgExchangeRateVote generates a MsgExchangeRateVote with random values. nolint: funlen

func WeightedOperations added in v0.4.0

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

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