types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 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 AccessTuple added in v1.0.0

type AccessTuple interface {
	Address() common.Address
	StorageKeys() []common.Hash
}

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
	BaseFeePerGas() *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
	BaseFeePerGas() *hexutil.Big
}

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
	GasTipCap() *hexutil.Big
	GasFeeCap() *hexutil.Big
	GasPrice() *hexutil.Big
	Nonce() *hexutil.Big

	AccessList() []AccessTuple
}

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
	EffectiveGasPrice() hexutil.Uint64
	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