debug

package
v0.0.0-...-75aef46 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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   *powerplay.Bytes32 `json:"key"`
	Value *powerplay.Bytes32 `json:"value"`
}

type StorageMap

type StorageMap map[string]StorageEntry

type StorageRangeOption

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

type StorageRangeResult

type StorageRangeResult struct {
	Storage StorageMap         `json:"storage"`
	NextKey *powerplay.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 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