app

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 104 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string

DefaultNodeHome default home directories for the application daemon

View Source
var UseFeeMarketDecorator = true

UseFeeMarketDecorator to make the integration testing easier: we can switch off its ante and post decorators with this flag

Functions

func AppConfig

func AppConfig() depinject.Config

AppConfig returns the default app config.

func NewAnteHandler added in v0.0.1337

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

NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.

func NewPostHandler added in v0.0.1337

func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)

NewPostHandler returns a PostHandler chain with the fee deduct decorator.

func RegisterLegacyModules added in v0.0.1337

func RegisterLegacyModules(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule

RegisterLegacyModules manually register legacy (e.g. IBC) interfaces and returns related modules. This is used on the client side only to allow the wiring with `autocli`. These modules currently does not support dependency injection, as soon as they do, this should be removed.

Types

type AlloraApp

type AlloraApp struct {
	*runtime.App
	keepers.AppKeepers
	// contains filtered or unexported fields
}

AlloraApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.

func NewAlloraApp

func NewAlloraApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	baseAppOptions ...func(*baseapp.BaseApp),
) (*AlloraApp, error)

NewAlloraApp returns a reference to an initialized AlloraApp.

func (*AlloraApp) AppCodec added in v0.0.8

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

func (*AlloraApp) Commit added in v0.0.1337

func (app *AlloraApp) Commit() (*abci.ResponseCommit, error)

func (*AlloraApp) ExportAppStateAndValidators

func (app *AlloraApp) ExportAppStateAndValidators(
	forZeroHeight bool,
	jailAllowedAddrs []string,
	modulesToExport []string,
) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*AlloraApp) ExtendVote added in v0.0.1337

func (*AlloraApp) FinalizeBlock added in v0.0.1337

func (app *AlloraApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)

func (*AlloraApp) GetBaseApp added in v0.0.8

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

func (*AlloraApp) GetCapabilityScopedKeeper added in v0.0.8

func (app *AlloraApp) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper

GetCapabilityScopedKeeper returns the capability scoped keeper.

func (*AlloraApp) GetIBCKeeper added in v0.0.8

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

GetIBCKeeper returns the IBC keeper.

func (*AlloraApp) GetKey

func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

func (*AlloraApp) GetMemKey added in v0.0.8

func (app *AlloraApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey

GetMemKey returns the MemoryStoreKey for the provided store key.

func (*AlloraApp) GetScopedIBCKeeper added in v0.0.8

func (app *AlloraApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper

func (*AlloraApp) GetStakingKeeper added in v0.0.8

func (app *AlloraApp) GetStakingKeeper() ibctestingtypes.StakingKeeper

func (*AlloraApp) GetSubspace added in v0.0.8

func (app *AlloraApp) GetSubspace(moduleName string) paramstypes.Subspace

GetSubspace returns a param subspace for a given module name.

func (*AlloraApp) GetTxConfig added in v0.0.8

func (app *AlloraApp) GetTxConfig() client.TxConfig

func (*AlloraApp) LegacyAmino

func (app *AlloraApp) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns AlloraApp's amino codec.

func (*AlloraApp) PrepareProposal added in v0.0.1337

func (app *AlloraApp) PrepareProposal(req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error)

func (*AlloraApp) ProcessProposal added in v0.0.1337

func (app *AlloraApp) ProcessProposal(req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error)

func (*AlloraApp) RegisterAPIRoutes

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

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

func (*AlloraApp) SimulationManager

func (app *AlloraApp) SimulationManager() *module.SimulationManager

SimulationManager implements the SimulationApp interface

func (*AlloraApp) VerifyVoteExtension added in v0.0.1337

func (app *AlloraApp) VerifyVoteExtension(req *abci.RequestVerifyVoteExtension) (resp *abci.ResponseVerifyVoteExtension, err error)

type AnteHandlerOptions added in v0.0.1337

type AnteHandlerOptions struct {
	BaseOptions     authante.HandlerOptions
	BankKeeper      feemarketante.BankKeeper
	AccountKeeper   feemarketante.AccountKeeper
	FeeMarketKeeper feemarketante.FeeMarketKeeper
	CircuitKeeper   circuitante.CircuitBreaker
}

AnteHandlerOptions are the options required for constructing an SDK AnteHandler with the fee market injected.

type PostHandlerOptions added in v0.0.1337

type PostHandlerOptions struct {
	AccountKeeper   feemarketpost.AccountKeeper
	BankKeeper      feemarketpost.BankKeeper
	FeeMarketKeeper feemarketpost.FeeMarketKeeper
}

PostHandlerOptions are the options required for constructing a FeeMarket PostHandler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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