api

package
v0.16.3-pacth Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

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
	Deneb     *apiv1deneb.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

FeeRecipient returns the fee recipient of the blinded beacon block.

func (*VersionedBlindedBeaconBlock) GetTree

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

GetTree ssz hashes the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) HashTreeRoot

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

HashTreeRoot ssz hashes the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) HashTreeRootWith

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

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

MarshalSSZ ssz marshals the VersionedBlindedBeaconBlock object

func (*VersionedBlindedBeaconBlock) MarshalSSZTo

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

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

func (v *VersionedBlindedBeaconBlock) String() string

String returns a string version of the structure.

func (*VersionedBlindedBeaconBlock) Timestamp

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

Timestamp returns the timestamp of the blinded beacon block.

func (*VersionedBlindedBeaconBlock) TransactionsRoot

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

TransactionsRoot returns the transactions root of the beacon block.

func (*VersionedBlindedBeaconBlock) UnmarshalSSZ

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
	Deneb     *apiv1deneb.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

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

VersionedSignedValidatorRegistration contains a versioned SignedValidatorRegistrationV1.

func (*VersionedSignedValidatorRegistration) FeeRecipient

FeeRecipient returns the fee recipient of the signed validator registration.

func (*VersionedSignedValidatorRegistration) GasLimit

GasLimit returns the gas limit of the signed validator registration.

func (*VersionedSignedValidatorRegistration) PubKey

PubKey returns the public key of the signed validator registration.

func (*VersionedSignedValidatorRegistration) Root

Root returns the root of the validator registration.

func (*VersionedSignedValidatorRegistration) Timestamp

Timestamp returns the timestamp of the signed validator registration.

type VersionedValidatorRegistration

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

VersionedValidatorRegistration contains a versioned ValidatorRegistrationV1.

func (*VersionedValidatorRegistration) FeeRecipient

FeeRecipient returns the fee recipient of the validator registration.

func (*VersionedValidatorRegistration) GasLimit

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

GasLimit returns the gas limit of the validator registration.

func (*VersionedValidatorRegistration) IsEmpty

func (v *VersionedValidatorRegistration) IsEmpty() bool

IsEmpty returns true if there is no block.

func (*VersionedValidatorRegistration) PubKey

PubKey returns the public key of the validator registration.

func (*VersionedValidatorRegistration) Root

Root returns the root of the validator registration.

func (*VersionedValidatorRegistration) Timestamp

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.
deneb
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