Documentation ¶
Index ¶
- Constants
- Variables
- func GenMinValidPerWindow(r *rand.Rand) sdk.Dec
- func GenRewardBand(r *rand.Rand) sdk.Dec
- func GenRewardDistributionWindow(r *rand.Rand) uint64
- func GenSlashFraction(r *rand.Rand) sdk.Dec
- func GenSlashWindow(r *rand.Rand) uint64
- func GenTwapTrackingDuration(r *rand.Rand) time.Duration
- func GenVotePeriod(r *rand.Rand) uint64
- func GenVoteThreshold(r *rand.Rand) sdk.Dec
- func GenerateExchangeRatesString(prices map[string]sdk.Dec) string
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- 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(simstate *module.SimulationState, ak types.AccountKeeper, bk bankkeeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgAggregateExchangeRatePrevote = "op_weight_msg_exchange_rate_aggregate_prevote" OpWeightMsgAggregateExchangeRateVote = "op_weight_msg_exchange_rate_aggregate_vote" OpWeightMsgDelegateFeedConsent = "op_weight_msg_exchange_feed_consent" )
Simulation operation weights constants
const (
TwapTrackingDurationKey = "twap_tracking_duration"
)
Variables ¶
var (
Whitelist = []string{types.JunoSymbol, types.USDDenom}
)
Functions ¶
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.333, 0.666]
func GenerateExchangeRatesString ¶
GenerateExchangeRatesString generates a canonical string representation of the aggregated exchange rates.
func ParamChanges ¶
func ParamChanges(r *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 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( simstate *module.SimulationState, ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, ) simulation.WeightedOperations
Types ¶
This section is empty.