app

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package app provides the assets information for server module.

Index

Constants

View Source
const (
	// AppName specifies the global application name.
	AppName = "CertiK"

	// DefaultKeyPass for certikd node daemon.
	DefaultKeyPass = "12345678"
)

Variables

View Source
var (
	// DefaultCLIHome specifies where the node client data is stored.
	DefaultCLIHome = os.ExpandEnv("$HOME/.certikcli")

	// DefaultNodeHome specifies where the node daemon data is stored.
	DefaultNodeHome = os.ExpandEnv("$HOME/.certikd")

	// ModuleBasics is in charge of setting up basic, non-dependant module
	// elements, such as codec registration and genesis verification.
	ModuleBasics = module.NewBasicManager(
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(
			distr.ProposalHandler,
			upgrade.ProposalHandler,
			cert.ProposalHandler,
			paramsclient.ProposalHandler,
		),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},
		upgrade.AppModuleBasic{},
		cvm.NewAppModuleBasic(),
		cert.NewAppModuleBasic(),
		oracle.NewAppModuleBasic(),
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

Types

type CertiKApp

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

CertiKApp is the main CertiK Chain application type.

func NewCertiKApp

func NewCertiKApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool,
	invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp)) *CertiKApp

NewCertiKApp returns a reference to an initialized CertiKApp.

func (*CertiKApp) BeginBlocker

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

BeginBlocker processes application updates at the beginning of each block.

func (*CertiKApp) BlacklistedAccAddrs

func (app *CertiKApp) BlacklistedAccAddrs() map[string]bool

BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.

func (*CertiKApp) Codec

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

Codec returns app.cdc.

func (*CertiKApp) EndBlocker

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

EndBlocker processes application updates at the end of each block.

func (*CertiKApp) ExportAppStateAndValidators

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

ExportAppStateAndValidators exports the application state for a genesis file.

func (*CertiKApp) InitChainer

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

InitChainer defines application update at chain initialization

func (*CertiKApp) LoadHeight

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

LoadHeight loads a particular height

func (*CertiKApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*CertiKApp) SimulationManager

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

SimulationManager returns app.sm.

Jump to

Keyboard shortcuts

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