electra

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsolidationRequests

type ConsolidationRequests struct {
	ConsolidationRequests []*electra.ConsolidationRequest `ssz-max:"1"`
}

ConsolidationRequests provides information about consolidation requests.

func (*ConsolidationRequests) HashTreeRoot

func (t *ConsolidationRequests) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *ConsolidationRequests.

func (*ConsolidationRequests) HashTreeRootWith

func (t *ConsolidationRequests) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *ConsolidationRequests using the given hash walker.

func (*ConsolidationRequests) MarshalSSZ

func (t *ConsolidationRequests) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *ConsolidationRequests to SSZ-encoded bytes.

func (*ConsolidationRequests) MarshalSSZTo

func (t *ConsolidationRequests) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *ConsolidationRequests to SSZ-encoded bytes, appending to the provided buffer.

func (*ConsolidationRequests) SizeSSZ

func (t *ConsolidationRequests) SizeSSZ() int

SizeSSZ returns the SSZ encoded size of the *ConsolidationRequests.

func (*ConsolidationRequests) UnmarshalSSZ

func (t *ConsolidationRequests) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *ConsolidationRequests from SSZ-encoded bytes.

type DepositRequests

type DepositRequests struct {
	DepositRequests []*electra.DepositRequest `ssz-max:"8192"`
}

DepositRequests provides information about deposit requests.

func (*DepositRequests) HashTreeRoot

func (t *DepositRequests) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *DepositRequests.

func (*DepositRequests) HashTreeRootWith

func (t *DepositRequests) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *DepositRequests using the given hash walker.

func (*DepositRequests) MarshalSSZ

func (t *DepositRequests) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *DepositRequests to SSZ-encoded bytes.

func (*DepositRequests) MarshalSSZTo

func (t *DepositRequests) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *DepositRequests to SSZ-encoded bytes, appending to the provided buffer.

func (*DepositRequests) SizeSSZ

func (t *DepositRequests) SizeSSZ() int

SizeSSZ returns the SSZ encoded size of the *DepositRequests.

func (*DepositRequests) UnmarshalSSZ

func (t *DepositRequests) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *DepositRequests from SSZ-encoded bytes.

type WithdrawalRequests

type WithdrawalRequests struct {
	WithdrawalRequests []*electra.WithdrawalRequest `ssz-max:"16"`
}

WithdrawalRequests provides information about execution layer withdrawal requests.

func (*WithdrawalRequests) HashTreeRoot

func (t *WithdrawalRequests) HashTreeRoot() (root [32]byte, err error)

HashTreeRoot computes the SSZ hash tree root of the *WithdrawalRequests.

func (*WithdrawalRequests) HashTreeRootWith

func (t *WithdrawalRequests) HashTreeRootWith(hh sszutils.HashWalker) error

HashTreeRootWith computes the SSZ hash tree root of the *WithdrawalRequests using the given hash walker.

func (*WithdrawalRequests) MarshalSSZ

func (t *WithdrawalRequests) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals the *WithdrawalRequests to SSZ-encoded bytes.

func (*WithdrawalRequests) MarshalSSZTo

func (t *WithdrawalRequests) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo marshals the *WithdrawalRequests to SSZ-encoded bytes, appending to the provided buffer.

func (*WithdrawalRequests) SizeSSZ

func (t *WithdrawalRequests) SizeSSZ() int

SizeSSZ returns the SSZ encoded size of the *WithdrawalRequests.

func (*WithdrawalRequests) UnmarshalSSZ

func (t *WithdrawalRequests) UnmarshalSSZ(buf []byte) (err error)

UnmarshalSSZ unmarshals the *WithdrawalRequests from SSZ-encoded bytes.

Jump to

Keyboard shortcuts

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