testapp

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenOracleAddress  = "nibi1zuxt7fvuxgj69mjxu3auca96zemqef5u2yemly"
	GenOracleMnemonic = "" /* 157-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func NewNibiruApp

func NewNibiruApp(shouldUseDefaultGenesis bool) *app.NibiruApp

NewTestApp creates an application instance ('app.NibiruApp') with an in-memory database ('tmdb.MemDB') and disabled logging. It either uses the application's default genesis state or a blank one.

func NewNibiruAppAndContext

func NewNibiruAppAndContext(shouldUseDefaultGenesis bool) (*app.NibiruApp, sdk.Context)

NewNibiruApp creates an 'app.NibiruApp' instance with an in-memory 'tmdb.MemDB' and fresh 'sdk.Context'.

func NewNibiruAppWithGenesis

func NewNibiruAppWithGenesis(gen app.GenesisState) *app.NibiruApp

NewTestAppWithGenesis initializes a chain with the given genesis state to creates an application instance ('app.NibiruApp'). This app uses an in-memory database ('tmdb.MemDB') and has logging disabled.

func NewTestGenesisState

func NewTestGenesisState(codec codec.Codec, inGenState app.GenesisState,
) (testGenState app.GenesisState)

NewTestGenesisState transforms 'inGenState' to add genesis parameter changes that are well suited to integration testing, then returns the transformed genesis. The blockchain genesis state is represented as a map from module identifier strings to raw json messages.

Args: - codec: Serializer for the module genesis state proto.Messages - inGenState: Input genesis state before the custom test setup is applied

func NewTestGenesisStateFromDefault

func NewTestGenesisStateFromDefault() app.GenesisState
NewTestGenesisStateFromDefault returns 'NewGenesisState' using the default

genesis as input. The blockchain genesis state is represented as a map from module identifier strings to raw json messages.

func PricefeedGenesis

func PricefeedGenesis() pricefeedtypes.GenesisState
PricefeedGenesis returns an x/pricefeed GenesisState with additional

configuration for convenience during integration tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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