Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { EnableMemory bool // enable memory capture DisableStack bool // disable stack capture DisableStorage bool // disable storage capture EnableReturnData bool // enable return data capture }
Config are the configuration options for structured logger the EVM
type JSONLogger ¶
type JSONLogger struct {
// contains filtered or unexported fields
}
func NewStructLogger ¶
func NewStructLogger(cfg Config) *JSONLogger
func (*JSONLogger) ParseTrace ¶
func (l *JSONLogger) ParseTrace(result *runtime.ExecutionResult, receipt types.Receipt) (json.RawMessage, error)
type StructLogRes ¶
type StructLogRes struct { Pc uint64 `json:"pc"` Op string `json:"op"` Gas uint64 `json:"gas"` GasCost uint64 `json:"gasCost"` Depth int `json:"depth"` Error string `json:"error,omitempty"` Stack *[]string `json:"stack,omitempty"` Memory *[]string `json:"memory,omitempty"` Storage *map[string]string `json:"storage,omitempty"` RefundCounter uint64 `json:"refund,omitempty"` }
StructLogRes represents the debug trace information for each opcode
type TraceResponse ¶
type TraceResponse struct { Gas uint64 `json:"gas"` Failed bool `json:"failed"` ReturnValue interface{} `json:"returnValue"` StructLogs []StructLogRes `json:"structLogs"` }
Click to show internal directories.
Click to hide internal directories.