Documentation ¶
Index ¶
- type MetadataV0
- func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64
- func (m MetadataV0) Copy() metadata.Metadata
- func (m MetadataV0) InnerObject() interface{}
- func (m MetadataV0) IsNil() bool
- func (m MetadataV0) MarshalSSZ() ([]byte, error)
- func (m MetadataV0) MarshalSSZTo(dst []byte) ([]byte, error)
- func (m MetadataV0) MetadataObjV0() *pb.MetaDataV0
- func (_ MetadataV0) MetadataObjV1() *pb.MetaDataV1
- func (m MetadataV0) SequenceNumber() uint64
- func (m MetadataV0) SizeSSZ() int
- func (m MetadataV0) UnmarshalSSZ(buf []byte) error
- func (_ MetadataV0) Version() int
- type MetadataV1
- func (m MetadataV1) AttnetsBitfield() bitfield.Bitvector64
- func (m MetadataV1) Copy() metadata.Metadata
- func (m MetadataV1) InnerObject() interface{}
- func (m MetadataV1) IsNil() bool
- func (m MetadataV1) MarshalSSZ() ([]byte, error)
- func (m MetadataV1) MarshalSSZTo(dst []byte) ([]byte, error)
- func (_ MetadataV1) MetadataObjV0() *pb.MetaDataV0
- func (m MetadataV1) MetadataObjV1() *pb.MetaDataV1
- func (m MetadataV1) SequenceNumber() uint64
- func (m MetadataV1) SizeSSZ() int
- func (m MetadataV1) UnmarshalSSZ(buf []byte) error
- func (_ MetadataV1) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataV0 ¶
type MetadataV0 struct {
// contains filtered or unexported fields
}
MetadataV0 is a convenience wrapper around our metadata protobuf object.
func WrappedMetadataV0 ¶
func WrappedMetadataV0(md *pb.MetaDataV0) MetadataV0
WrappedMetadataV0 wrappers around the provided protobuf object.
func (MetadataV0) AttnetsBitfield ¶
func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64
AttnetsBitfield returns the bitfield stored in the metadata.
func (MetadataV0) Copy ¶
func (m MetadataV0) Copy() metadata.Metadata
Copy performs a full copy of the underlying metadata object.
func (MetadataV0) InnerObject ¶
func (m MetadataV0) InnerObject() interface{}
InnerObject returns the underlying metadata protobuf structure.
func (MetadataV0) IsNil ¶
func (m MetadataV0) IsNil() bool
IsNil checks for the nilness of the underlying object.
func (MetadataV0) MarshalSSZ ¶
func (m MetadataV0) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the underlying metadata object into its serialized form.
func (MetadataV0) MarshalSSZTo ¶
func (m MetadataV0) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals the underlying metadata object into its serialized form into the provided byte buffer.
func (MetadataV0) MetadataObjV0 ¶
func (m MetadataV0) MetadataObjV0() *pb.MetaDataV0
MetadataObjV0 returns the inner metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV0) MetadataObjV1 ¶
func (_ MetadataV0) MetadataObjV1() *pb.MetaDataV1
MetadataObjV1 returns the inner metatdata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV0) SequenceNumber ¶
func (m MetadataV0) SequenceNumber() uint64
SequenceNumber returns the sequence number from the metadata.
func (MetadataV0) SizeSSZ ¶
func (m MetadataV0) SizeSSZ() int
SizeSSZ returns the serialized size of the metadata object.
func (MetadataV0) UnmarshalSSZ ¶
func (m MetadataV0) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ unmarshals the provided byte buffer into the underlying metadata object.
func (MetadataV0) Version ¶
func (_ MetadataV0) Version() int
Version returns the fork version of the underlying object.
type MetadataV1 ¶
type MetadataV1 struct {
// contains filtered or unexported fields
}
MetadataV1 is a convenience wrapper around our metadata v2 protobuf object.
func WrappedMetadataV1 ¶
func WrappedMetadataV1(md *pb.MetaDataV1) MetadataV1
WrappedMetadataV1 wrappers around the provided protobuf object.
func (MetadataV1) AttnetsBitfield ¶
func (m MetadataV1) AttnetsBitfield() bitfield.Bitvector64
AttnetsBitfield returns the bitfield stored in the metadata.
func (MetadataV1) Copy ¶
func (m MetadataV1) Copy() metadata.Metadata
Copy performs a full copy of the underlying metadata object.
func (MetadataV1) InnerObject ¶
func (m MetadataV1) InnerObject() interface{}
InnerObject returns the underlying metadata protobuf structure.
func (MetadataV1) IsNil ¶
func (m MetadataV1) IsNil() bool
IsNil checks for the nilness of the underlying object.
func (MetadataV1) MarshalSSZ ¶
func (m MetadataV1) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the underlying metadata object into its serialized form.
func (MetadataV1) MarshalSSZTo ¶
func (m MetadataV1) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals the underlying metadata object into its serialized form into the provided byte buffer.
func (MetadataV1) MetadataObjV0 ¶
func (_ MetadataV1) MetadataObjV0() *pb.MetaDataV0
MetadataObjV0 returns the inner metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV1) MetadataObjV1 ¶
func (m MetadataV1) MetadataObjV1() *pb.MetaDataV1
MetadataObjV1 returns the inner metatdata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV1) SequenceNumber ¶
func (m MetadataV1) SequenceNumber() uint64
SequenceNumber returns the sequence number from the metadata.
func (MetadataV1) SizeSSZ ¶
func (m MetadataV1) SizeSSZ() int
SizeSSZ returns the serialized size of the metadata object.
func (MetadataV1) UnmarshalSSZ ¶
func (m MetadataV1) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ unmarshals the provided byte buffer into the underlying metadata object.
func (MetadataV1) Version ¶
func (_ MetadataV1) Version() int
Version returns the fork version of the underlying object.