prysm-pulse/proto/prysm/v1alpha1/metadata/metadata_interfaces.go
terence 5a66807989
Update to V5 (#13622)
* First take at updating everything to v5

* Patch gRPC gateway to use prysm v5

Fix patch

* Update go ssz

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00

22 lines
491 B
Go

package metadata
import (
ssz "github.com/prysmaticlabs/fastssz"
"github.com/prysmaticlabs/go-bitfield"
pb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
)
// Metadata returns the interface of a p2p metadata type.
type Metadata interface {
SequenceNumber() uint64
AttnetsBitfield() bitfield.Bitvector64
InnerObject() interface{}
IsNil() bool
Copy() Metadata
ssz.Marshaler
ssz.Unmarshaler
MetadataObjV0() *pb.MetaDataV0
MetadataObjV1() *pb.MetaDataV1
Version() int
}