app

package
v0.1.1-experimental.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "BeaconKitApp"

Variables

This section is empty.

Functions

func Config

func Config() depinject.Config

Config returns the default app config.

Types

type BeaconApp

type BeaconApp struct {
	*runtime.App

	// TODO: should we restructure the relationship between
	// the BeaconKeeper BeaconKitRuntime?
	BeaconKeeper          *beaconkeeper.Keeper
	BeaconKitRuntime      *beaconkitruntime.BeaconKitRuntime
	ConsensusParamsKeeper consensuskeeper.Keeper
	// contains filtered or unexported fields
}

BeaconApp 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 NewBeaconKitApp

func NewBeaconKitApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	baseAppOptions ...func(*baseapp.BaseApp),
) *BeaconApp

NewBeaconKitApp returns a reference to an initialized BeaconApp.

func NewBeaconKitAppWithDefaultBaseAppOptions

func NewBeaconKitAppWithDefaultBaseAppOptions(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	appOpts servertypes.AppOptions,
) BeaconApp

NewBeaconKitAppWithDefaultBaseAppOptions returns a reference to an initialized BeaconApp.

func (*BeaconApp) ExportAppStateAndValidators

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

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

func (BeaconApp) PostStartup

func (app BeaconApp) PostStartup(
	ctx context.Context,
	_ client.Context,
) error

PostStartup is called after the app has started up and CometBFT is connected.

Jump to

Keyboard shortcuts

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