Documentation ¶
Overview ¶
Package types holds supplemental types for sinner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventParser ¶
type EventParser interface { // ParseAndStore parses and stores the event. ParseAndStore(ctx context.Context, log ethTypes.Log, tx TxSupplementalInfo) error }
EventParser is the interface for parsing and storing events.
type MessageType ¶
type MessageType string
MessageType is the type of message.
const ( // Origin is the origin message type. Origin MessageType = "origin" // Destination is the destination message type from the execution hub. Destination MessageType = "destination" )
type TxSupplementalInfo ¶
type TxSupplementalInfo struct { // TxHash string TxHash string // Sender is the address of the sender Sender string // Timestamp is the timestamp of the tx Timestamp int }
TxSupplementalInfo is the supplemental info for a tx.
Click to show internal directories.
Click to hide internal directories.