Documentation ¶
Index ¶
- Constants
- Variables
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func RegisterDenoms()
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- func SetAddressPrefixes()
- type EncodingConfig
- type HandlerOptions
- type LikeApp
- func (app *LikeApp) AppCodec() codec.Codec
- 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) GetBaseApp() *baseapp.BaseApp
- func (app *LikeApp) GetIBCKeeper() *ibckeeper.Keeper
- func (app *LikeApp) GetKeys() map[string]*storetypes.KVStoreKey
- func (app *LikeApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *LikeApp) GetScopedTransferKeeper() capabilitykeeper.ScopedKeeper
- func (app *LikeApp) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *LikeApp) GetTxConfig() client.TxConfig
- 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) Name() string
- func (app *LikeApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *LikeApp) RegisterNodeService(clientCtx client.Context)
- func (app *LikeApp) RegisterTendermintService(clientCtx client.Context)
- func (app *LikeApp) RegisterTxService(clientCtx client.Context)
Constants ¶
const ( HumanCoinUnit = "like" BaseCoinUnit = "nanolike" LikeExponent = 9 Bech32MainPrefix = "like" Bech32LegacyPrefix = "cosmos" )
const (
UpgradeName = "v4.1.1"
)
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( []govclient.ProposalHandler{ paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, }, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, groupmodule.AppModuleBasic{}, nftmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, iscn.AppModuleBasic{}, likenft.AppModuleBasic{}, ) )
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
func RegisterDenoms ¶
func RegisterDenoms()
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers the swagger routes on the API router
func SetAddressPrefixes ¶
func SetAddressPrefixes()
Types ¶
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Marshaler codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions IBCKeeper *ibckeeper.Keeper }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.
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 AuthzKeeper authzkeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper GroupKeeper groupkeeper.Keeper IscnKeeper iscnkeeper.Keeper NftKeeper nftkeeper.Keeper LikeNftKeeper likenftkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper // 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) GetBaseApp ¶
Interfaces for testing suite
func (*LikeApp) GetIBCKeeper ¶
func (*LikeApp) GetKeys ¶
func (app *LikeApp) GetKeys() map[string]*storetypes.KVStoreKey
func (*LikeApp) GetScopedIBCKeeper ¶
func (app *LikeApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
func (*LikeApp) GetScopedTransferKeeper ¶
func (app *LikeApp) GetScopedTransferKeeper() capabilitykeeper.ScopedKeeper
func (*LikeApp) GetStakingKeeper ¶
func (app *LikeApp) GetStakingKeeper() ibctestingtypes.StakingKeeper
func (*LikeApp) GetTxConfig ¶
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) RegisterNodeService ¶
RegisterNodeService implements servertypes.ApplicationQueryService.
func (*LikeApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*LikeApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.