app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 108 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNodeHome string

DefaultNodeHome default home directories for the application daemon

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

GetMaccPerms returns a copy of the module account permissions

func MakeEncodingConfig

func MakeEncodingConfig() params.EncodingConfig

MakeEncodingConfig creates an EncodingConfig for testing

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState defines a type alias for the Iris genesis application state.

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

type SpartanApp

type SpartanApp struct {
	*baseapp.BaseApp

	// Ethermint keepers
	EvmKeeper       *evmkeeper.Keeper
	FeeMarketKeeper feemarketkeeper.Keeper
	// contains filtered or unexported fields
}

SpartanApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.

func NewSpartanApp

func NewSpartanApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool,
	homePath string, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp),
) *SpartanApp

NewSpartanApp returns a reference to an initialized IritaApp.

func (*SpartanApp) AppCodec

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

AppCodec returns IritaApp'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 (*SpartanApp) BeginBlocker

func (app *SpartanApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

BeginBlocker application updates every begin block

func (*SpartanApp) EndBlocker

func (app *SpartanApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

EndBlocker application updates every end block

func (*SpartanApp) ExportAppStateAndValidators

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

ExportAppStateAndValidators export the state of irita for a genesis file

func (*SpartanApp) GetKey

func (app *SpartanApp) GetKey(storeKey string) *sdk.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*SpartanApp) GetMemKey

func (app *SpartanApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey

GetMemKey returns the MemStoreKey for the provided mem key.

NOTE: This is solely used for testing purposes.

func (*SpartanApp) GetSubspace

func (app *SpartanApp) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace returns a param subspace for a given module name.

NOTE: This is solely to be used for testing purposes.

func (*SpartanApp) GetTKey

func (app *SpartanApp) GetTKey(storeKey string) *sdk.TransientStoreKey

GetTKey returns the TransientStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*SpartanApp) InitChainer

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

InitChainer application update at chain initialization

func (*SpartanApp) InterfaceRegistry

func (app *SpartanApp) InterfaceRegistry() types.InterfaceRegistry

InterfaceRegistry returns IritaApp's InterfaceRegistry

func (*SpartanApp) LegacyAmino

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

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

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

LoadHeight loads a particular height

func (*SpartanApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*SpartanApp) Name

func (app *SpartanApp) Name() string

Name returns the name of the App

func (*SpartanApp) RegisterAPIRoutes

func (app *SpartanApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

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

func (*SpartanApp) RegisterTendermintService

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

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*SpartanApp) RegisterTxService

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

RegisterTxService implements the Application.RegisterTxService method.

func (*SpartanApp) RegisterUpgradePlan

func (app *SpartanApp) RegisterUpgradePlan(planName string,
	upgrades store.StoreUpgrades, upgradeHandler upgradetypes.UpgradeHandler)

RegisterUpgradePlan implements the upgrade execution logic of the upgrade module

func (*SpartanApp) SimulationManager

func (app *SpartanApp) SimulationManager() *module.SimulationManager

SimulationManager implements the SimulationApp interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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