Documentation ¶
Index ¶
- type Config
- type StructLog
- type StructLogRes
- type StructTraceResult
- type StructTracer
- func (t *StructTracer) CallEnd(depth int, output []byte, err error)
- func (t *StructTracer) CallStart(depth int, from, to types.Address, callType int, gas uint64, value *big.Int, ...)
- func (t *StructTracer) Cancel(err error)
- func (t *StructTracer) CaptureState(memory []byte, stack []*big.Int, opCode int, contractAddress types.Address, ...)
- func (t *StructTracer) Clear()
- func (t *StructTracer) ExecuteState(contractAddress types.Address, ip uint64, opCode string, availableGas uint64, ...)
- func (t *StructTracer) GetResult() (interface{}, error)
- func (t *StructTracer) TxEnd(gasLeft uint64)
- func (t *StructTracer) TxStart(gasLimit uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructLog ¶
type StructLog struct { Pc uint64 `json:"pc"` Op string `json:"op"` Gas uint64 `json:"gas"` GasCost uint64 `json:"gasCost"` Memory []byte `json:"memory,omitempty"` MemorySize int `json:"memSize"` Stack []*big.Int `json:"stack"` ReturnData []byte `json:"returnData,omitempty"` Storage map[types.Hash]types.Hash `json:"storage"` Depth int `json:"depth"` RefundCounter uint64 `json:"refund"` Err error `json:"err"` }
func (*StructLog) ErrorString ¶
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"` Memory []string `json:"memory"` Storage map[string]string `json:"storage"` RefundCounter uint64 `json:"refund,omitempty"` }
type StructTraceResult ¶
type StructTraceResult struct { Failed bool `json:"failed"` Gas uint64 `json:"gas"` ReturnValue string `json:"returnValue"` StructLogs []StructLogRes `json:"structLogs"` }
type StructTracer ¶
type StructTracer struct { Config Config // contains filtered or unexported fields }
func NewStructTracer ¶
func NewStructTracer(config Config) *StructTracer
func (*StructTracer) CallEnd ¶
func (t *StructTracer) CallEnd( depth int, output []byte, err error, )
func (*StructTracer) Cancel ¶
func (t *StructTracer) Cancel(err error)
func (*StructTracer) CaptureState ¶
func (*StructTracer) Clear ¶
func (t *StructTracer) Clear()
func (*StructTracer) ExecuteState ¶
func (*StructTracer) GetResult ¶
func (t *StructTracer) GetResult() (interface{}, error)
func (*StructTracer) TxEnd ¶
func (t *StructTracer) TxEnd(gasLeft uint64)
func (*StructTracer) TxStart ¶
func (t *StructTracer) TxStart(gasLimit uint64)
Click to show internal directories.
Click to hide internal directories.