app

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// default home directories for nchcli
	DefaultCLIHome = os.ExpandEnv("$HOME/.nchcli")

	// default home directories for nchd
	DefaultNodeHome = os.ExpandEnv("$HOME/.nchd")

	// The module BasicManager is in charge of setting up basic,
	// non-dependant module elements, such as codec registration
	// and genesis verification.
	ModuleBasics = module.NewBasicManager(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},
		cipal.AppModuleBasic{},
		ipal.AppModuleBasic{},
	)
)

Functions

func CreateCodec

func CreateCodec() *codec.Codec

CreateCodec generates the necessary codecs for Amino

func SetBech32AddressPrefixes

func SetBech32AddressPrefixes(config *sdk.Config)

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState represents the genesis state of the blockchain. It is a map from module names to module genesis states.

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

type NCHApp

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

func NewNCHApp

func NewNCHApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp)) *NCHApp

NewNCHApp is a constructor function for NCHApp

func (*NCHApp) BeginBlocker

func (app *NCHApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

application updates every begin block

func (*NCHApp) EndBlocker

func (app *NCHApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

application updates every end block

func (*NCHApp) ExportAppStateAndValidators

func (app *NCHApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

export the state of nchd for a genesis file

func (*NCHApp) InitChainer

func (app *NCHApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

application update at chain initialization

func (*NCHApp) LoadHeight

func (app *NCHApp) LoadHeight(height int64) error

load a particular height

func (*NCHApp) ModuleAccountAddrs

func (app *NCHApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

Jump to

Keyboard shortcuts

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