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) AutoCliOpts() autocli.AppOptions
- func (app *Evermint) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *Evermint) BlockedModuleAccountAddrs(modAccAddrs map[string]bool) map[string]bool
- func (app *Evermint) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- 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, error)
- 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, cfg srvconfig.Config)
- 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 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, }, ), 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{}, vauth.AppModuleBasic{}, cpc.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
ModuleBasics module.BasicManager // delivered from module manager, with installed codec
// 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 CometBFT consensus.
func NewEvermint ¶
func NewEvermint( logger log.Logger, db sdkdb.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) AutoCliOpts ¶
func (app *Evermint) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*Evermint) BeginBlocker ¶
BeginBlocker runs the CometBFT 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 ¶
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, error)
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.