simulation

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OpWeightMsgAggregateExchangeRateVote = "op_weight_msg_exchange_rate_aggregate_vote"
	OpWeightMsgDelegateFeedConsent       = "op_weight_msg_exchange_feed_consent"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func GenMinValidPerWindow

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

GenMinValidPerWindow randomized MinValidPerWindow

func GenRewardBand

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

GenRewardBand randomized RewardBand

func GenSlashFraction

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

GenSlashFraction randomized SlashFraction

func GenSlashWindow

func GenSlashWindow(r *rand.Rand) uint64

GenSlashWindow randomized SlashWindow

func GenVotePeriod

func GenVotePeriod(r *rand.Rand) uint64

GenVotePeriod randomized VotePeriod

func GenVoteThreshold

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

GenVoteThreshold randomized VoteThreshold

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding oracle type.

func ParamChanges

func ParamChanges(_ *rand.Rand) []simtypes.ParamChange

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for oracle

func SimulateMsgAggregateExchangeRateVote

func SimulateMsgAggregateExchangeRateVote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgAggregateExchangeRateVote generates a MsgAggregateExchangeRateVote with random values. nolint: funlen

func SimulateMsgDelegateFeedConsent

func SimulateMsgDelegateFeedConsent(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgDelegateFeedConsent generates a MsgDelegateFeedConsent with random values. nolint: funlen

func WeightedOperations

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