parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetScalarGatewayAbi

func GetScalarGatewayAbi() *abi.ABI

func ParseEventData

func ParseEventData(receiptLog *eth_types.Log, eventName string, eventData any) error

Types

type AllEvmEvents

func ParseLogs

func ParseLogs(receiptLogs []*eth_types.Log) AllEvmEvents

type EvmEvent

type EvmEvent[T any] struct {
	Hash             string //TxHash
	BlockNumber      uint64
	TxIndex          uint
	LogIndex         uint
	WaitForFinality  func() (*types.Receipt, error)
	SourceChain      string
	DestinationChain string
	EventName        string
	Args             T
}

func CreateEvmEventFromArgs

func CreateEvmEventFromArgs[T ValidEvmEvent](eventArgs T, log *eth_types.Log) *EvmEvent[T]

Jump to

Keyboard shortcuts

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