network

package
v0.0.0-...-d7a504a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const FlagPattern = "--%s=%s"

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() network.Config

DefaultConfig will initialize config for the network with custom application, genesis and single validator. All other parameters are inherited from cosmos-sdk/testutil/network.DefaultConfig

func SetupQueryCommonFlags

func SetupQueryCommonFlags(t *testing.T) []string

func SetupTxCommonFlags

func SetupTxCommonFlags(t *testing.T, nc *Context) []string

Types

type Config

type Config = network.Config

type Context

type Context struct {
	Net *network.Network
	Val *cosmosnetwork.Validator
	Ctx client.Context
}

func Setup

func Setup(t *testing.T) *Context

func SetupWithDeployments

func SetupWithDeployments(t *testing.T, n int) (*Context, []*types.Deployment)

func SetupWithDeploymentsAndAddr

func SetupWithDeploymentsAndAddr(t *testing.T, n int, addr string) (*Context, []*types.Deployment)

type Network

type Network = network.Network

func New

func New(t *testing.T, configs ...Config) *Network

New creates instance with fully configured cosmos network. Accepts optional config, that will be used in place of the DefaultConfig() if provided.

type TxTestCase

type TxTestCase struct {
	Name string
	Args []string
	Err  error
	Code uint32
}

Jump to

Keyboard shortcuts

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