app

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCLIHome default home directories for ktscli
	DefaultCLIHome = os.ExpandEnv("$HOME/.ktscli")

	// DefaultNodeHome default home directories for ktsd
	DefaultNodeHome = os.ExpandEnv("$HOME/.ktsd")
)
View Source
var (
	// ModuleBasics The module BasicManager is in charge of setting up basic,
	// non-dependant module elements, such as codec registration
	// and genesis verification.
	ModuleBasics = module.NewBasicManager(
		genutil.AppModuleBasic{},
		account.AppModuleBasic{},
		asset.AppModuleBasic{},
		params.AppModuleBasic{},
		distr.AppModuleBasic{},
		supply.AppModuleBasic{},
		kustaking.AppModuleBasic{},
		kustaking.AppModuleBasic{},
		slashing.AppModuleBasic{},
		evidence.AppModuleBasic{},
		gov.NewAppModuleBasic(kuparamsclient.ProposalHandler, distr.ProposalHandler),
		mint.AppModuleBasic{},
		kuparams.AppModuleBasic{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

custom tx codec

Types

type KuchainApp

type KuchainApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

KuchainApp extended ABCI application

func NewKuchainApp

func NewKuchainApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp),
) *KuchainApp

NewKuchainApp returns a reference to an initialized KuchainApp.

func (*KuchainApp) BeginBlocker

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

BeginBlocker application updates every begin block

func (*KuchainApp) Codec

func (app *KuchainApp) Codec() *codec.Codec

Codec returns the application's sealed codec.

func (*KuchainApp) EndBlocker

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

EndBlocker application updates every end block

func (*KuchainApp) ExportAppStateAndValidators

func (app *KuchainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

ExportAppStateAndValidators export the state of Kuchain for a genesis file

func (*KuchainApp) InitChainer

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

InitChainer application update at chain initialization

func (*KuchainApp) LoadHeight

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

LoadHeight loads a particular height

func (*KuchainApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*KuchainApp) Name

func (app *KuchainApp) Name() string

Name returns the name of the App

func (*KuchainApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

Jump to

Keyboard shortcuts

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