simulation

package
v3.0.1-0...-844edf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Max

func Max(x, y int) int

func Min

func Min(x, y int) int

func RandomAccountLock

func RandomAccountLock(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, addr sdk.AccAddress) *types.PeriodLock

func SimulateMsgLockTokens

SimulateMsgLockTokens generates a MsgLockTokens with random values

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL