app

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: LGPL-3.0 Imports: 110 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
)

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 EverLast

type EverLast struct {
	*baseapp.BaseApp
	keepers.AppKeepers

	ModuleBasics module.BasicManager // delivered from module manager, with installed codec
	// contains filtered or unexported fields
}

EverLast implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of CometBFT consensus.

func NewEverLast

func NewEverLast(
	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),
) *EverLast

NewEverLast returns a reference to a new initialized EverLast application.

func (*EverLast) AppCodec

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

AppCodec returns EverLast'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 (*EverLast) AutoCliOpts

func (app *EverLast) AutoCliOpts() autocli.AppOptions

AutoCliOpts returns the autocli options for the app.

func (*EverLast) BeginBlocker

func (app *EverLast) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)

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 (*EverLast) BlockedModuleAccountAddrs

func (app *EverLast) 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 (*EverLast) EndBlocker

func (app *EverLast) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)

EndBlocker updates every end block

func (*EverLast) ExportAppStateAndValidators

func (app *EverLast) ExportAppStateAndValidators(
	forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string,
) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*EverLast) GetBaseApp

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

GetBaseApp implements the TestingApp interface.

func (*EverLast) GetIBCKeeper

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

GetIBCKeeper implements the TestingApp interface.

func (*EverLast) GetScopedIBCKeeper

func (app *EverLast) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper

GetScopedIBCKeeper implements the TestingApp interface.

func (*EverLast) GetStakingKeeper

func (app *EverLast) GetStakingKeeper() ibctestingtypes.StakingKeeper

GetStakingKeeper implements the TestingApp interface.

func (*EverLast) GetStakingKeeperSDK

func (app *EverLast) GetStakingKeeperSDK() stakingkeeper.Keeper

GetStakingKeeperSDK implements the TestingApp interface.

func (*EverLast) GetTxConfig

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

GetTxConfig implements the TestingApp interface.

func (*EverLast) InitChainer

func (app *EverLast) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)

InitChainer updates at chain initialization

func (*EverLast) InterfaceRegistry

func (app *EverLast) InterfaceRegistry() codectypes.InterfaceRegistry

InterfaceRegistry returns EverLast's InterfaceRegistry

func (*EverLast) LegacyAmino

func (app *EverLast) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns EverLast'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 (*EverLast) LoadHeight

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

LoadHeight loads state at a particular height

func (*EverLast) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*EverLast) Name

func (app *EverLast) Name() string

Name returns the name of the App

func (*EverLast) RegisterAPIRoutes

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

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

func (*EverLast) RegisterNodeService

func (app *EverLast) RegisterNodeService(clientCtx client.Context, cfg srvconfig.Config)

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

func (*EverLast) RegisterTendermintService

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

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*EverLast) RegisterTxService

func (app *EverLast) 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

Jump to

Keyboard shortcuts

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