types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthAddress

type EthAddress common.Address

EthAddress is a wrapper for common.Address that implements proto custom type interfaces

func BytesToEthAddress

func BytesToEthAddress(b []byte) EthAddress

BytesToEthAddress converts bytes to an EthAddress

func (EthAddress) Address

func (a EthAddress) Address() common.Address

Address returns the common.Address representation

func (EthAddress) Bytes

func (a EthAddress) Bytes() []byte

Bytes returns the byte representation of the EthAddress

func (EthAddress) Equal

func (a EthAddress) Equal(other EthAddress) bool

Equal compares two EthAddresses for equality

func (EthAddress) Marshal

func (a EthAddress) Marshal() ([]byte, error)

Marshal converts the EthAddress to bytes for protobuf serialization

func (EthAddress) MarshalJSON

func (a EthAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (EthAddress) MarshalTo

func (a EthAddress) MarshalTo(data []byte) (int, error)

MarshalTo implements the protobuf marshaler interface

func (EthAddress) Size

func (a EthAddress) Size() int

Size returns the size of the EthAddress in bytes

func (EthAddress) String

func (a EthAddress) String() string

String returns the string representation of the EthAddress

func (*EthAddress) Unmarshal

func (a *EthAddress) Unmarshal(data []byte) error

Unmarshal sets the EthAddress from bytes from protobuf deserialization

func (*EthAddress) UnmarshalJSON

func (a *EthAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

Jump to

Keyboard shortcuts

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