Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenMinValidPerWindow(r *rand.Rand) sdk.Dec
- func GenRewardBand(r *rand.Rand) sdk.Dec
- func GenRewardDistributionWindow(r *rand.Rand) int64
- func GenSlashFraction(r *rand.Rand) sdk.Dec
- func GenSlashWindow(r *rand.Rand) int64
- func GenVotePeriod(r *rand.Rand) int64
- func GenVoteThreshold(r *rand.Rand) sdk.Dec
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgDelegateFeedConsent(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgExchangeRatePrevote(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation
- func SimulateMsgExchangeRateVote(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak authkeeper.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
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
DecodeStore unmarshals the KVPair's Value to the corresponding distribution type
func GenMinValidPerWindow ¶ added in v0.4.0
GenMinValidPerWindow randomized MinValidPerWindow
func GenRewardBand ¶ added in v0.4.0
GenRewardBand randomized RewardBand
func GenRewardDistributionWindow ¶ added in v0.4.0
GenRewardDistributionWindow randomized RewardDistributionWindow
func GenSlashFraction ¶ added in v0.4.0
GenSlashFraction randomized SlashFraction
func GenSlashWindow ¶ added in v0.4.0
GenSlashWindow randomized SlashWindow
func GenVotePeriod ¶ added in v0.4.0
GenVotePeriod randomized VotePeriod
func GenVoteThreshold ¶ added in v0.4.0
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
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.