Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionStateSize ¶ added in v1.6.0
type ExecutionStateSize struct {
// contains filtered or unexported fields
}
ExecutionStateSize is an event that represents state size data from the execution layer.
func NewExecutionStateSize ¶ added in v1.6.0
func NewExecutionStateSize( log logrus.FieldLogger, data *executionClient.DebugStateSizeResponse, now time.Time, duplicateCache *ttlcache.Cache[string, time.Time], clientMeta *xatu.ClientMeta, ) *ExecutionStateSize
NewExecutionStateSize creates a new ExecutionStateSize event.
func (*ExecutionStateSize) Decorate ¶ added in v1.6.0
func (e *ExecutionStateSize) Decorate(ctx context.Context) (*xatu.DecoratedEvent, error)
Decorate decorates the event with additional metadata and returns a DecoratedEvent.
func (*ExecutionStateSize) ShouldIgnore ¶ added in v1.6.0
func (e *ExecutionStateSize) ShouldIgnore(ctx context.Context) (bool, error)
ShouldIgnore checks if the event should be ignored based on duplicate detection. We use state_root as the cache key since each unique state should only be reported once.
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.