types

package
v0.1.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL