debug

package
v1.2.0-fork5-fix2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Magic = [4]byte{0x00, 0x00, 0x00, 0x00}
)

Functions

This section is empty.

Types

type CallTraceResult added in v1.2.0

type CallTraceResult struct {
	Type    string            `json:"type"`
	From    string            `json:"from"`
	To      string            `json:"to"`
	Value   string            `json:"value"`
	Gas     string            `json:"gas"`
	GasUsed string            `json:"gasUsed"`
	Input   string            `json:"input"`
	Output  string            `json:"output"`
	Calls   []CallTraceResult `json:"calls"`
}

type CallTraceResultWithPath added in v1.2.0

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

type Debug

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

func New

func New(chain *chain.Chain, stateC *state.Creator) *Debug

func (*Debug) Mount

func (d *Debug) Mount(root *mux.Router, pathPrefix string)

type ExecutionResult

type ExecutionResult struct {
	Gas         uint64         `json:"gas"`
	Failed      bool           `json:"failed"`
	ReturnValue string         `json:"returnValue"`
	StructLogs  []StructLogRes `json:"structLogs"`
}

type StorageEntry

type StorageEntry struct {
	Key   *meter.Bytes32 `json:"key"`
	Value *meter.Bytes32 `json:"value"`
}

type StorageMap

type StorageMap map[string]StorageEntry

type StorageRangeOption

type StorageRangeOption struct {
	Address   meter.Address
	KeyStart  string
	MaxResult int
	Target    string
}

type StorageRangeResult

type StorageRangeResult struct {
	Storage StorageMap     `json:"storage"`
	NextKey *meter.Bytes32 `json:"nextKey"` // nil if Storage includes the last key in the trie.
}

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   error              `json:"error,omitempty"`
	Stack   *[]string          `json:"stack,omitempty"`
	Memory  *[]string          `json:"memory,omitempty"`
	Storage *map[string]string `json:"storage,omitempty"`
}

type TraceAction added in v1.2.0

type TraceAction struct {
	CallType string        `json:"callType"`
	From     meter.Address `json:"from"`
	Gas      string        `json:"gas"`
	Input    string        `json:"input"`
	To       meter.Address `json:"to"`
	Value    string        `json:"value"`
}

type TraceData added in v1.2.0

type TraceData struct {
	Action              TraceAction     `json:"action"`
	BlockHash           meter.Bytes32   `json:"blockHash"`
	BlockNumber         uint64          `json:"blockNumber"`
	Result              TraceDataResult `json:"result"`
	Subtraces           uint64          `json:"subtraces"`
	TraceAddress        []uint64        `json:"traceAddress"`
	TransactionHash     meter.Bytes32   `json:"transactionHash"`
	TransactionPosition uint64          `json:"transactionPosition"`
	Type                string          `json:"type"`
}

type TraceDataResult added in v1.2.0

type TraceDataResult struct {
	GasUsed string `json:"gasUsed"`
	Output  string `json:"output"`
}

type TraceFilterOptions added in v1.2.0

type TraceFilterOptions struct {
	FromBlock   string          `json:"fromBlock"`
	ToBlock     string          `json:"toBlock"`
	FromAddress []meter.Address `json:"fromAddress"`
	ToAddress   []meter.Address `json:"toAddress"`
	After       uint64          `json:"after"`
	Count       uint64          `json:"count"`
}

type TracerOption

type TracerOption struct {
	Name   string `json:"name"`
	Target string `json:"target"`
}

Jump to

Keyboard shortcuts

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