Documentation ¶
Index ¶
- Variables
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- type EncodingConfig
- type LikeApp
- func (app *LikeApp) AppCodec() codec.Marshaler
- func (app *LikeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *LikeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *LikeApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *LikeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *LikeApp) LoadHeight(height int64) error
- func (app *LikeApp) ModuleAccountAddrs() map[string]bool
- func (app *LikeApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *LikeApp) RegisterTendermintService(clientCtx client.Context)
- func (app *LikeApp) RegisterTxService(clientCtx client.Context)
Constants ¶
This section is empty.
Variables ¶
var ( // default home directories for liked DefaultNodeHome = os.ExpandEnv("$HOME/.liked") // The module BasicManager 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{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, iscn.AppModuleBasic{}, ) )
Functions ¶
Types ¶
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Marshaler codec.Marshaler TxConfig client.TxConfig Amino *codec.LegacyAmino }
TODO: move to other places
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
type LikeApp ¶
type LikeApp struct { *baseapp.BaseApp // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper govkeeper.Keeper CrisisKeeper crisiskeeper.Keeper ParamsKeeper paramskeeper.Keeper UpgradeKeeper upgradekeeper.Keeper IbcKeeper *ibckeeper.Keeper EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper IscnKeeper iscnkeeper.Keeper // contains filtered or unexported fields }
Extended ABCI application
func NewLikeApp ¶
func NewLikeApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *LikeApp
NewLikeApp returns a reference to an initialized LikeApp.
func (*LikeApp) BeginBlocker ¶
func (app *LikeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every begin block
func (*LikeApp) EndBlocker ¶
func (app *LikeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*LikeApp) ExportAppStateAndValidators ¶
func (app *LikeApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
export the state of likechain for a genesis file
func (*LikeApp) InitChainer ¶
func (app *LikeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
application update at chain initialization
func (*LikeApp) LoadHeight ¶
load a particular height
func (*LikeApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*LikeApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*LikeApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*LikeApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.