testutils

package
v0.0.1-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomMsgs

func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg

func CreateRandomTx

func CreateRandomTx(txCfg client.TxConfig, account Account, nonce, numberMsgs, timeout uint64, gasLimit uint64, fees ...sdk.Coin) (authsigning.Tx, error)

func CreateRandomTxBz

func CreateRandomTxBz(txCfg client.TxConfig, account Account, nonce, numberMsgs, timeout, gasLimit uint64) ([]byte, error)

Types

type Account

type Account struct {
	PrivKey cryptotypes.PrivKey
	PubKey  cryptotypes.PubKey
	Address sdk.AccAddress
	ConsKey cryptotypes.PrivKey
}

func RandomAccounts

func RandomAccounts(r *rand.Rand, n int) []Account

func (Account) Equals

func (acc Account) Equals(acc2 Account) bool

Directories

Path Synopsis
Package keeper provides methods to initialize SDK keepers with local storage for test purposes
Package keeper provides methods to initialize SDK keepers with local storage for test purposes
Package networksuite provides a base test suite for tests that need a local network instance
Package networksuite provides a base test suite for tests that need a local network instance

Jump to

Keyboard shortcuts

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