logutils

package
v0.0.0-...-8c998e4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFieldFromUnpacked

func ExtractFieldFromUnpacked[T any](unpacked map[string]interface{}, field string) (T, error)

func UnpackLogDataIntoMap

func UnpackLogDataIntoMap(
	contractABI abi.ABI,
	eventKey string,
	logData []byte,
) (
	map[string]interface{},
	error,
)

UnpackLogDataIntoMap uses contract's ABI to parse the data bytes into map of key-value pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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