simulation

package
v10.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.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"
	OpWeightMsgBeginUnlockingAll          = "op_weight_msg_begin_unlocking_all"
	OpWeightMsgBeginUnlocking             = "op_weight_msg_begin_unlocking"
)

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