Documentation ¶
Overview ¶
Package types provides types used in the REST API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateAttestation ¶
type AggregateAttestation struct { Source string Method string Slot uint32 CommitteeIndex uint16 AggregationBits []byte BeaconBlockRoot []byte SourceRoot []byte TargetRoot []byte DelayMS uint32 }
AggregateAttestation holds information about a aggregateAttestation.
func (*AggregateAttestation) MarshalJSON ¶
func (d *AggregateAttestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AggregateAttestation) UnmarshalJSON ¶
func (d *AggregateAttestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Attestation ¶
type Attestation struct { CommitteeIndex uint16 BeaconBlockRoot []byte SourceRoot []byte TargetRoot []byte Buckets map[string]*[120]bitfield.Bitlist }
Attestation holds information about an attestation with a given vote.
func (*Attestation) MarshalJSON ¶
func (a *Attestation) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*Attestation) UnmarshalJSON ¶
func (a *Attestation) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type AttestationSummary ¶
type AttestationSummary struct { Method string Slot uint32 Attestations []*Attestation }
AttestationSummary holds summary information about attestations with a particular vote.
func (*AttestationSummary) MarshalJSON ¶
func (a *AttestationSummary) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*AttestationSummary) UnmarshalJSON ¶
func (a *AttestationSummary) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Delay ¶
Delay holds information about a delay.
func (*Delay) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Delay) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.