Documentation ¶
Index ¶
- Variables
- func MakeCodec() *codec.Codec
- func NewAnteHandler(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.AnteHandler
- type EthermintApp
- func (app *EthermintApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *EthermintApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *EthermintApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *EthermintApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *EthermintApp) LoadHeight(height int64) error
- func (app *EthermintApp) ModuleAccountAddrs() map[string]bool
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome sets the default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.emintcli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.emintd") // ModuleBasics is 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), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, evm.AppModuleBasic{}, ) )
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.AnteHandler
NewAnteHandler returns an ante handler responsible for attempting to route an Ethereum or SDK transaction to an internal ante handler for performing transaction-level processing (e.g. fee payment, signature verification) before being passed onto it's respective handler.
Types ¶
type EthermintApp ¶
EthermintApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewEthermintApp ¶
func NewEthermintApp( logger tmlog.Logger, db dbm.DB, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp)) *EthermintApp
NewEthermintApp returns a reference to a new initialized Ethermint application.
TODO: Ethermint needs to support being bootstrapped as an application running in a sovereign zone and as an application running with a shared security model. For now, it will support only running as a sovereign application.
func (*EthermintApp) BeginBlocker ¶
func (app *EthermintApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*EthermintApp) EndBlocker ¶
func (app *EthermintApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*EthermintApp) ExportAppStateAndValidators ¶
func (app *EthermintApp) ExportAppStateAndValidators( forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*EthermintApp) InitChainer ¶
func (app *EthermintApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*EthermintApp) LoadHeight ¶
func (app *EthermintApp) LoadHeight(height int64) error
LoadHeight loads state at a particular height
func (*EthermintApp) ModuleAccountAddrs ¶
func (app *EthermintApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState is the state of the blockchain is represented here as a map of raw json messages key'd by a identifier string.