applications

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	serverTypes.Application

	GetDefaultNodeHome() string
	GetDefaultClientHome() string
	GetModuleBasicManager() module.BasicManager
	GetCodec() helpers.Codec

	LoadHeight(int64) error
	ExportApplicationStateAndValidators(bool, []string) (serverTypes.ExportedApp, error)

	Name() string
	Logger() log.Logger
	MountStores(keys ...sdkTypes.StoreKey)
	MountKVStores(keys map[string]*sdkTypes.KVStoreKey)
	MountTransientStores(keys map[string]*sdkTypes.TransientStoreKey)
	MountStore(key sdkTypes.StoreKey, typ sdkTypes.StoreType)
	LastCommitID() sdkTypes.CommitID
	LastBlockHeight() int64
	Router() sdkTypes.Router
	QueryRouter() sdkTypes.QueryRouter
	Seal()
	IsSealed() bool

	AppCreator(log.Logger, tendermintDB.DB, io.Writer, serverTypes.AppOptions) serverTypes.Application
	AppExporter(log.Logger, tendermintDB.DB, io.Writer, int64, bool, []string, serverTypes.AppOptions) (serverTypes.ExportedApp, error)
	ModuleInitFlags(startCmd *cobra.Command)

	Initialize(logger tendermintLog.Logger, db tendermintDB.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, home string, appOptions serverTypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp)) Application
}

type SimulationApplication

type SimulationApplication interface {
	simapp.App

	GetBaseApp() *baseapp.BaseApp
	GetAppCodec() helpers.Codec
	InterfaceRegistry() codecTypes.InterfaceRegistry
	GetKey(storeKey string) *sdkTypes.KVStoreKey
	GetTKey(storeKey string) *sdkTypes.TransientStoreKey
	GetMemKey(storeKey string) *sdkTypes.MemoryStoreKey
	GetSubspace(moduleName string) paramsTypes.Subspace
	SimulationManager() *module.SimulationManager
	RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
	RegisterTxService(clientCtx client.Context)
	RegisterTendermintService(clientCtx client.Context)

	GetCrisisKeeper() crisisKeeper.Keeper
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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