types

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block interface {
	Number() Number
	Hash() common.Hash
	Transactions() []Transaction
	ParentHash() common.Hash
	Time() *hexutil.Big
	Timestamp() time.Time
	Difficulty() *hexutil.Big
	GasLimit() *hexutil.Big
}

type BlockHeader

type BlockHeader interface {
	Number() Number
	Hash() common.Hash
	StateRoot() common.Hash
	ParentHash() common.Hash
	UncleHash() common.Hash
	TxHash() common.Hash
	ReceiptHash() common.Hash
	Bloom() [256]byte
	Difficulty() *hexutil.Big
	GasLimit() *hexutil.Big
	GasUsed() *hexutil.Big
	Coinbase() common.Address
	Time() *hexutil.Big
	Timestamp() time.Time
	ExtraData() hexutil.Bytes
	MixDigest() common.Hash
	Nonce() [8]byte
}

type CallTraces

type CallTraces interface {
	Traces() []Trace
}

type EvmState

type EvmState interface {
	Pc() uint64
	Depth() int
	Op() string
	Stack() []string
}
type Header interface {
	Number() *Number
}

type Log

type Log interface {
	Topics() []string
	Data() string
}

type Number

type Number int64

func (Number) Big

func (n Number) Big() *big.Int

func (*Number) Hex

func (n *Number) Hex() string

func (*Number) MarshalJSON

func (n *Number) MarshalJSON() ([]byte, error)

func (*Number) UnmarshalJSON

func (n *Number) UnmarshalJSON(b []byte) error

func (Number) Value

func (n Number) Value() int64

type SubscriptionID

type SubscriptionID string

func NewNilSubscriptionID

func NewNilSubscriptionID() SubscriptionID

func (SubscriptionID) String

func (id SubscriptionID) String() string

type SubscriptionResult

type SubscriptionResult struct {
	Subscription SubscriptionID `json:"subscription"`
	Result       Header         `json:"result"`
}

type Trace

type Trace interface {
	Hash() *common.Hash
	ParentHash() *common.Hash
	TransactionHash() *common.Hash
	Type() string
	From() common.Address
	To() common.Address
	Input() hexutil.Bytes
	Output() hexutil.Bytes
	Gas() *hexutil.Uint64
	GasUsed() *hexutil.Uint64
	Value() *hexutil.Big
	Error() string
}

type Transaction

type Transaction interface {
	Hash() common.Hash
	BlockNumber() *hexutil.Big
	BlockHash() *common.Hash

	From() common.Address
	To() *common.Address

	Input() hexutil.Bytes
	Value() *hexutil.Big
	Gas() *hexutil.Big
	GasPrice() *hexutil.Big
	Nonce() *hexutil.Big
}

type TransactionReceipt

type TransactionReceipt interface {
	Hash() string
	TransactionIndex() Number

	BlockHash() common.Hash
	BlockNumber() Number

	From() common.Address
	To() *common.Address

	GasUsed() *hexutil.Big
	CumulativeGasUsed() *hexutil.Big
	ContractAddress() *common.Address

	Status() string
	SetStatus(trace string)
	Logs() []Log
	LogsBloom() hexutil.Bytes
}

type TransactionStates

type TransactionStates interface {
	States() []EvmState
	ProcessTrace()
}

type UnsubscribeSuccess

type UnsubscribeSuccess bool

Jump to

Keyboard shortcuts

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