app

package
v0.0.0-...-739a9b5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string

DefaultNodeHome default home directories for the application daemon

Functions

func AppConfig

func AppConfig() depinject.Config

AppConfig returns the default app config.

Types

type MiniApp

type MiniApp struct {
	*runtime.App

	// keepers
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	ConsensusParamsKeeper consensuskeeper.Keeper
	CRSKeeper             crskeeper.Keeper
	// contains filtered or unexported fields
}

MiniApp 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 NewMiniApp

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

NewMiniApp returns a reference to an initialized MiniApp.

func (*MiniApp) ExportAppStateAndValidators

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

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

func (*MiniApp) GetKey

func (app *MiniApp) GetKey(storeKey string) *storetypes.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

func (*MiniApp) LegacyAmino

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

LegacyAmino returns MiniApp's amino codec.

func (*MiniApp) RegisterAPIRoutes

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

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

func (*MiniApp) SimulationManager

func (app *MiniApp) 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