Documentation ¶
Index ¶
- Constants
- 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 GenVotePeriod(r *rand.Rand) uint64
- func GenVoteThreshold(r *rand.Rand) sdk.Dec
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAggregateExchangeRatePrevote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgAggregateExchangeRateVote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgDelegateFeedConsent(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) 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
Variables ¶
This section is empty.
Functions ¶
func GenMinValidPerWindow ¶
GenMinValidPerWindow randomized MinValidPerWindow
func GenRewardDistributionWindow ¶
GenRewardDistributionWindow randomized RewardDistributionWindow
func GenSlashFraction ¶
GenSlashFraction randomized SlashFraction
func GenSlashWindow ¶
GenSlashWindow randomized SlashWindow
func GenVoteThreshold ¶
GenVoteThreshold randomized VoteThreshold
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 types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgAggregateExchangeRatePrevote generates a MsgAggregateExchangeRatePrevote with random values. nolint: funlen
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 ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.