Documentation
¶
Index ¶
- func CleanupCustomNetwork()
- func DefaultConfig(options *NetworkConfigOptions) network.Config
- func DeployCustomNetwork(genesis string)
- func New(t *testing.T, configs ...network.Config) *network.Network
- func NewTestNetworkFixture() network.TestFixture
- func QueryCustomNetwork(query string) ([]byte, string, error)
- type Config
- type Network
- type NetworkConfigOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupCustomNetwork ¶
func CleanupCustomNetwork()
func DefaultConfig ¶
func DefaultConfig(options *NetworkConfigOptions) 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 If options are provided as nil, no custom options will be utilized.
func DeployCustomNetwork ¶
func DeployCustomNetwork(genesis string)
func New ¶
New creates instance with fully configured cosmos network. Accepts optional config, that will be used in place of the DefaultConfig() if provided.
func NewTestNetworkFixture ¶
func NewTestNetworkFixture() network.TestFixture
NewTestNetworkFixture returns a new simapp AppConstructor for network simulation tests
Types ¶
type NetworkConfigOptions ¶
type NetworkConfigOptions struct { // AppOptions allows for overriding the default AppOptions in the configuration. // This is useful for overriding things like command line flags which normally exist in this struct. AppOptions servertypes.AppOptions // OnNewApp is a function invoked immediately before the test network calls `app.New` to initialize // the application. It is called with the in-process validator running the application. OnNewApp func(val network.ValidatorI) }
NetworkConfigOptions represent configuration options that can be passed to the `DefaultConfig` method when creating a test network.
Click to show internal directories.
Click to hide internal directories.