app

package
v12.3.0-cosmos47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: LGPL-3.0 Imports: 103 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultNodeHome default home directories for the application daemon
	DefaultNodeHome string

	Upgrades  []upgrades.Upgrade
	HardForks []upgrades.Fork
)
View Source
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.

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.

func RegisterSwaggerAPI

func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router, enableSwagger bool) error

RegisterSwaggerAPI registers swagger route with API Server

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

func (app *Evermint) AppCodec() codec.Codec

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

func (app *Evermint) BlockedModuleAccountAddrs(modAccAddrs map[string]bool) map[string]bool

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

func (app *Evermint) GetBaseApp() *baseapp.BaseApp

GetBaseApp implements the TestingApp interface.

func (*Evermint) GetIBCKeeper

func (app *Evermint) GetIBCKeeper() *ibckeeper.Keeper

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

func (app *Evermint) GetTxConfig() client.TxConfig

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

func (app *Evermint) LoadHeight(height int64) error

LoadHeight loads state at a particular height

func (*Evermint) ModuleAccountAddrs

func (app *Evermint) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*Evermint) Name

func (app *Evermint) Name() string

Name returns the name of the App

func (*Evermint) RegisterAPIRoutes

func (app *Evermint) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*Evermint) RegisterNodeService

func (app *Evermint) RegisterNodeService(clientCtx client.Context)

RegisterNodeService allows query minimum-gas-prices in app.toml

func (*Evermint) RegisterTendermintService

func (app *Evermint) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*Evermint) RegisterTxService

func (app *Evermint) RegisterTxService(clientCtx client.Context)

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.

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).
evm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL