Documentation ¶
Index ¶
- Constants
- func Max(x, y int) int
- func Min(x, y int) int
- func RandomAccountLock(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, addr sdk.AccAddress) *types.PeriodLock
- func SimulateMsgBeginUnlocking(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgBeginUnlockingAll(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgLockTokens(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( DefaultWeightMsgLockTokens int = 10 DefaultWeightMsgBeginUnlockingAll int = 10 DefaultWeightMsgBeginUnlocking int = 10 OpWeightMsgLockTokens = "op_weight_msg_create_lockup" OpWeightMsgBeginUnlockingAll = "op_weight_msg_begin_unlocking_all" OpWeightMsgBeginUnlocking = "op_weight_msg_begin_unlocking" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func RandomAccountLock ¶
func RandomAccountLock(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, addr sdk.AccAddress) *types.PeriodLock
func SimulateMsgBeginUnlocking ¶
func SimulateMsgBeginUnlocking(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgBeginUnlockingAll ¶
func SimulateMsgBeginUnlockingAll(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgLockTokens ¶
func SimulateMsgLockTokens(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgLockTokens generates a MsgLockTokens with random values
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, 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.