helpers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGenTxGas = 10000000
	SimAppChainID   = "simulation-app"
)

SimAppChainID hardcoded chainID for simulation

Variables

This section is empty.

Functions

func RandIntBetween

func RandIntBetween(r *rand.Rand, min, max int) int

func RandIntBetweenWith0

func RandIntBetweenWith0(r *rand.Rand, min, max int64) int64

func RandIntWith0

func RandIntWith0(r *rand.Rand, max int) int

func RandPositiveInt

func RandPositiveInt(r *rand.Rand, max math.Int) (math.Int, error)

func RandStringOfLength

func RandStringOfLength(n int) string

func RandSubsetCoins

func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins

func RandTimestamp

func RandTimestamp(r *rand.Rand) time.Time

func RandomAmount

func RandomAmount(r *rand.Rand, max math.Int) math.Int

func RandomDecAmount

func RandomDecAmount(r *rand.Rand, max sdk.Dec) sdk.Dec

func RandomInt

func RandomInt(r *rand.Rand, max int) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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