Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenBasePool(r *rand.Rand) sdk.Dec
- func GenMinSpread(r *rand.Rand) sdk.Dec
- func GenPoolRecoveryPeriod(r *rand.Rand) int64
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgSwap(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation
- func SimulateMsgSwapSend(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak authkeeper.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const (
OpWeightMsgSwap = "op_weight_msg_swap"
)
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 GenBasePool ¶ added in v0.4.0
GenBasePool randomized BasePool
func GenMinSpread ¶ added in v0.4.0
GenMinSpread randomized MinSpread
func GenPoolRecoveryPeriod ¶ added in v0.4.0
GenPoolRecoveryPeriod randomized PoolRecoveryPeriod
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 gov
func SimulateMsgSwap ¶ added in v0.4.0
func SimulateMsgSwap(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation
SimulateMsgSwap generates a MsgSwap with random values. nolint: funlen
func SimulateMsgSwapSend ¶ added in v0.4.0
func SimulateMsgSwapSend(ak authkeeper.AccountKeeper, ok oracle.Keeper) simulation.Operation
SimulateMsgSwapSend generates a MsgSwapSend with random values. nolint: funlen
func WeightedOperations ¶ added in v0.4.0
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak authkeeper.AccountKeeper, ok oracle.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.