app

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// default home directories for the application CLI
	DefaultCLIHome = os.ExpandEnv("$HOME/.und_cli")

	// DefaultNodeHome sets the folder where the application data and configuration will be stored
	DefaultNodeHome = os.ExpandEnv("$HOME/.und_mainchain")

	// NewBasicManager is in charge of setting up basic module elements
	ModuleBasics = module.NewBasicManager(
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},
		enterprise.AppModule{},
		wrkchain.AppModule{},
		beacon.AppModule{},
		evidence.AppModuleBasic{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.

type MainchainApp added in v1.2.0

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

func NewMainchainApp

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

NewMainchainApp is a constructor function for MainchainApp

func (*MainchainApp) BeginBlocker added in v1.2.0

func (*MainchainApp) Codec added in v1.2.0

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

Codec returns the application's sealed codec.

func (*MainchainApp) EndBlocker added in v1.2.0

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

func (*MainchainApp) ExportAppStateAndValidators added in v1.2.0

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

func (*MainchainApp) InitChainer added in v1.2.0

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

func (*MainchainApp) LoadHeight added in v1.2.0

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

func (*MainchainApp) ModuleAccountAddrs added in v1.2.0

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*MainchainApp) Name added in v1.2.0

func (app *MainchainApp) Name() string

Name returns the name of the App

Jump to

Keyboard shortcuts

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