Documentation ¶
Index ¶
- Variables
- func MakeCodec() *codec.Codec
- type GenesisState
- type MainchainApp
- func (app *MainchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *MainchainApp) Codec() *codec.Codec
- func (app *MainchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *MainchainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *MainchainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *MainchainApp) LoadHeight(height int64) error
- func (app *MainchainApp) ModuleAccountAddrs() map[string]bool
- func (app *MainchainApp) Name() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.und_cli") // DefaultNodeHome sets the folder where the application data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.und_mainchain") // NewBasicManager is in charge of setting up basic module elements ModuleBasics = module.NewBasicManager( 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{}, enterprise.AppModule{}, wrkchain.AppModule{}, beacon.AppModule{}, evidence.AppModuleBasic{}, ) )
Functions ¶
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.
type MainchainApp ¶ added in v1.2.0
func NewMainchainApp ¶
func NewMainchainApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), ) *MainchainApp
NewMainchainApp is a constructor function for MainchainApp
func (*MainchainApp) BeginBlocker ¶ added in v1.2.0
func (app *MainchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
func (*MainchainApp) Codec ¶ added in v1.2.0
func (app *MainchainApp) Codec() *codec.Codec
Codec returns the application's sealed codec.
func (*MainchainApp) EndBlocker ¶ added in v1.2.0
func (app *MainchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
func (*MainchainApp) ExportAppStateAndValidators ¶ added in v1.2.0
func (app *MainchainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
func (*MainchainApp) InitChainer ¶ added in v1.2.0
func (app *MainchainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
func (*MainchainApp) LoadHeight ¶ added in v1.2.0
func (app *MainchainApp) LoadHeight(height int64) error
func (*MainchainApp) ModuleAccountAddrs ¶ added in v1.2.0
func (app *MainchainApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*MainchainApp) Name ¶ added in v1.2.0
func (app *MainchainApp) Name() string
Name returns the name of the App
Click to show internal directories.
Click to hide internal directories.