Documentation ¶
Index ¶
Constants ¶
const ModuleName = "validate"
ModuleName is the name of the validate module.
Variables ¶
This section is empty.
Functions ¶
func ProvideConfig ¶
func ProvideConfig(key depinject.OwnModuleKey) server.ModuleConfigMap
ProvideConfig specifies the configuration key for the minimum gas prices. During dependency injection, a configuration map is provided with the key set.
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 ConfigMap server.ConfigMap 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