Documentation ¶
Index ¶
- Variables
- func AppConfig() depinject.Config
- func NewAnteHandler(options AnteHandlerOptions) (sdk.AnteHandler, error)
- func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)
- func RegisterLegacyModules(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule
- type AlloraApp
- func (app *AlloraApp) AppCodec() codec.Codec
- func (app *AlloraApp) Commit() (*abci.ResponseCommit, error)
- func (app *AlloraApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *AlloraApp) ExtendVote(ctx context.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error)
- func (app *AlloraApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
- func (app *AlloraApp) GetBaseApp() *baseapp.BaseApp
- func (app *AlloraApp) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper
- func (app *AlloraApp) GetIBCKeeper() *ibckeeper.Keeper
- func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *AlloraApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *AlloraApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *AlloraApp) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *AlloraApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *AlloraApp) GetTxConfig() client.TxConfig
- func (app *AlloraApp) LegacyAmino() *codec.LegacyAmino
- func (app *AlloraApp) PrepareProposal(req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error)
- func (app *AlloraApp) ProcessProposal(req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error)
- func (app *AlloraApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *AlloraApp) SimulationManager() *module.SimulationManager
- func (app *AlloraApp) VerifyVoteExtension(req *abci.RequestVerifyVoteExtension) (resp *abci.ResponseVerifyVoteExtension, err error)
- type AnteHandlerOptions
- type PostHandlerOptions
Constants ¶
This section is empty.
Variables ¶
var AppConfigYAML []byte
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
var UseFeeMarketDecorator = true
UseFeeMarketDecorator to make the integration testing easier: we can switch off its ante and post decorators with this flag
Functions ¶
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) 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 (app *AlloraApp) ExtendVote(ctx context.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error)
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 (*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
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 (*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 ¶
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.