app

package module
v0.0.0-...-2ce015d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	// DefaultNodeHome is the default the folder where the applcation data and configuration are stored
	DefaultNodeHome = os.ExpandEnv("$HOME/.strongforced")

	// ModuleBasicManager is in charge of setting up basic module elemnets
	ModuleBasicManager = module.NewBasicManager(
		auth.AppModuleBasic{},
		distribution.AppModuleBasic{},
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		params.AppModuleBasic{},
		slashing.AppModuleBasic{},
		staking.AppModuleBasic{},
		strongforce.AppModuleBasic{},
		supply.AppModuleBasic{},
		bank.AppModuleBasic{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec - Creates the codec needed for strongforce

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState represents the genesis state of a strongforce app

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState returns the default GenesisState

type StrongForceApp

type StrongForceApp struct {
	*baseapp.BaseApp
	// contains filtered or unexported fields
}

StrongForceApp - Type containing needed information for the strongforce cosmos/tendermint application

func NewStrongForceApp

func NewStrongForceApp(logger log.Logger, db db.DB) *StrongForceApp

NewStrongForceApp - Constructs a new StrongForceApp

func (*StrongForceApp) BeginBlocker

BeginBlocker prepares an abci ResponseBeginBlock command

func (*StrongForceApp) EndBlocker

EndBlocker prepares an abci ResponseEndBlock command

func (*StrongForceApp) ExportAppStateAndValidators

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

ExportAppStateAndValidators exports the app state and validators

func (*StrongForceApp) InitChainer

InitChainer prepares an abci ResponseInitChain command

func (*StrongForceApp) LoadHeight

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

LoadHeight sets the app to a given height

Directories

Path Synopsis
cmd
x

Jump to

Keyboard shortcuts

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