app

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 106 Imported by: 5

Documentation

Index

Constants

View Source
const (
	HumanCoinUnit = "like"
	BaseCoinUnit  = "nanolike"
	LikeExponent  = 9

	Bech32MainPrefix   = "like"
	Bech32LegacyPrefix = "cosmos"
)
View Source
const (
	UpgradeName = "v4.2.0"
)

Variables

Functions

func NewAnteHandler

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)

func RegisterDenoms

func RegisterDenoms()

func RegisterSwaggerAPI

func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)

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) AppCodec

func (app *LikeApp) AppCodec() codec.Codec

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

func (app *LikeApp) GetBaseApp() *baseapp.BaseApp

Interfaces for testing suite

func (*LikeApp) GetIBCKeeper

func (app *LikeApp) GetIBCKeeper() *ibckeeper.Keeper

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 (app *LikeApp) GetTxConfig() client.TxConfig

func (*LikeApp) InitChainer

func (app *LikeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

application update at chain initialization

func (*LikeApp) LoadHeight

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

load a particular height

func (*LikeApp) ModuleAccountAddrs

func (app *LikeApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*LikeApp) Name

func (app *LikeApp) Name() string

func (*LikeApp) RegisterAPIRoutes

func (app *LikeApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*LikeApp) RegisterNodeService

func (app *LikeApp) RegisterNodeService(clientCtx client.Context)

RegisterNodeService implements servertypes.ApplicationQueryService.

func (*LikeApp) RegisterTendermintService

func (app *LikeApp) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*LikeApp) RegisterTxService

func (app *LikeApp) RegisterTxService(clientCtx client.Context)

RegisterTxService implements the Application.RegisterTxService method.

Jump to

Keyboard shortcuts

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