types

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressBytesLen = 20
)
View Source
const (
	HashBytesLen = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address [AddressBytesLen]byte

func Int256ToAddress

func Int256ToAddress(i *evmInt256.Int) Address

func (Address) Int256

func (a Address) Int256() *evmInt256.Int

func (Address) MarshalText

func (a Address) MarshalText() ([]byte, error)

func (*Address) SetBytes

func (a *Address) SetBytes(b []byte) *Address

func (Address) String

func (a Address) String() string

func (*Address) UnmarshalText

func (a *Address) UnmarshalText(val []byte) error

type Bytes added in v0.5.2

type Bytes []byte

func (Bytes) Clone added in v0.5.7

func (b Bytes) Clone() Bytes

func (Bytes) MarshalJSON added in v0.5.2

func (b Bytes) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Bytes) UnmarshalJSON added in v0.5.2

func (b *Bytes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

type DataBlock added in v0.5.7

type DataBlock map[Slot]Bytes

func (DataBlock) Clone added in v0.5.7

func (d DataBlock) Clone() DataBlock

type Hash

type Hash [HashBytesLen]byte

func Int256ToHash

func Int256ToHash(i *evmInt256.Int) Hash

func (Hash) Int256

func (h Hash) Int256() *evmInt256.Int

func (Hash) MarshalText

func (h Hash) MarshalText() ([]byte, error)

func (*Hash) SetBytes

func (h *Hash) SetBytes(b []byte) *Hash

func (Hash) String

func (h Hash) String() string

func (*Hash) UnmarshalText

func (h *Hash) UnmarshalText(val []byte) error

type Log

type Log struct {
	Address Address
	Topics  []Topic
	Data    Bytes
}

func (Log) Clone

func (l Log) Clone() *Log

type Slot

type Slot = Hash

func Int256ToSlot

func Int256ToSlot(i *evmInt256.Int) Slot

type Topic

type Topic = Hash

func Int256ToTopic

func Int256ToTopic(i *evmInt256.Int) Topic

Jump to

Keyboard shortcuts

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