Documentation ¶
Index ¶
- Constants
- func GenBasePool(r *rand.Rand) sdk.Dec
- func GenMinSpread(r *rand.Rand) sdk.Dec
- func GenPoolRecoveryPeriod(r *rand.Rand) uint64
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgSwap(ak types.AccountKeeper, bk types.BankKeeper, ok types.OracleKeeper) simtypes.Operation
- func SimulateMsgSwapSend(ak types.AccountKeeper, bk types.BankKeeper, ok types.OracleKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const (
OpWeightMsgSwap = "op_weight_msg_swap"
)
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GenPoolRecoveryPeriod ¶
GenPoolRecoveryPeriod randomized PoolRecoveryPeriod
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding market type.
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 gov
func SimulateMsgSwap ¶
func SimulateMsgSwap( ak types.AccountKeeper, bk types.BankKeeper, ok types.OracleKeeper) simtypes.Operation
SimulateMsgSwap generates a MsgSwap with random values. nolint: funlen
func SimulateMsgSwapSend ¶
func SimulateMsgSwapSend( ak types.AccountKeeper, bk types.BankKeeper, ok types.OracleKeeper, ) simtypes.Operation
SimulateMsgSwapSend generates a MsgSwapSend with random values. nolint: funlen
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, ok types.OracleKeeper, ) 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.