Documentation ¶
Index ¶
- Variables
- func CreateCodec() *codec.Codec
- func SetBech32AddressPrefixes(config *sdk.Config)
- type GenesisState
- type NCHApp
- func (app *NCHApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *NCHApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *NCHApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *NCHApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *NCHApp) LoadHeight(height int64) error
- func (app *NCHApp) ModuleAccountAddrs() map[string]bool
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{}, ipal.AppModuleBasic{}, aipal.AppModuleBasic{}, ) )
Functions ¶
func CreateCodec ¶
CreateCodec generates the necessary codecs for Amino
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 ¶
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 ¶
load a particular height
func (*NCHApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
Click to show internal directories.
Click to hide internal directories.