testclient

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CometLocalTCPURL provides a default URL pointing to the localnet TCP endpoint.
	CometLocalTCPURL = "tcp://localhost:26657"

	// CometLocalWebsocketURL provides a default URL pointing to the localnet websocket endpoint.
	CometLocalWebsocketURL = "ws://localhost:26657/websocket"

	// TxConfig provided by app.AppConfig(), intended as a convenience for use in tests.
	TxConfig client.TxConfig
	// Marshaler provided by app.AppConfig(), intended as a convenience for use in tests.
	Marshaler codec.Codec
	// InterfaceRegistry provided by app.AppConfig(), intended as a convenience for use in tests.
	InterfaceRegistry codectypes.InterfaceRegistry
)

Functions

func NewKey

func NewKey(
	t *testing.T,
	name string,
	keyring cosmoskeyring.Keyring,
) (key *cosmoskeyring.Record, mnemonic string)

NewKey creates a new Secp256k1 key and mnemonic for the given name within the provided keyring.

func NewLocalnetClientCtx

func NewLocalnetClientCtx(t gocuke.TestingT, flagSet *pflag.FlagSet) *client.Context

NewLocalnetClientCtx creates a client context specifically tailored for localnet environments. The returned client context is initialized with encoding configurations, a default home directory, a default account retriever, and command flags.

Parameters: - t: The testing.T instance used for the current test. - flagSet: The set of flags to be read for initializing the client context.

Returns: - A pointer to a populated client.Context instance suitable for localnet usage.

func NewLocalnetFlagSet

func NewLocalnetFlagSet(t gocuke.TestingT) *pflag.FlagSet

NewLocalnetFlagSet creates a set of predefined flags suitable for a localnet testing environment.

Parameters: - t: The testing.T instance used for the current test.

Returns: - A flag set populated with flags tailored for localnet environments.

Types

This section is empty.

Directories

Path Synopsis
Package testblock provides helper functions for constructing real (e.g.
Package testblock provides helper functions for constructing real (e.g.
Package testdelegation provides helper functions for constructing real (e.g.
Package testdelegation provides helper functions for constructing real (e.g.
Package testeventsquery provides helper functions for constructing real (e.g.
Package testeventsquery provides helper functions for constructing real (e.g.
Package testqueryclients provides helper functions for contstructing mock AccountQueryClient objects parameterized call arguments, return value(s), and/or expectations thereof.
Package testqueryclients provides helper functions for contstructing mock AccountQueryClient objects parameterized call arguments, return value(s), and/or expectations thereof.

Jump to

Keyboard shortcuts

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