{"modulePath":"github.com/RAMPAGEXP/ethermint","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package app\n\n## Variables\n\n```go\nvar (\n\t// DefaultNodeHome default home directories for the application daemon\n\tDefaultNodeHome string\n\n\t// ModuleBasics defines the module BasicManager is in charge of setting up basic,\n\t// non-dependant module elements, such as codec registration\n\t// and genesis verification.\n\tModuleBasics = module.NewBasicManager(\n\t\tauth.AppModuleBasic{},\n\t\tgenutil.AppModuleBasic{},\n\t\tbank.AppModuleBasic{},\n\t\tcapability.AppModuleBasic{},\n\t\tstaking.AppModuleBasic{},\n\t\tmint.AppModuleBasic{},\n\t\tdistr.AppModuleBasic{},\n\t\tgov.NewAppModuleBasic(\n\t\t\tparamsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler,\n\t\t\tibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler,\n\t\t),\n\t\tparams.AppModuleBasic{},\n\t\tcrisis.AppModuleBasic{},\n\t\tslashing.AppModuleBasic{},\n\t\tibc.AppModuleBasic{},\n\t\tauthzmodule.AppModuleBasic{},\n\t\tfeegrantmodule.AppModuleBasic{},\n\t\tupgrade.AppModuleBasic{},\n\t\tevidence.AppModuleBasic{},\n\t\ttransfer.AppModuleBasic{},\n\t\tvesting.AppModuleBasic{},\n\n\t\tevm.AppModuleBasic{},\n\t\tfeemarket.AppModuleBasic{},\n\t)\n)\n```\n\n```go\nvar DefaultConsensusParams = \u0026abci.ConsensusParams{\n\tBlock: \u0026abci.BlockParams{\n\t\tMaxBytes: 200000,\n\t\tMaxGas:   -1,\n\t},\n\tEvidence: \u0026tmproto.EvidenceParams{\n\t\tMaxAgeNumBlocks: 302400,\n\t\tMaxAgeDuration:  504 * time.Hour,\n\t\tMaxBytes:        10000,\n\t},\n\tValidator: \u0026tmproto.ValidatorParams{\n\t\tPubKeyTypes: []string{\n\t\t\ttmtypes.ABCIPubKeyTypeEd25519,\n\t\t},\n\t},\n}\n```\nDefaultConsensusParams defines the default Tendermint consensus params used in EthermintApp testing.\n\n## Functions\n\n```go\nfunc GetMaccPerms() map[string][]string\n```\nGetMaccPerms returns a copy of the module account permissions\n\n```go\nfunc NewDefaultGenesisState() simapp.GenesisState\n```\nNewDefaultGenesisState generates the default state for the application.\n\n```go\nfunc RandomAccounts(r *rand.Rand, n int) []simtypes.Account\n```\nRandomAccounts creates random accounts with an ethsecp256k1 private key TODO: replace secp256k1.GenPrivKeyFromSecret() with similar function in go-ethereum\n\n```go\nfunc RandomGenesisAccounts(simState *module.SimulationState) authtypes.GenesisAccounts\n```\nRandomGenesisAccounts is used by the auth module to create random genesis accounts in simulation when a genesis.json is not specified. In contrast, the default auth module's RandomGenesisAccounts implementation creates only base accounts and vestings accounts.\n\n```go\nfunc RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)\n```\nRegisterSwaggerAPI registers swagger route with API Server\n\n```go\nfunc StateFn(cdc codec.JSONCodec, simManager *module.SimulationManager) simtypes.AppStateFn\n```\nStateFn returns the initial application state using a genesis or the simulation parameters. It is a wrapper of simapp.AppStateFn to replace evm param EvmDenom with staking param BondDenom.\n\n## Types\n\n```go\ntype EthermintApp struct {\n\t*baseapp.BaseApp\n\n\t// keepers\n\tAccountKeeper    authkeeper.AccountKeeper\n\tBankKeeper       bankkeeper.Keeper\n\tCapabilityKeeper *capabilitykeeper.Keeper\n\tStakingKeeper    stakingkeeper.Keeper\n\tSlashingKeeper   slashingkeeper.Keeper\n\tMintKeeper       mintkeeper.Keeper\n\tDistrKeeper      distrkeeper.Keeper\n\tGovKeeper        govkeeper.Keeper\n\tCrisisKeeper     crisiskeeper.Keeper\n\tUpgradeKeeper    upgradekeeper.Keeper\n\tParamsKeeper     paramskeeper.Keeper\n\tFeeGrantKeeper   feegrantkeeper.Keeper\n\tAuthzKeeper      authzkeeper.Keeper\n\tIBCKeeper        *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly\n\tEvidenceKeeper   evidencekeeper.Keeper\n\tTransferKeeper   ibctransferkeeper.Keeper\n\n\t// make scoped keepers public for test purposes\n\tScopedIBCKeeper      capabilitykeeper.ScopedKeeper\n\tScopedTransferKeeper capabilitykeeper.ScopedKeeper\n\n\t// Ethermint keepers\n\tEvmKeeper       *evmkeeper.Keeper\n\tFeeMarketKeeper feemarketkeeper.Keeper\n\t// contains filtered or unexported fields\n}\n```\nEthermintApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.\n\n```go\nfunc NewEthermintApp(\n\tlogger log.Logger,\n\tdb dbm.DB,\n\ttraceStore io.Writer,\n\tloadLatest bool,\n\tskipUpgradeHeights map[int64]bool,\n\thomePath string,\n\tinvCheckPeriod uint,\n\tencodingConfig simappparams.EncodingConfig,\n\tappOpts servertypes.AppOptions,\n\tbaseAppOptions ...func(*baseapp.BaseApp),\n) *EthermintApp\n```\nNewEthermintApp returns a reference to a new initialized Ethermint application.\n\n```go\nfunc Setup(isCheckTx bool, patchGenesis func(*EthermintApp, simapp.GenesisState) simapp.GenesisState) *EthermintApp\n```\nSetup initializes a new EthermintApp. A Nop logger is set in EthermintApp.\n\n```go\nfunc (app *EthermintApp) AppCodec() codec.Codec\n```\nAppCodec returns EthermintApp's app codec.\n\nNOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.\n\n```go\nfunc (app *EthermintApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock\n```\nBeginBlocker updates every begin block\n\n```go\nfunc (app *EthermintApp) BlockedAddrs() map[string]bool\n```\nBlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.\n\n```go\nfunc (app *EthermintApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock\n```\nEndBlocker updates every end block\n\n```go\nfunc (app *EthermintApp) ExportAppStateAndValidators(\n\tforZeroHeight bool, jailAllowedAddrs []string,\n) (servertypes.ExportedApp, error)\n```\nExportAppStateAndValidators exports the state of the application for a genesis file.\n\n```go\nfunc (app *EthermintApp) GetKey(storeKey string) *sdk.KVStoreKey\n```\nGetKey returns the KVStoreKey for the provided store key.\n\nNOTE: This is solely to be used for testing purposes.\n\n```go\nfunc (app *EthermintApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey\n```\nGetMemKey returns the MemStoreKey for the provided mem key.\n\nNOTE: This is solely used for testing purposes.\n\n```go\nfunc (app *EthermintApp) GetSubspace(moduleName string) paramstypes.Subspace\n```\nGetSubspace returns a param subspace for a given module name.\n\nNOTE: This is solely to be used for testing purposes.\n\n```go\nfunc (app *EthermintApp) GetTKey(storeKey string) *sdk.TransientStoreKey\n```\nGetTKey returns the TransientStoreKey for the provided store key.\n\nNOTE: This is solely to be used for testing purposes.\n\n```go\nfunc (app *EthermintApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain\n```\nInitChainer updates at chain initialization\n\n```go\nfunc (app *EthermintApp) InterfaceRegistry() types.InterfaceRegistry\n```\nInterfaceRegistry returns EthermintApp's InterfaceRegistry\n\n```go\nfunc (app *EthermintApp) LegacyAmino() *codec.LegacyAmino\n```\nLegacyAmino returns EthermintApp's amino codec.\n\nNOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.\n\n```go\nfunc (app *EthermintApp) LoadHeight(height int64) error\n```\nLoadHeight loads state at a particular height\n\n```go\nfunc (app *EthermintApp) ModuleAccountAddrs() map[string]bool\n```\nModuleAccountAddrs returns all the app's module account addresses.\n\n```go\nfunc (app *EthermintApp) Name() string\n```\nName returns the name of the App\n\n```go\nfunc (app *EthermintApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)\n```\nRegisterAPIRoutes registers all application module routes with the provided API server.\n\n```go\nfunc (app *EthermintApp) RegisterTendermintService(clientCtx client.Context)\n```\n\n```go\nfunc (app *EthermintApp) RegisterTxService(clientCtx client.Context)\n```\n\n```go\nfunc (app *EthermintApp) SimulationManager() *module.SimulationManager\n```\nSimulationManager implements the SimulationApp interface\n\n","path":"github.com/RAMPAGEXP/ethermint/app","name":"app","synopsis":"","isRedistributable":true}
