wrapper

package
v6.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

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.

Jump to

Keyboard shortcuts

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