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 SimulateMsgUnlockPeriodLock(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUnlockTokens(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 DefaultWeightMsgUnlockTokens int = 10 DefaultWeightMsgBeginUnlocking int = 10 DefaultWeightMsgUnlockPeriodLock int = 10 OpWeightMsgLockTokens = "op_weight_msg_create_lockup" OpWeightMsgBeginUnlockingAll = "op_weight_msg_begin_unlocking_all" OpWeightMsgUnlockTokens = "op_weight_msg_unlock_tokens" OpWeightMsgBeginUnlocking = "op_weight_msg_begin_unlocking" OpWeightMsgUnlockPeriodLock = "op_weight_msg_unlock_period_lock" )
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 SimulateMsgUnlockPeriodLock ¶
func SimulateMsgUnlockPeriodLock(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
func SimulateMsgUnlockTokens ¶
func SimulateMsgUnlockTokens(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
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.