types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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

type Delay struct {
	// IPAddr  *net.IP
	Source  string
	Method  string
	Slot    uint32
	DelayMS uint32
}

Delay holds information about a delay.

func (*Delay) MarshalJSON

func (d *Delay) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*Delay) UnmarshalJSON

func (d *Delay) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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