Documentation ¶
Index ¶
- Variables
- func Walk(c *CallTrace, ch chan *CallTrace)
- type Block
- type CallTrace
- func (c *CallTrace) Error() string
- func (c *CallTrace) From() common.Address
- func (c *CallTrace) Gas() *hexutil.Uint64
- func (c *CallTrace) GasUsed() *hexutil.Uint64
- func (c *CallTrace) Hash() *common.Hash
- func (c *CallTrace) Input() hexutil.Bytes
- func (c *CallTrace) Output() hexutil.Bytes
- func (c *CallTrace) ParentHash() *common.Hash
- func (c *CallTrace) To() common.Address
- func (c *CallTrace) Traces() []ethereum.Trace
- func (c *CallTrace) TransactionHash() *common.Hash
- func (c *CallTrace) Type() string
- func (c *CallTrace) Value() *hexutil.Big
- type EvmState
- type Header
- type Log
- type PubSubSchema
- type Schema
- type SubscriptionResult
- type TraceResult
- type Transaction
- func (t *Transaction) From() *common.Address
- func (t *Transaction) Gas() *hexutil.Big
- func (t *Transaction) GasPrice() *hexutil.Big
- func (t *Transaction) Hash() *common.Hash
- func (t *Transaction) Input() hexutil.Bytes
- func (t *Transaction) To() *common.Address
- func (t *Transaction) Value() *hexutil.Big
- type TransactionReceipt
- func (t *TransactionReceipt) BlockHash() common.Hash
- func (t *TransactionReceipt) BlockNumber() hexutil.Big
- func (t *TransactionReceipt) ContractAddress() *common.Address
- func (t *TransactionReceipt) CumulativeGasUsed() *hexutil.Big
- func (t *TransactionReceipt) From() common.Address
- func (t *TransactionReceipt) GasUsed() *hexutil.Big
- func (t *TransactionReceipt) Hash() string
- func (t *TransactionReceipt) Logs() []ethereum.Log
- func (t *TransactionReceipt) LogsBloom() hexutil.Bytes
- func (t *TransactionReceipt) SetStatus(trace string)
- func (t *TransactionReceipt) Status() string
- func (t *TransactionReceipt) To() *common.Address
- func (t *TransactionReceipt) TransactionIndex() hexutil.Big
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSchema = Schema{
ValueEth: ethSchema{},
ValueNet: netSchema{},
ValueTrace: traceSchema{},
ValueCode: codeSchema{},
ValuePubSub: pubSubSchema{},
}
Functions ¶
Types ¶
type Block ¶
type Block struct {
ValuesTransactions []*Transaction `json:"transactions"`
}
func (Block) Transactions ¶
func (b Block) Transactions() []ethereum.Transaction
type CallTrace ¶
type CallTrace struct { ValueHash *common.Hash `json:"hash"` ValueParentHash *common.Hash `json:"parentHash"` ValueTransactionHash *common.Hash `json:"transactionHash"` ValueType string `json:"type"` ValueFrom common.Address `json:"from"` ValueTo common.Address `json:"to"` ValueInput hexutil.Bytes `json:"input"` ValueOutput hexutil.Bytes `json:"output"` ValueGas *hexutil.Uint64 `json:"gas,omitempty"` ValueGasUsed *hexutil.Uint64 `json:"gasUsed,omitempty"` ValueValue *hexutil.Big `json:"value,omitempty"` ValueError string `json:"error,omitempty"` ValueCalls []CallTrace `json:"calls,omitempty"` }
func (*CallTrace) ParentHash ¶
func (*CallTrace) TransactionHash ¶
type EvmState ¶
type EvmState struct { ValuePc uint64 `json:"pc"` ValueOp string `json:"op"` ValueGas uint64 `json:"gas"` ValueGasCost int64 `json:"gasCost"` ValueDepth int `json:"depth"` ValueError json.RawMessage `json:"error,omitempty"` ValueStack *[]string `json:"stack,omitempty"` ValueMemory *[]string `json:"memory,omitempty"` ValueStorage *map[string]string `json:"storage,omitempty"` }
type Log ¶
type Log struct { ValueAddress string `json:"address"` ValueBlockHash string `json:"blockHash"` ValueBlockNumber string `json:"blockNumber"` ValueData string `json:"data"` ValueLogIndex string `json:"logIndex"` ValueRemoved bool `json:"removed"` ValueTopics []string `json:"topics"` ValueTransactionHash string `json:"transactionHash"` ValueTransactionIndex string `json:"transactionIndex"` ValueTransactionLogIndex string `json:"transactionLogIndex"` ValueType string `json:"type"` }
type PubSubSchema ¶
type PubSubSchema interface { Subscribe() (*jsonrpc2.Request, *ethereum.SubscriptionID) Unsubscribe(id ethereum.SubscriptionID) (*jsonrpc2.Request, *ethereum.UnsubscribeSuccess) }
type Schema ¶
type Schema struct { ValueEth ethereum.EthSchema ValueNet ethereum.NetSchema ValueTrace ethereum.TraceSchema ValueCode ethereum.CodeSchema ValuePubSub ethereum.PubSubSchema }
func (*Schema) Code ¶
func (s *Schema) Code() ethereum.CodeSchema
func (*Schema) PubSub ¶
func (s *Schema) PubSub() ethereum.PubSubSchema
func (*Schema) Trace ¶
func (s *Schema) Trace() ethereum.TraceSchema
type SubscriptionResult ¶
type SubscriptionResult struct { Subscription ethereum.SubscriptionID `json:"subscription"` Result Header `json:"result"` }
type TraceResult ¶
type TraceResult struct { Gas uint64 `json:"gas"` Failed bool `json:"failed"` ReturnValue string `json:"returnValue"` StructLogs []*EvmState `json:"structLogs"` }
func (*TraceResult) ProcessTrace ¶
func (gtr *TraceResult) ProcessTrace()
func (*TraceResult) States ¶
func (gtr *TraceResult) States() []ethereum.EvmState
type Transaction ¶
type Transaction struct { ValueHash *common.Hash `json:"hash"` ValueFrom *common.Address `json:"from"` ValueTo *common.Address `json:"to"` //ValueInput hexutil.Bytes `json:"input"` //ValueValue *hexutil.Big `json:"value"` //ValueGas *hexutil.Big `json:"gas"` //ValueGasPrice *hexutil.Big `json:"gasPrice"` ValueBlockNumber string `json:"blockNumber"` }
func (*Transaction) From ¶
func (t *Transaction) From() *common.Address
func (*Transaction) Gas ¶
func (t *Transaction) Gas() *hexutil.Big
func (*Transaction) GasPrice ¶
func (t *Transaction) GasPrice() *hexutil.Big
func (*Transaction) Hash ¶
func (t *Transaction) Hash() *common.Hash
func (*Transaction) Input ¶
func (t *Transaction) Input() hexutil.Bytes
func (*Transaction) To ¶
func (t *Transaction) To() *common.Address
func (*Transaction) Value ¶
func (t *Transaction) Value() *hexutil.Big
type TransactionReceipt ¶
type TransactionReceipt struct { TTransactionHash string `json:"transactionHash"` TTransactionIndex hexutil.Big `json:"transactionIndex"` TBlockHash common.Hash `json:"blockHash"` TBlockNumber hexutil.Big `json:"blockNumber"` TFrom common.Address `json:"from"` TTo *common.Address `json:"to"` TGasUsed *hexutil.Big `json:"gasUsed"` TCumulativeGasUsed *hexutil.Big `json:"cumulativeGasUsed"` TContractAddress *common.Address `json:"contractAddress"` TStatus string `json:"status"` // Can be null, if null do a check anyways. 0x0 fail, 0x1 success TLogs []*Log `json:"logs"` TLogsBloom hexutil.Bytes `json:"logsBloom"` TRoot *string `json:"root"` }
func (*TransactionReceipt) BlockHash ¶ added in v0.2.10
func (t *TransactionReceipt) BlockHash() common.Hash
func (*TransactionReceipt) BlockNumber ¶ added in v0.2.10
func (t *TransactionReceipt) BlockNumber() hexutil.Big
func (*TransactionReceipt) ContractAddress ¶
func (t *TransactionReceipt) ContractAddress() *common.Address
func (*TransactionReceipt) CumulativeGasUsed ¶
func (t *TransactionReceipt) CumulativeGasUsed() *hexutil.Big
func (*TransactionReceipt) From ¶ added in v0.2.10
func (t *TransactionReceipt) From() common.Address
func (*TransactionReceipt) GasUsed ¶
func (t *TransactionReceipt) GasUsed() *hexutil.Big
func (*TransactionReceipt) Hash ¶
func (t *TransactionReceipt) Hash() string
func (*TransactionReceipt) Logs ¶
func (t *TransactionReceipt) Logs() []ethereum.Log
func (*TransactionReceipt) LogsBloom ¶ added in v0.2.10
func (t *TransactionReceipt) LogsBloom() hexutil.Bytes
func (*TransactionReceipt) SetStatus ¶
func (t *TransactionReceipt) SetStatus(trace string)
func (*TransactionReceipt) Status ¶
func (t *TransactionReceipt) Status() string
func (*TransactionReceipt) To ¶ added in v0.2.10
func (t *TransactionReceipt) To() *common.Address
func (*TransactionReceipt) TransactionIndex ¶ added in v0.2.10
func (t *TransactionReceipt) TransactionIndex() hexutil.Big
Click to show internal directories.
Click to hide internal directories.