app

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const UpgradeNameV102 = "v1.0.2"
View Source
const UpgradeNameV103 = "v1.0.3"

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 AxmApp

type AxmApp struct {
	*runtime.App

	// keepers
	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	SlashingKeeper        slashigkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	ConsensusParamsKeeper consensuskeeper.Keeper
	ReferralKeeper        referral.Keeper
	VoteKeeper            vote.Keeper
	UpgradeKeeper         *upgradekeeper.Keeper
	// contains filtered or unexported fields
}

AxmApp 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 NewAxmApp

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

NewAxmApp returns a reference to an initialized AxmApp.

func (*AxmApp) ExportAppStateAndValidators

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

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

func (*AxmApp) GetKey

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

GetKey returns the KVStoreKey for the provided store key.

func (*AxmApp) LegacyAmino

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

LegacyAmino returns AxmApp's amino codec.

func (*AxmApp) RegisterAPIRoutes

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

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

func (*AxmApp) RegisterUpgradeHandlers added in v1.0.2

func (app *AxmApp) RegisterUpgradeHandlers()

func (*AxmApp) SimulationManager

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