app

package
v0.3.0-alpha.0...-2dbcf5a Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCodec

func MakeCodec() *wire.Codec

MakeCodec creates a new wire codec and registers all the necessary types with the codec.

Types

type GalaxyApp

type GalaxyApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

GalaxyApp implements an extended ABCI application. It contains a BaseApp, a codec for serialization, KVStore keys for multistore state management, and various mappers and keepers to manage getting, setting, and serializing the integral app types.

func NewGalaxyApp

func NewGalaxyApp(logger log.Logger, db dbm.DB, baseAppOptions ...func(*bam.BaseApp)) *GalaxyApp

NewGalaxyApp returns a reference to a new GalaxyApp given a logger and database. Internally, a codec is created along with all the necessary keys. In addition, all necessary mappers and keepers are created, routes registered, and finally the stores being mounted along with any necessary chain initialization.

func (*GalaxyApp) BeginBlocker

BeginBlocker reflects logic to run before any TXs application are processed by the application.

func (*GalaxyApp) EndBlocker

EndBlocker reflects logic to run after all TXs are processed by the application.

func (*GalaxyApp) ExportAppStateAndValidators

func (app *GalaxyApp) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

ExportAppStateAndValidators implements custom application logic that exposes various parts of the application's state and set of validators. An error is returned if any step getting the state or set of validators fails.

Jump to

Keyboard shortcuts

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