Documentation
¶
Index ¶
Constants ¶
View Source
const ModuleName = "validate"
ModuleName is the name of the validate module.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule is a module that only implements tx validators. The goal of this module is to allow extensible registration of tx validators provided by chains without requiring a new modules. Additionally, it registers tx validators that do not really have a place in other modules. This module is only useful for chains using server/v2. Ante/Post handlers are setup via baseapp options in depinject.
func NewAppModule ¶
func NewAppModule( sigVerification ante.SigVerificationDecorator, feeTxValidator *ante.DeductFeeDecorator, unorderTxValidator *ante.UnorderedTxDecorator, txValidators ...appmodulev2.TxValidator[transaction.Tx], ) AppModule
NewAppModule creates a new AppModule object.
func (AppModule) IsAppModule ¶
func (a AppModule) IsAppModule()
IsAppModule implements appmodule.AppModule.
func (AppModule) IsOnePerModuleType ¶
func (a AppModule) IsOnePerModuleType()
IsOnePerModuleType implements appmodule.AppModule.
func (AppModule) TxValidator ¶
TxValidator implements appmodule.HasTxValidator.
type ModuleInputs ¶
type ModuleInputs struct {
depinject.In
ModuleConfig *modulev1.Module
Environment appmodulev2.Environment
TxConfig client.TxConfig
DynamicConfig server.DynamicConfig `optional:"true"`
AccountKeeper ante.AccountKeeper
BankKeeper authtypes.BankKeeper
ConsensusKeeper ante.ConsensusKeeper
FeeGrantKeeper ante.FeegrantKeeper `optional:"true"`
AccountAbstractionKeeper ante.AccountAbstractionKeeper `optional:"true"`
ExtraTxValidators []appmodulev2.TxValidator[transaction.Tx] `optional:"true"`
UnorderedTxManager *unorderedtx.Manager `optional:"true"`
TxFeeChecker ante.TxFeeChecker `optional:"true"`
}
type ModuleOutputs ¶
type ModuleOutputs struct {
depinject.Out
Module appmodulev2.AppModule // Only useful for chains using server/v2. It setup tx validators that don't belong to other modules.
BaseAppOption runtime.BaseAppOption // Only useful for chains using baseapp. Server/v2 chains use TxValidator.
}
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs
Click to show internal directories.
Click to hide internal directories.