decoder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABIWrapper

type ABIWrapper struct {
	// contains filtered or unexported fields
}

ABIWrapper wraps the decoding logic using go-ethereum's ABI parser.

func NewFromJSON

func NewFromJSON(jsonStr string) (*ABIWrapper, error)

NewFromJSON creates a decoder from a JSON ABI string

func (*ABIWrapper) Decode

func (w *ABIWrapper) Decode(log types.Log) (*DecodedLog, error)

Decode parses a single Log

type DecodedLog

type DecodedLog struct {
	Name   string                 // Event name (e.g., Transfer)
	Inputs map[string]interface{} // Parameter key-value pairs (e.g., from: 0x..., value: 100)
}

DecodedLog contains parsed human-readable data from a transaction log.

Jump to

Keyboard shortcuts

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