simulation

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWeightMsgLockTokens        int = 10
	DefaultWeightMsgBeginUnlockingAll int = 10
	DefaultWeightMsgBeginUnlocking    int = 10
	OpWeightMsgLockTokens                 = "op_weight_msg_create_lockup"       //nolint:gosec
	OpWeightMsgBeginUnlockingAll          = "op_weight_msg_begin_unlocking_all" //nolint:gosec
	OpWeightMsgBeginUnlocking             = "op_weight_msg_begin_unlocking"     //nolint:gosec
)

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