testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenesisAccount

func AddGenesisAccount(addr sdk.AccAddress, appState map[string]json.RawMessage, cdc codec.Codec) (map[string]json.RawMessage, error)

AddGenesisAccount mimics the cli addGenesisAccount command, providing an account with an allocation of to "token" and "celes" tokens in the genesis state

func GenerateKeyringSigner

func GenerateKeyringSigner(t *testing.T, acct string) *types.KeyringSigner

GenerateKeyringSigner creates a types.KeyringSigner with keys generated for the provided accounts

func NewDefaultGenesisState

func NewDefaultGenesisState(cdc codec.JSONCodec) app.GenesisState

NewDefaultGenesisState generates the default state for the application.

func SetupTestApp

func SetupTestApp(t *testing.T, addr sdk.AccAddress) *app.App

SetupTestApp initializes a celestia-app application with a funded account

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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