Documentation ¶
Index ¶
- Constants
- func GenHistoricStampPeriod(r *rand.Rand) uint64
- func GenMaximumMedianStamps(r *rand.Rand) uint64
- func GenMaximumPriceStamps(r *rand.Rand) uint64
- func GenMedianStampPeriod(r *rand.Rand) uint64
- func GenMinValidPerWindow(r *rand.Rand) math.LegacyDec
- func GenRewardBand(r *rand.Rand) math.LegacyDec
- func GenRewardDistributionWindow(r *rand.Rand) uint64
- func GenSlashFraction(r *rand.Rand) math.LegacyDec
- func GenSlashWindow(r *rand.Rand) uint64
- func GenVotePeriod(r *rand.Rand) uint64
- func GenVoteThreshold(r *rand.Rand) math.LegacyDec
- func GenerateExchangeRatesString(prices map[string]math.LegacyDec) string
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAggregateExchangeRatePrevote(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgAggregateExchangeRateVote(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgDelegateFeedConsent(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, ak types.AccountKeeper, bk bankkeeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgAggregateExchangeRatePrevote = "op_weight_msg_exchange_rate_aggregate_prevote" //nolint: gosec OpWeightMsgAggregateExchangeRateVote = "op_weight_msg_exchange_rate_aggregate_vote" //nolint: gosec OpWeightMsgDelegateFeedConsent = "op_weight_msg_exchange_feed_consent" //nolint: gosec )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GenHistoricStampPeriod ¶
GenHistoricStampPeriod produces a randomized HistoricStampPeriod in the range of [100, 1000]
func GenMaximumMedianStamps ¶
GenMaximumMedianStamps produces a randomized MaximumMedianStamps in the range of [10, 100]
func GenMaximumPriceStamps ¶
GenMaximumPriceStamps produces a randomized MaximumPriceStamps in the range of [10, 100]
func GenMedianStampPeriod ¶
GenMedianStampPeriod produces a randomized MedianStampPeriod in the range of [100, 1000]
func GenMinValidPerWindow ¶
GenMinValidPerWindow produces a randomized MinValidPerWindow in the range of [0, 0.500]
func GenRewardBand ¶
GenRewardBand produces a randomized RewardBand in the range of [0.000, 0.100]
func GenRewardDistributionWindow ¶
GenRewardDistributionWindow produces a randomized RewardDistributionWindow in the range of [100, 100000]
func GenSlashFraction ¶
GenSlashFraction produces a randomized SlashFraction in the range of [0.000, 0.100]
func GenSlashWindow ¶
GenSlashWindow produces a randomized SlashWindow in the range of [100, 100000]
func GenVotePeriod ¶
GenVotePeriod produces a randomized VotePeriod in the range of [5, 100]
func GenVoteThreshold ¶
GenVoteThreshold produces a randomized VoteThreshold in the range of [0.34, 0.67]
func GenerateExchangeRatesString ¶
GenerateExchangeRatesString generates a canonical string representation of the aggregated exchange rates.
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding oracle type.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for oracle
func SimulateMsgAggregateExchangeRatePrevote ¶
func SimulateMsgAggregateExchangeRatePrevote( ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, voteHashMap map[string]string, ) simtypes.Operation
SimulateMsgAggregateExchangeRatePrevote generates a MsgAggregateExchangeRatePrevote with random values.
func SimulateMsgAggregateExchangeRateVote ¶
func SimulateMsgAggregateExchangeRateVote( ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, voteHashMap map[string]string, ) simtypes.Operation
SimulateMsgAggregateExchangeRateVote generates a MsgAggregateExchangeRateVote with random values.
func SimulateMsgDelegateFeedConsent ¶
func SimulateMsgDelegateFeedConsent(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper) simtypes.Operation
SimulateMsgDelegateFeedConsent generates a MsgDelegateFeedConsent with random values.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.