simapp

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T, dir string, withDefaultGenesisState bool) *app.App

New creates application instance with in-memory database and disabled logging.

func NewAppConstructor

func NewAppConstructor() network.AppConstructor

NewAppConstructor returns a new simapp AppConstructor.

func NewDefaultGenesisState

func NewDefaultGenesisState(cdc codec.JSONCodec) app.GenesisState

NewDefaultGenesisState generates the default state for the application.

func SetupWithGenesisValSet added in v0.5.0

func SetupWithGenesisValSet(t *testing.T, nolusApp *app.App, genesisState app.GenesisState, valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, balances ...banktypes.Balance) *app.App

SetupWithGenesisValSet initializes a new GaiaApp with a validator set and genesis accounts that also act as delegators. For simplicity, each validator is bonded with a delegation of one consensus engine unit in the default token of the GaiaApp from first genesis account. A Nop logger is set in GaiaApp.

func TestSetup

func TestSetup(t *testing.T) (*app.App, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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