Versions in this module Expand all Collapse all v0 v0.1.1 Sep 13, 2022 Changes in this version + func NewMarkdownLogger(cfg *Config, writer io.Writer) *mdLogger + func WriteLogs(writer io.Writer, logs []*types.Log) + func WriteTrace(writer io.Writer, logs []StructLog) + type AccessListTracer struct + func NewAccessListTracer(acl types.AccessList, from, to common.Address, precompiles []common.Address) *AccessListTracer + func (*AccessListTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) + func (*AccessListTracer) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, ...) + func (*AccessListTracer) CaptureExit(output []byte, gasUsed uint64, err error) + func (*AccessListTracer) CaptureFault(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, depth int, ...) + func (a *AccessListTracer) AccessList() types.AccessList + func (a *AccessListTracer) CaptureStart(env *vm.EVM, from common.Address, to common.Address, create bool, input []byte, ...) + func (a *AccessListTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...) + func (a *AccessListTracer) Equal(other *AccessListTracer) bool + type Config struct + Debug bool + DisableStack bool + DisableStorage bool + EnableMemory bool + EnableReturnData bool + Limit int + Overrides *params.ChainConfig + type JSONLogger struct + func NewJSONLogger(cfg *Config, writer io.Writer) *JSONLogger + func (l *JSONLogger) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) + func (l *JSONLogger) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, ...) + func (l *JSONLogger) CaptureExit(output []byte, gasUsed uint64, err error) + func (l *JSONLogger) CaptureFault(pc uint64, op vm.OpCode, gas uint64, cost uint64, scope *vm.ScopeContext, ...) + func (l *JSONLogger) CaptureStart(env *vm.EVM, from, to common.Address, create bool, input []byte, gas uint64, ...) + func (l *JSONLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...) + type Storage map[common.Hash]common.Hash + func (s Storage) Copy() Storage + type StructLog struct + Depth int + Err error + Gas uint64 + GasCost uint64 + Memory []byte + MemorySize int + Op vm.OpCode + Pc uint64 + RefundCounter uint64 + ReturnData []byte + Stack []uint256.Int + Storage map[common.Hash]common.Hash + func (s *StructLog) ErrorString() string + func (s *StructLog) OpName() string + func (s *StructLog) UnmarshalJSON(input []byte) error + func (s StructLog) MarshalJSON() ([]byte, error) + type StructLogger struct + func NewStructLogger(cfg *Config) *StructLogger + func (l *StructLogger) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) + func (l *StructLogger) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, ...) + func (l *StructLogger) CaptureExit(output []byte, gasUsed uint64, err error) + func (l *StructLogger) CaptureFault(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, depth int, ...) + func (l *StructLogger) CaptureStart(env *vm.EVM, from common.Address, to common.Address, create bool, input []byte, ...) + func (l *StructLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...) + func (l *StructLogger) Error() error + func (l *StructLogger) Output() []byte + func (l *StructLogger) Reset() + func (l *StructLogger) StructLogs() []StructLog