simtesting

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSimAccount

func GetSimAccount(address sdk.Address, accs []simtypes.Account) (simtypes.Account, bool)

GetSimAccount gets the Account with the given address

func RandomCoin

func RandomCoin(r *rand.Rand, denom string, maxAmount int) sdk.Coin

RandomCoin returns a random coin having the specified denomination and the max given amount

func RandomDuration

func RandomDuration(r *rand.Rand, min time.Duration, max time.Duration) time.Duration

RandomDuration returns a random duration between the min and max

func RandomFutureTime

func RandomFutureTime(r *rand.Rand, currentTime time.Time) time.Time

RandomFutureTime returns a random future time

func SendMsg

SendMsg sends a transaction with the specified message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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