Versions in this module Expand all Collapse all v1 v1.0.3 Sep 5, 2024 v1.0.2 Sep 5, 2024 Changes in this version + func NewJSONLogger(cfg *Config, writer io.Writer) *tracing.Hooks + func NewJSONLoggerWithCallFrames(cfg *Config, writer io.Writer) *tracing.Hooks + 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 (a *AccessListTracer) AccessList() types.AccessList + func (a *AccessListTracer) Equal(other *AccessListTracer) bool + func (a *AccessListTracer) Hooks() *tracing.Hooks + func (a *AccessListTracer) OnOpcode(pc uint64, opcode byte, gas, cost uint64, scope tracing.OpContext, ...) + type Config struct + Debug bool + DisableStack bool + DisableStorage bool + EnableMemory bool + EnableReturnData bool + Limit int + Overrides *params.ChainConfig + type ExecutionResult struct + Failed bool + Gas uint64 + ReturnValue string + StructLogs []StructLogRes + 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 StructLogRes struct + Depth int + Error string + Gas uint64 + GasCost uint64 + Memory *[]string + Op string + Pc uint64 + RefundCounter uint64 + ReturnData string + Stack *[]string + Storage *map[string]string + type StructLogger struct + func NewStructLogger(cfg *Config) *StructLogger + func (l *StructLogger) Error() error + func (l *StructLogger) GetResult() (json.RawMessage, error) + func (l *StructLogger) Hooks() *tracing.Hooks + func (l *StructLogger) OnExit(depth int, output []byte, gasUsed uint64, err error, reverted bool) + func (l *StructLogger) OnOpcode(pc uint64, opcode byte, gas, cost uint64, scope tracing.OpContext, ...) + func (l *StructLogger) OnTxEnd(receipt *types.Receipt, err error) + func (l *StructLogger) OnTxStart(env *tracing.VMContext, tx *types.Transaction, from common.Address) + func (l *StructLogger) Output() []byte + func (l *StructLogger) Reset() + func (l *StructLogger) Stop(err error) + func (l *StructLogger) StructLogs() []StructLog