Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MempoolTransaction ¶
type MempoolTransaction struct {
// contains filtered or unexported fields
}
MempoolTransaction is an event that represents a transaction in the mempool.
func NewMempoolTransaction ¶
func NewMempoolTransaction( log logrus.FieldLogger, tx *types.Transaction, now time.Time, duplicateCache *ttlcache.Cache[string, time.Time], clientMeta *xatu.ClientMeta, signer types.Signer, ) *MempoolTransaction
NewMempoolTransaction creates a new MempoolTransaction.
func (*MempoolTransaction) Decorate ¶
func (e *MempoolTransaction) Decorate(ctx context.Context) (*xatu.DecoratedEvent, error)
Decorate decorates the transaction with additional data.
func (*MempoolTransaction) ShouldIgnore ¶
func (e *MempoolTransaction) ShouldIgnore(ctx context.Context) (bool, error)
ShouldIgnore checks if the transaction should be ignored based on the cache.
Click to show internal directories.
Click to hide internal directories.