Documentation ¶
Index ¶
- Variables
- func NewPostHandler() (sdk.PostHandler, error)
- func RegisterEncodingConfig() params.EncodingConfig
- func RegisterInterfaces(interfaceRegistry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router, enableSwagger bool) error
- type Evermint
- func (app *Evermint) AppCodec() codec.Codec
- func (app *Evermint) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *Evermint) BlockedModuleAccountAddrs(modAccAddrs map[string]bool) map[string]bool
- func (app *Evermint) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *Evermint) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *Evermint) GetBaseApp() *baseapp.BaseApp
- func (app *Evermint) GetIBCKeeper() *ibckeeper.Keeper
- func (app *Evermint) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *Evermint) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *Evermint) GetStakingKeeperSDK() stakingkeeper.Keeper
- func (app *Evermint) GetTxConfig() client.TxConfig
- func (app *Evermint) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *Evermint) InterfaceRegistry() codectypes.InterfaceRegistry
- func (app *Evermint) LegacyAmino() *codec.LegacyAmino
- func (app *Evermint) LoadHeight(height int64) error
- func (app *Evermint) ModuleAccountAddrs() map[string]bool
- func (app *Evermint) Name() string
- func (app *Evermint) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)
- func (app *Evermint) RegisterNodeService(clientCtx client.Context)
- func (app *Evermint) RegisterTendermintService(clientCtx client.Context)
- func (app *Evermint) RegisterTxService(clientCtx client.Context)
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string Upgrades []upgrades.Upgrade HardForks []upgrades.Fork )
var MainnetMinGasPrices = sdkmath.LegacyNewDec(1_000_000_000)
MainnetMinGasPrices defines 1B (1 gas-wei) as the minimum gas price value on the fee market module.
var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( []govclient.ProposalHandler{ sdkparamsclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, erc20client.RegisterCoinProposalHandler, erc20client.RegisterERC20ProposalHandler, erc20client.ToggleTokenConversionProposalHandler, }, ), sdkparams.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, ibctm.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, ibctransfer.AppModuleBasic{}, vesting.AppModuleBasic{}, ica.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, erc20.AppModuleBasic{}, vauth.AppModuleBasic{}, consensus.AppModuleBasic{}, )
ModuleBasics defines the module BasicManager is in charge of setting up basic, non-dependant module elements, such as codec registration and genesis verification.
Functions ¶
func NewPostHandler ¶
func NewPostHandler() (sdk.PostHandler, error)
NewPostHandler returns a no-op PostHandler
func RegisterEncodingConfig ¶
func RegisterEncodingConfig() params.EncodingConfig
func RegisterInterfaces ¶
func RegisterInterfaces(interfaceRegistry codectypes.InterfaceRegistry)
RegisterInterfaces registers Interfaces from types, crypto, and SDK std.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers Interfaces from types, crypto, and SDK std.
Types ¶
type Evermint ¶
type Evermint struct { *baseapp.BaseApp keepers.AppKeepers // contains filtered or unexported fields }
Evermint implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewEvermint ¶
func NewEvermint( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig params.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *Evermint
NewEvermint returns a reference to a new initialized Evermint application.
func (*Evermint) AppCodec ¶
AppCodec returns Evermint's app codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*Evermint) BeginBlocker ¶
func (app *Evermint) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker runs the Tendermint ABCI BeginBlock logic. It executes state changes at the beginning of the new block for every registered module. If there is a registered fork at the current height, BeginBlocker will schedule the upgrade plan and perform the state migration (if any).
func (*Evermint) BlockedModuleAccountAddrs ¶
BlockedModuleAccountAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*Evermint) EndBlocker ¶
func (app *Evermint) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*Evermint) ExportAppStateAndValidators ¶
func (app *Evermint) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*Evermint) GetBaseApp ¶
GetBaseApp implements the TestingApp interface.
func (*Evermint) GetIBCKeeper ¶
GetIBCKeeper implements the TestingApp interface.
func (*Evermint) GetScopedIBCKeeper ¶
func (app *Evermint) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
GetScopedIBCKeeper implements the TestingApp interface.
func (*Evermint) GetStakingKeeper ¶
func (app *Evermint) GetStakingKeeper() ibctestingtypes.StakingKeeper
GetStakingKeeper implements the TestingApp interface.
func (*Evermint) GetStakingKeeperSDK ¶
func (app *Evermint) GetStakingKeeperSDK() stakingkeeper.Keeper
GetStakingKeeperSDK implements the TestingApp interface.
func (*Evermint) GetTxConfig ¶
GetTxConfig implements the TestingApp interface.
func (*Evermint) InitChainer ¶
func (app *Evermint) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*Evermint) InterfaceRegistry ¶
func (app *Evermint) InterfaceRegistry() codectypes.InterfaceRegistry
InterfaceRegistry returns Evermint's InterfaceRegistry
func (*Evermint) LegacyAmino ¶
func (app *Evermint) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns Evermint's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*Evermint) LoadHeight ¶
LoadHeight loads state at a particular height
func (*Evermint) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*Evermint) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*Evermint) RegisterNodeService ¶
RegisterNodeService allows query minimum-gas-prices in app.toml
func (*Evermint) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*Evermint) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState of the blockchain is represented here as a map of raw json messages key by an identifier string. The identifier is used to determine which module genesis information belongs to, so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState(encodingConfig params.EncodingConfig) GenesisState
NewDefaultGenesisState generates the default state for the application.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).
|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx). |