Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- func NewDefaultGenesisState() simapp.GenesisState
- type EnigmaChainApp
- func (app *EnigmaChainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *EnigmaChainApp) Codec() *codec.Codec
- func (app *EnigmaChainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *EnigmaChainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *EnigmaChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *EnigmaChainApp) LoadHeight(height int64) error
- func (app *EnigmaChainApp) ModuleAccountAddrs() map[string]bool
- func (app *EnigmaChainApp) Name() string
- func (app *EnigmaChainApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.engcli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.engd") // ModuleBasics The module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a mapping of the application's module account permissions.
func MakeCodec ¶
MakeCodec creates the application codec. The codec is sealed before it is returned.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState return a default genesis state
Types ¶
type EnigmaChainApp ¶
EnigmaChainApp extended ABCI application
func NewEnigmaChainApp ¶
func NewEnigmaChainApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp), ) *EnigmaChainApp
NewEnigmaChainApp is a constructor function for enigmaChainApp
func (*EnigmaChainApp) BeginBlocker ¶
func (app *EnigmaChainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*EnigmaChainApp) Codec ¶
func (app *EnigmaChainApp) Codec() *codec.Codec
Codec returns the application's sealed codec.
func (*EnigmaChainApp) EndBlocker ¶
func (app *EnigmaChainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*EnigmaChainApp) ExportAppStateAndValidators ¶
func (app *EnigmaChainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
func (*EnigmaChainApp) InitChainer ¶
func (app *EnigmaChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*EnigmaChainApp) LoadHeight ¶
func (app *EnigmaChainApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*EnigmaChainApp) ModuleAccountAddrs ¶
func (app *EnigmaChainApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*EnigmaChainApp) Name ¶
func (app *EnigmaChainApp) Name() string
Name returns the name of the App
func (*EnigmaChainApp) SimulationManager ¶
func (app *EnigmaChainApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface