Documentation
¶
Index ¶
- type EthAddress
- func (a EthAddress) Address() common.Address
- func (a EthAddress) Bytes() []byte
- func (a EthAddress) Equal(other EthAddress) bool
- func (a EthAddress) Marshal() ([]byte, error)
- func (a EthAddress) MarshalJSON() ([]byte, error)
- func (a EthAddress) MarshalTo(data []byte) (int, error)
- func (a EthAddress) Size() int
- func (a EthAddress) String() string
- func (a *EthAddress) Unmarshal(data []byte) error
- func (a *EthAddress) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthAddress ¶
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