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 EverLast
- func (app *EverLast) AppCodec() codec.Codec
- func (app *EverLast) AutoCliOpts() autocli.AppOptions
- func (app *EverLast) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *EverLast) BlockedModuleAccountAddrs(modAccAddrs map[string]bool) map[string]bool
- func (app *EverLast) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *EverLast) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *EverLast) GetBaseApp() *baseapp.BaseApp
- func (app *EverLast) GetIBCKeeper() *ibckeeper.Keeper
- func (app *EverLast) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *EverLast) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *EverLast) GetStakingKeeperSDK() stakingkeeper.Keeper
- func (app *EverLast) GetTxConfig() client.TxConfig
- func (app *EverLast) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *EverLast) InterfaceRegistry() codectypes.InterfaceRegistry
- func (app *EverLast) LegacyAmino() *codec.LegacyAmino
- func (app *EverLast) LoadHeight(height int64) error
- func (app *EverLast) ModuleAccountAddrs() map[string]bool
- func (app *EverLast) Name() string
- func (app *EverLast) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)
- func (app *EverLast) RegisterNodeService(clientCtx client.Context, cfg srvconfig.Config)
- func (app *EverLast) RegisterTendermintService(clientCtx client.Context)
- func (app *EverLast) 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 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 ¶
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 ¶
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 ¶
BlockedModuleAccountAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*EverLast) EndBlocker ¶
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 ¶
GetBaseApp implements the TestingApp interface.
func (*EverLast) GetIBCKeeper ¶
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 ¶
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 ¶
LoadHeight loads state at a particular height
func (*EverLast) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*EverLast) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*EverLast) RegisterNodeService ¶
RegisterNodeService allows query minimum-gas-prices in app.toml
func (*EverLast) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*EverLast) 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.