Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(ak keeper.AccountKeeper, supplyKeeper types.SupplyKeeper, sigGasConsumer ante.SignatureVerificationGasConsumer, addressFetchers ...AddressFetcher) sdk.AnteHandler
NewAnteHandler returns an 'AnteHandler' that will run actions before a tx is sent to a module's handler.
Types ¶
type AddressFetcher ¶
type AddressFetcher func(sdk.Context) []sdk.AccAddress
AddressFetcher is a type signature for functions used by the AuthenticatedMempoolDecorator to get authorized addresses.
type AuthenticatedMempoolDecorator ¶
type AuthenticatedMempoolDecorator struct {
// contains filtered or unexported fields
}
AuthenticatedMempoolDecorator blocks all txs from reaching the mempool unless they're signed by one of the authorzed addresses. It only runs before entry to mempool (CheckTx), and not in consensus (DeliverTx)
func NewAuthenticatedMempoolDecorator ¶
func NewAuthenticatedMempoolDecorator(fetchers ...AddressFetcher) AuthenticatedMempoolDecorator
func (AuthenticatedMempoolDecorator) AnteHandle ¶
type UpdateV142MempoolDecorator ¶ added in v0.14.2
type UpdateV142MempoolDecorator struct { }
UpdateV142MempoolDecorator blocks new tx types from reaching the mempool until after the upgrade time
func NewUpdateV142MempoolDecorator ¶ added in v0.14.2
func NewUpdateV142MempoolDecorator() UpdateV142MempoolDecorator
func (UpdateV142MempoolDecorator) AnteHandle ¶ added in v0.14.2
Click to show internal directories.
Click to hide internal directories.