network

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package network contains utils to setup the chain network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = network.Config // nolint:revive // simapp test var

type Network

type Network = network.Network // nolint:revive // simapp test var

type Option

type Option func(*network.Config)

Option is an option pattern function used fot the test network customisations.

func WithGenesisOverride

func WithGenesisOverride(override func(map[string]json.RawMessage) map[string]json.RawMessage) Option

WithGenesisOverride returns genesis override Option.

type TestNetwork

type TestNetwork struct {
	*network.Network
}

TestNetwork defines the test network wrapper.

func New

func New(t *testing.T, opts ...Option) *TestNetwork

New setups the test network.

func (*TestNetwork) TxValidator1Args

func (testNetwork *TestNetwork) TxValidator1Args() []string

TxValidator1Args returns the tx params for the 1s network validator.

func (*TestNetwork) Validator1Address

func (testNetwork *TestNetwork) Validator1Address() sdk.AccAddress

Validator1Address returns the address of the 1st validator in the network.

func (*TestNetwork) Validator1Ctx

func (testNetwork *TestNetwork) Validator1Ctx() client.Context

Validator1Ctx returns the context of the 1st validator in the network.

Jump to

Keyboard shortcuts

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