common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 18ded26a06cd655b40895d75a854aefea18052574c4695e7add54b997a159818

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	ForkDigest     []byte `json:"fork_digest" ssz-size:"4"`
	FinalizedRoot  []byte `json:"finalized_root" ssz-size:"32"`
	FinalizedEpoch uint64 `json:"finalized_epoch"`
	HeadRoot       []byte `json:"head_root" ssz-size:"32"`
	HeadSlot       uint64 `json:"head_slot"`

	sync.Mutex `json:"-"`
}

func NewStatus

func NewStatus() *Status

func (*Status) GetForkDigest

func (s *Status) GetForkDigest() common.ForkDigest

func (*Status) HashTreeRoot

func (s *Status) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Status object

func (*Status) HashTreeRootWith

func (s *Status) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Status object with a hasher

func (*Status) MarshalSSZ

func (s *Status) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Status object

func (*Status) MarshalSSZTo

func (s *Status) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Status object to a target array

func (*Status) SetFinalizedCheckpoint

func (s *Status) SetFinalizedCheckpoint(c common.Checkpoint)

func (*Status) SetForkDigest

func (s *Status) SetForkDigest(d common.ForkDigest)

func (*Status) SetHead

func (s *Status) SetHead(h tree.Root, slot common.Slot)

func (*Status) SizeSSZ

func (s *Status) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Status object

func (*Status) UnmarshalSSZ

func (s *Status) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Status object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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