tracing

package
v0.0.0-...-4c8f420 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

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

Tracer represents the implementation of the Blockchain tracing interface for Fantom Opera node.

func New

func New(rpcCfg *config.Rpc, log *logger.AppLogger) *Tracer

New creates a new instance of the TracingRpc client.

func (*Tracer) TraceTransaction

func (t *Tracer) TraceTransaction(hash common.Hash) ([]types.TransactionTrace, error)

TraceTransaction returns the structured logs created during the execution of EVM and returns them as a JSON object.

type TracerInterface

type TracerInterface interface {
	TraceTransaction(hash common.Hash) ([]types.TransactionTrace, error)
}

TracerInterface defines the interface of the TracingRpc client.

type TracerMock

type TracerMock struct {
	mock.Mock
}

TracerMock is mock of the TracingRpc client.

func (*TracerMock) TraceTransaction

func (tm *TracerMock) TraceTransaction(hash common.Hash) ([]types.TransactionTrace, error)

Jump to

Keyboard shortcuts

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