Documentation ¶
Index ¶
- Constants
- func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgWrappedBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgWrappedDelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgWrappedUndelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgWrappedDelegate = "op_weight_msg_wrapped_delegate" OpWeightMsgWrappedUndelegate = "op_weight_msg_wrapped_undelegate" OpWeightMsgWrappedBeginRedelegate = "op_weight_msg_wrapped_begin_redelegate" )
Simulation operation weights constants
View Source
const (
EpochIntervalKey = "epoch_interval"
)
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func FindAccount ¶
FindAccount find a specific address from an account list
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding epoching type.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for staking
func SimulateMsgWrappedBeginRedelegate ¶
func SimulateMsgWrappedBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values
func SimulateMsgWrappedDelegate ¶
func SimulateMsgWrappedDelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgDelegate generates a MsgDelegate with random values
func SimulateMsgWrappedUndelegate ¶
func SimulateMsgWrappedUndelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgUndelegate generates a MsgUndelegate with random values
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.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.