Documentation ¶
Overview ¶
Package app provides the assets information for server module.
Index ¶
- Constants
- Variables
- func MakeCodec() *codec.Codec
- type CertiKApp
- func (app *CertiKApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *CertiKApp) BlacklistedAccAddrs() map[string]bool
- func (app *CertiKApp) Codec() *codec.Codec
- func (app *CertiKApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *CertiKApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *CertiKApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *CertiKApp) LoadHeight(height int64) error
- func (app *CertiKApp) ModuleAccountAddrs() map[string]bool
- func (app *CertiKApp) SimulationManager() *module.SimulationManager
Constants ¶
const ( // AppName specifies the global application name. AppName = "CertiK" // DefaultKeyPass for certikd node daemon. DefaultKeyPass = "12345678" )
Variables ¶
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 ¶
Types ¶
type CertiKApp ¶
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 ¶
BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.
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 ¶
LoadHeight loads a particular height
func (*CertiKApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*CertiKApp) SimulationManager ¶
func (app *CertiKApp) SimulationManager() *module.SimulationManager
SimulationManager returns app.sm.