Documentation
¶
Index ¶
- Variables
- func MakeCodec() *codec.Codec
- type GenesisState
- type LongyApp
- func (app *LongyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *LongyApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *LongyApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *LongyApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *LongyApp) LoadHeight(height int64) error
- func (app *LongyApp) ModuleAccountAddrs() map[string]bool
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome is the default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.lycli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.lyd") // ModuleBasics is in charge of setting up basic module elemnets ModuleBasics = module.NewBasicManager( genaccounts.AppModuleBasic{}, genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, distr.AppModuleBasic{}, params.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, longy.AppModule{}, ) )
Functions ¶
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.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState returns the combined default genesis file fo the modules
type LongyApp ¶
LongyApp is our app structure
func NewLongyApp ¶
NewLongyApp is a constructor function for LongyApp nolint: dupl
func (*LongyApp) BeginBlocker ¶
func (app *LongyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker performs begin block functionality for all modules. nolint: gocritic
func (*LongyApp) EndBlocker ¶
func (app *LongyApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker performs end block functionality for all modules nolint: gocritic
func (*LongyApp) ExportAppStateAndValidators ¶
func (app *LongyApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators returns the app state for export
func (*LongyApp) InitChainer ¶
func (app *LongyApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer initializes the chain from the genesis state nolint: gocritic
func (*LongyApp) LoadHeight ¶
LoadHeight loads the app version
func (*LongyApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.