Documentation ¶
Index ¶
- Constants
- func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func ShiftDec(x sdk.Dec, places sdk.Int) sdk.Dec
- func SimulateMsgCdp(ak types.AccountKeeper, k keeper.Keeper, pfk types.PricefeedKeeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const (
OpWeightMsgCdp = "op_weight_msg_cdp"
)
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding cdp type
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.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 cdp
func SimulateMsgCdp ¶ added in v0.8.0
func SimulateMsgCdp(ak types.AccountKeeper, k keeper.Keeper, pfk types.PricefeedKeeper) simulation.Operation
SimulateMsgCdp generates a MsgCreateCdp or MsgDepositCdp with random values.
func WeightedOperations ¶ added in v0.8.0
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, k keeper.Keeper, pfk types.PricefeedKeeper, ) 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.