trace

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceBlock added in v1.2.13

func NewTraceBlock(id []byte, rl module.ReceiptList) module.TraceBlock

func ToJSON

func ToJSON(v interface{}) string

Types

type BalanceTracer added in v1.2.13

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

func NewBalanceTracer added in v1.2.13

func NewBalanceTracer(capacity int, thr TxHashReplacer) *BalanceTracer

func (*BalanceTracer) OnBalanceChange added in v1.2.13

func (bt *BalanceTracer) OnBalanceChange(opType module.OpType, from, to module.Address, amount *big.Int) error

func (*BalanceTracer) OnFrameEnter added in v1.2.13

func (bt *BalanceTracer) OnFrameEnter() error

func (*BalanceTracer) OnFrameExit added in v1.2.13

func (bt *BalanceTracer) OnFrameExit(success bool) error

func (*BalanceTracer) OnTransactionEnd added in v1.2.13

func (bt *BalanceTracer) OnTransactionEnd(txIndex int, txHash []byte) error

func (*BalanceTracer) OnTransactionReset added in v1.2.13

func (bt *BalanceTracer) OnTransactionReset() error

func (*BalanceTracer) OnTransactionStart added in v1.2.13

func (bt *BalanceTracer) OnTransactionStart(txIndex int, txHash []byte, isBlockTx bool) error

func (*BalanceTracer) ToJSON added in v1.2.13

func (bt *BalanceTracer) ToJSON(height int64) interface{}

type Logger

type Logger struct {
	log.Logger
	// contains filtered or unexported fields
}

func LoggerOf

func LoggerOf(l log.Logger) *Logger

func NewLogger

func NewLogger(l log.Logger, ti *module.TraceInfo) *Logger

func (*Logger) OnBalanceChange added in v1.2.13

func (l *Logger) OnBalanceChange(opType module.OpType, from, to module.Address, amount *big.Int)

func (*Logger) OnFrameEnter added in v1.2.13

func (l *Logger) OnFrameEnter(frameId int)

func (*Logger) OnFrameExit added in v1.2.13

func (l *Logger) OnFrameExit(success bool, stepUsed *big.Int)

func (*Logger) OnTransactionEnd added in v1.2.13

func (l *Logger) OnTransactionEnd(
	txIndex int, txHash []byte, from module.Address, treasury module.Address,
	revision module.Revision, rct txresult.Receipt)

func (*Logger) OnTransactionReset added in v1.2.13

func (l *Logger) OnTransactionReset()

func (*Logger) OnTransactionStart added in v1.2.13

func (l *Logger) OnTransactionStart(txIndex int, txHash []byte)

func (*Logger) TDebug

func (l *Logger) TDebug(a ...interface{})

func (*Logger) TDebugf

func (l *Logger) TDebugf(f string, a ...interface{})

func (*Logger) TDebugln

func (l *Logger) TDebugln(a ...interface{})

func (*Logger) TLog

func (l *Logger) TLog(lv module.TraceLevel, a ...interface{})

func (*Logger) TLogf

func (l *Logger) TLogf(lv module.TraceLevel, f string, a ...interface{})

func (*Logger) TLogln

func (l *Logger) TLogln(lv module.TraceLevel, a ...interface{})

func (*Logger) TPrefix added in v1.2.4

func (l *Logger) TPrefix() string

func (*Logger) TSystem

func (l *Logger) TSystem(a ...interface{})

func (*Logger) TSystemf

func (l *Logger) TSystemf(f string, a ...interface{})

func (*Logger) TSystemln

func (l *Logger) TSystemln(a ...interface{})

func (*Logger) TTrace

func (l *Logger) TTrace(a ...interface{})

func (*Logger) TTracef

func (l *Logger) TTracef(f string, a ...interface{})

func (*Logger) TTraceln

func (l *Logger) TTraceln(a ...interface{})

func (*Logger) TraceMode added in v1.2.13

func (l *Logger) TraceMode() module.TraceMode

func (*Logger) WithFields

func (l *Logger) WithFields(f log.Fields) log.Logger

func (*Logger) WithTPrefix added in v1.2.4

func (l *Logger) WithTPrefix(prefix string) *Logger

type TxHashReplacer added in v1.2.13

type TxHashReplacer func(height int64, txHash []byte) []byte

Jump to

Keyboard shortcuts

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