hooks

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TargetAddress = common.BytesToAddress([]byte("target"))

TargetAddress can be used to match the target (to) address in the TargetStyler of CallTracerOptions.

Functions

func NewCallTracer

func NewCallTracer(w io.Writer, opts *CallTracerOptions) *tracing.Hooks

NewCallTracer returns a new hook that writes to w and is configured with opts.

Types

type CallTracerOptions

type CallTracerOptions struct {
	TargetStyler func(addr common.Address) lipgloss.Style

	ShowStaticcall bool

	ShowOp   func(op byte, pc uint64, addr common.Address) bool
	OpStyler func(op byte) lipgloss.Style

	DecodeABI bool
	// contains filtered or unexported fields
}

CallTracerOptions configures the CallTracer hook. A zero CallTracerOptions consists entirely of default values.

Jump to

Keyboard shortcuts

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