traces

package
v0.0.0-...-cfa6b07 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChunkSize = uint64(31)

Global variable chunk size

Functions

func AnalyzeCalls

func AnalyzeCalls(trace *Traces)

AnalyzeCalls scans through the ops, and assigns context-addresses to the lines.

func ParseHex

func ParseHex(s string) (uint256.Int, error)

ParseHex parses s as a 256 bit integer in hexadecimal syntax. Leading zeros are accepted. The empty string parses as zero.

func ShowHex

func ShowHex(data, prevData []byte, table *tview.Table)

ShowHex displays a classic hexdump using the table. if prevdata is non-nil, all diffs between data and prevdata are highlighted

Types

type TraceLine

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

func (*TraceLine) CallStack

func (t *TraceLine) CallStack() []*callInfo

func (*TraceLine) Depth

func (t *TraceLine) Depth() int

func (*TraceLine) Equals

func (t *TraceLine) Equals(other *TraceLine) bool

func (*TraceLine) Get

func (t *TraceLine) Get(title string) string

func (*TraceLine) Memory

func (t *TraceLine) Memory() []byte

func (*TraceLine) Op

func (t *TraceLine) Op() byte

func (*TraceLine) Source

func (t *TraceLine) Source() string

func (*TraceLine) Stack

func (t *TraceLine) Stack() []uint256.Int

func (*TraceLine) Step

func (t *TraceLine) Step() uint64

type Traces

type Traces struct {
	Ops  []*TraceLine
	Errs []string
}

func ReadFile

func ReadFile(location string) (*Traces, error)

ReadFile reads a trace from either a json-lines file or json-file, optionally snappy encoded

func (*Traces) Get

func (traces *Traces) Get(index int) *TraceLine

func (*Traces) Search

func (traces *Traces) Search(op string, from int) (*TraceLine, int)

Jump to

Keyboard shortcuts

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