api

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 153

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: f650ac8a93c947c1d4a3c19084e5c5d0ffd7b10e5533ee1f8a10a30837f366ea Version: 0.1.3-dev

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionedBlindedBeaconBlock

type VersionedBlindedBeaconBlock struct {
	Version   spec.DataVersion
	Bellatrix *apiv1bellatrix.BlindedBeaconBlock
	Capella   *apiv1capella.BlindedBeaconBlock
}

VersionedBlindedBeaconBlock contains a versioned blinded beacon block.

func (*VersionedBlindedBeaconBlock) Attestations

func (v *VersionedBlindedBeaconBlock) Attestations() ([]*phase0.Attestation, error)

Attestations returns the attestations of the beacon block.

func (*VersionedBlindedBeaconBlock) BodyRoot

func (v *VersionedBlindedBeaconBlock) BodyRoot() (phase0.Root, error)

BodyRoot returns the body root of the beacon block.

func (*VersionedBlindedBeaconBlock) FeeRecipient added in v0.13.3

FeeRecipient returns the fee recipient of the blinded beacon block.

func (*VersionedBlindedBeaconBlock) GetTree added in v0.13.0

func (v *VersionedBlindedBeaconBlock) GetTree() (*ssz.Node, error)

GetTree ssz hashes the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) HashTreeRoot added in v0.13.0

func (v *VersionedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) HashTreeRootWith added in v0.13.0

func (v *VersionedBlindedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the VersionedBlindedBeaconBlock object with a hasher

func (*VersionedBlindedBeaconBlock) IsEmpty

func (v *VersionedBlindedBeaconBlock) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedBlindedBeaconBlock) MarshalSSZ added in v0.13.0

func (v *VersionedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) MarshalSSZTo added in v0.13.0

func (v *VersionedBlindedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the VersionedBlindedBeaconBlock object to a target array

func (*VersionedBlindedBeaconBlock) ParentRoot

func (v *VersionedBlindedBeaconBlock) ParentRoot() (phase0.Root, error)

ParentRoot returns the parent root of the beacon block.

func (*VersionedBlindedBeaconBlock) Root

Root returns the root of the beacon block.

func (*VersionedBlindedBeaconBlock) SizeSSZ added in v0.13.0

func (v *VersionedBlindedBeaconBlock) SizeSSZ() (size int)

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

func (*VersionedBlindedBeaconBlock) Slot

Slot returns the slot of the beacon block.

func (*VersionedBlindedBeaconBlock) StateRoot

func (v *VersionedBlindedBeaconBlock) StateRoot() (phase0.Root, error)

StateRoot returns the state root of the beacon block.

func (*VersionedBlindedBeaconBlock) String added in v0.12.0

func (v *VersionedBlindedBeaconBlock) String() string

String returns a string version of the structure.

func (*VersionedBlindedBeaconBlock) Timestamp added in v0.14.4

func (v *VersionedBlindedBeaconBlock) Timestamp() (uint64, error)

Timestamp returns the timestamp of the blinded beacon block.

func (*VersionedBlindedBeaconBlock) TransactionsRoot added in v0.13.1

func (v *VersionedBlindedBeaconBlock) TransactionsRoot() (phase0.Root, error)

TransactionsRoot returns the transactions root of the beacon block.

func (*VersionedBlindedBeaconBlock) UnmarshalSSZ added in v0.13.0

func (v *VersionedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the VersionedBlindedBeaconBlock object

type VersionedSignedBlindedBeaconBlock

type VersionedSignedBlindedBeaconBlock struct {
	Version   spec.DataVersion
	Bellatrix *apiv1bellatrix.SignedBlindedBeaconBlock
	Capella   *apiv1capella.SignedBlindedBeaconBlock
}

VersionedSignedBlindedBeaconBlock contains a versioned signed blinded beacon block.

func (*VersionedSignedBlindedBeaconBlock) Attestations

Attestations returns the attestations of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) AttesterSlashings

func (v *VersionedSignedBlindedBeaconBlock) AttesterSlashings() ([]*phase0.AttesterSlashing, error)

AttesterSlashings returns the attester slashings of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) BodyRoot

BodyRoot returns the body root of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) ParentRoot

ParentRoot returns the parent root of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) ProposerSlashings

func (v *VersionedSignedBlindedBeaconBlock) ProposerSlashings() ([]*phase0.ProposerSlashing, error)

ProposerSlashings returns the proposer slashings of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) Root

Root returns the root of the beacon block.

func (*VersionedSignedBlindedBeaconBlock) Slot

Slot returns the slot of the signed beacon block.

func (*VersionedSignedBlindedBeaconBlock) StateRoot

StateRoot returns the state root of the beacon block.

type VersionedSignedValidatorRegistration added in v0.12.0

type VersionedSignedValidatorRegistration struct {
	Version spec.BuilderVersion
	V1      *apiv1.SignedValidatorRegistration
}

VersionedSignedValidatorRegistration contains a versioned SignedValidatorRegistrationV1.

func (*VersionedSignedValidatorRegistration) FeeRecipient added in v0.12.0

FeeRecipient returns the fee recipient of the signed validator registration.

func (*VersionedSignedValidatorRegistration) GasLimit added in v0.12.0

GasLimit returns the gas limit of the signed validator registration.

func (*VersionedSignedValidatorRegistration) PubKey added in v0.12.0

PubKey returns the public key of the signed validator registration.

func (*VersionedSignedValidatorRegistration) Root added in v0.13.1

Root returns the root of the validator registration

func (*VersionedSignedValidatorRegistration) Timestamp added in v0.12.0

Timestamp returns the timestamp of the signed validator registration.

type VersionedValidatorRegistration added in v0.12.0

type VersionedValidatorRegistration struct {
	Version spec.BuilderVersion
	V1      *apiv1.ValidatorRegistration
}

VersionedValidatorRegistration contains a versioned ValidatorRegistrationV1.

func (*VersionedValidatorRegistration) FeeRecipient added in v0.12.0

FeeRecipient returns the fee recipient of the validator registration.

func (*VersionedValidatorRegistration) GasLimit added in v0.12.0

func (v *VersionedValidatorRegistration) GasLimit() (uint64, error)

GasLimit returns the gas limit of the validator registration.

func (*VersionedValidatorRegistration) IsEmpty added in v0.12.0

func (v *VersionedValidatorRegistration) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedValidatorRegistration) PubKey added in v0.12.0

PubKey returns the public key of the validator registration.

func (*VersionedValidatorRegistration) Root added in v0.13.1

Root returns the root of the validator registration.

func (*VersionedValidatorRegistration) Timestamp added in v0.12.0

func (v *VersionedValidatorRegistration) Timestamp() (time.Time, error)

Timestamp returns the timestamp of the validator registration.

Directories

Path Synopsis
v1
Code generated by fastssz.
Code generated by fastssz.
bellatrix
Code generated by fastssz.
Code generated by fastssz.
capella
Code generated by fastssz.
Code generated by fastssz.

Jump to

Keyboard shortcuts

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