Documentation
¶
Index ¶
- type MetadataV0
- func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64
- func (m MetadataV0) Copy() metadata.Metadata
- func (m MetadataV0) CustodyGroupCount() uint64
- 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 (MetadataV0) MetadataObjV2() *pb.MetaDataV2
- func (m MetadataV0) SequenceNumber() uint64
- func (m MetadataV0) SizeSSZ() int
- func (m MetadataV0) SyncnetsBitfield() bitfield.Bitvector4
- 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) CustodyGroupCount() uint64
- 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) MetadataObjV2() *pb.MetaDataV2
- func (m MetadataV1) SequenceNumber() uint64
- func (m MetadataV1) SizeSSZ() int
- func (m MetadataV1) SyncnetsBitfield() bitfield.Bitvector4
- func (m MetadataV1) UnmarshalSSZ(buf []byte) error
- func (MetadataV1) Version() int
- type MetadataV2
- func (m MetadataV2) AttnetsBitfield() bitfield.Bitvector64
- func (m MetadataV2) Copy() metadata.Metadata
- func (m MetadataV2) CustodyGroupCount() uint64
- func (m MetadataV2) InnerObject() interface{}
- func (m MetadataV2) IsNil() bool
- func (m MetadataV2) MarshalSSZ() ([]byte, error)
- func (m MetadataV2) MarshalSSZTo(dst []byte) ([]byte, error)
- func (MetadataV2) MetadataObjV0() *pb.MetaDataV0
- func (m MetadataV2) MetadataObjV1() *pb.MetaDataV1
- func (m MetadataV2) MetadataObjV2() *pb.MetaDataV2
- func (m MetadataV2) SequenceNumber() uint64
- func (m MetadataV2) SizeSSZ() int
- func (m MetadataV2) SyncnetsBitfield() bitfield.Bitvector4
- func (m MetadataV2) UnmarshalSSZ(buf []byte) error
- func (MetadataV2) 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) CustodyGroupCount ¶ added in v6.0.4
func (m MetadataV0) CustodyGroupCount() uint64
CustodyGroupCount returns custody subnet count from the metadata.
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 metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV0) MetadataObjV2 ¶ added in v6.0.4
func (MetadataV0) MetadataObjV2() *pb.MetaDataV2
MetadataObjV2 returns the inner metadata 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) SyncnetsBitfield ¶
func (m MetadataV0) SyncnetsBitfield() bitfield.Bitvector4
SyncnetsBitfield returns the bitfield stored in the metadata.
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 v1 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) CustodyGroupCount ¶ added in v6.0.4
func (m MetadataV1) CustodyGroupCount() uint64
CustodyGroupCount returns custody subnet count from the metadata.
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 metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV1) MetadataObjV2 ¶ added in v6.0.4
func (m MetadataV1) MetadataObjV2() *pb.MetaDataV2
MetadataObjV2 returns the inner metadata 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) SyncnetsBitfield ¶
func (m MetadataV1) SyncnetsBitfield() bitfield.Bitvector4
SyncnetsBitfield returns the bitfield stored in the metadata.
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.
type MetadataV2 ¶ added in v6.0.4
type MetadataV2 struct {
// contains filtered or unexported fields
}
MetadataV2 is a convenience wrapper around our metadata v3 protobuf object.
func WrappedMetadataV2 ¶ added in v6.0.4
func WrappedMetadataV2(md *pb.MetaDataV2) MetadataV2
WrappedMetadataV2 wrappers around the provided protobuf object.
func (MetadataV2) AttnetsBitfield ¶ added in v6.0.4
func (m MetadataV2) AttnetsBitfield() bitfield.Bitvector64
AttnetsBitfield returns the bitfield stored in the metadata.
func (MetadataV2) Copy ¶ added in v6.0.4
func (m MetadataV2) Copy() metadata.Metadata
Copy performs a full copy of the underlying metadata object.
func (MetadataV2) CustodyGroupCount ¶ added in v6.0.4
func (m MetadataV2) CustodyGroupCount() uint64
CustodyGroupCount returns custody subnet count from the metadata.
func (MetadataV2) InnerObject ¶ added in v6.0.4
func (m MetadataV2) InnerObject() interface{}
InnerObject returns the underlying metadata protobuf structure.
func (MetadataV2) IsNil ¶ added in v6.0.4
func (m MetadataV2) IsNil() bool
IsNil checks for the nilness of the underlying object.
func (MetadataV2) MarshalSSZ ¶ added in v6.0.4
func (m MetadataV2) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the underlying metadata object into its serialized form.
func (MetadataV2) MarshalSSZTo ¶ added in v6.0.4
func (m MetadataV2) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo marshals the underlying metadata object into its serialized form into the provided byte buffer.
func (MetadataV2) MetadataObjV0 ¶ added in v6.0.4
func (MetadataV2) MetadataObjV0() *pb.MetaDataV0
MetadataObjV0 returns the inner metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV2) MetadataObjV1 ¶ added in v6.0.4
func (m MetadataV2) MetadataObjV1() *pb.MetaDataV1
MetadataObjV1 returns the inner metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV2) MetadataObjV2 ¶ added in v6.0.4
func (m MetadataV2) MetadataObjV2() *pb.MetaDataV2
MetadataObjV2 returns the inner metadata object in its type specified form. If it doesn't exist then we return nothing.
func (MetadataV2) SequenceNumber ¶ added in v6.0.4
func (m MetadataV2) SequenceNumber() uint64
SequenceNumber returns the sequence number from the metadata.
func (MetadataV2) SizeSSZ ¶ added in v6.0.4
func (m MetadataV2) SizeSSZ() int
SizeSSZ returns the serialized size of the metadata object.
func (MetadataV2) SyncnetsBitfield ¶ added in v6.0.4
func (m MetadataV2) SyncnetsBitfield() bitfield.Bitvector4
SyncnetsBitfield returns the bitfield stored in the metadata.
func (MetadataV2) UnmarshalSSZ ¶ added in v6.0.4
func (m MetadataV2) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ unmarshals the provided byte buffer into the underlying metadata object.
func (MetadataV2) Version ¶ added in v6.0.4
func (MetadataV2) Version() int
Version returns the fork version of the underlying object.