Documentation
¶
Index ¶
- Variables
- func ScriptEngineCheck(d []byte) bool
- type CallTraceResult
- type CallTraceResultWithPath
- type Debug
- type ExecutionResult
- type NativeTokenSupply
- type StorageEntry
- type StorageMap
- type StorageRangeOption
- type StorageRangeResult
- type StructLogRes
- type TokenSupplyDetail
- type TraceAction
- type TraceData
- type TraceDataResult
- type TraceFilterOptions
- type TraceResult
- type TracerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Magic = [4]byte{0x00, 0x00, 0x00, 0x00}
)
Functions ¶
Types ¶
type CallTraceResult ¶ added in v1.2.0
type CallTraceResultWithPath ¶ added in v1.2.0
type CallTraceResultWithPath struct {
// contains filtered or unexported fields
}
type ExecutionResult ¶
type ExecutionResult struct {
Gas uint64 `json:"gas"`
Failed bool `json:"failed"`
ReturnValue string `json:"returnValue"`
StructLogs []StructLogRes `json:"structLogs"`
}
type NativeTokenSupply ¶
type NativeTokenSupply struct {
MTR TokenSupplyDetail `json:"MTR"`
MTRG TokenSupplyDetail `json:"MTRG"`
}
type StorageEntry ¶
type StorageMap ¶
type StorageMap map[string]StorageEntry
type StorageRangeOption ¶
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 TokenSupplyDetail ¶
type TraceAction ¶ added in v1.2.0
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 TraceFilterOptions ¶ added in v1.2.0
type TraceResult ¶
type TraceResult struct {
Type string `json:"type"`
From meter.Address `json:"from"`
To meter.Address `json:"to"`
Value *big.Int `json:"value"`
Gas *big.Int `json:"gas"`
GasUsed *big.Int `json:"gasUsed"`
Input string `json:"input"`
Output string `json:"output"`
Error string `json:"error"`
Time string `json:"time"`
}
type TracerOption ¶
Click to show internal directories.
Click to hide internal directories.