Documentation
¶
Overview ¶
Package types contains the fork-agnostic builder-spec wire containers of the legacy (pre-Gloas) Builder API dialect. The builder-spec types are not part of go-eth2-client (and go-builder-client is intentionally not imported), so they are defined here on top of the fork-agnostic spec/all component types, following the spec/all view pattern.
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 9f904955a5e5d816ee1b4502c2aaaf43b2f6f381e3624e3e2989ec0ca423355d Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: d3673c91ba4e5ff4c6ee7993cddefe27c8231596c9fb40c59ced68c903d462e0 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Index ¶
- type BuilderBid
- func (b *BuilderBid) HashTreeRoot() ([32]byte, error)
- func (b *BuilderBid) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BuilderBid) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
- func (t *BuilderBid) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
- func (b *BuilderBid) MarshalJSON() ([]byte, error)
- func (b *BuilderBid) MarshalSSZ() ([]byte, error)
- func (b *BuilderBid) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
- func (t *BuilderBid) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
- func (b *BuilderBid) MarshalSSZTo(dst []byte) ([]byte, error)
- func (b *BuilderBid) SizeSSZ() int
- func (b *BuilderBid) SizeSSZDyn(ds sszutils.DynamicSpecs) int
- func (t *BuilderBid) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int
- func (b *BuilderBid) UnmarshalJSON(data []byte) error
- func (b *BuilderBid) UnmarshalSSZ(buf []byte) error
- func (b *BuilderBid) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error
- func (t *BuilderBid) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error
- type BuilderBidBellatrix
- type BuilderBidCapella
- type BuilderBidDeneb
- type BuilderBidElectra
- type SignedBuilderBid
- func (s *SignedBuilderBid) HashTreeRoot() ([32]byte, error)
- func (s *SignedBuilderBid) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedBuilderBid) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
- func (t *SignedBuilderBid) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
- func (s *SignedBuilderBid) MarshalJSON() ([]byte, error)
- func (s *SignedBuilderBid) MarshalSSZ() ([]byte, error)
- func (s *SignedBuilderBid) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
- func (t *SignedBuilderBid) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
- func (s *SignedBuilderBid) MarshalSSZTo(dst []byte) ([]byte, error)
- func (s *SignedBuilderBid) SizeSSZ() int
- func (s *SignedBuilderBid) SizeSSZDyn(ds sszutils.DynamicSpecs) int
- func (t *SignedBuilderBid) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int
- func (s *SignedBuilderBid) UnmarshalJSON(data []byte) error
- func (s *SignedBuilderBid) UnmarshalSSZ(buf []byte) error
- func (s *SignedBuilderBid) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error
- func (t *SignedBuilderBid) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error
- type SignedBuilderBidBellatrix
- type SignedBuilderBidCapella
- type SignedBuilderBidDeneb
- type SignedBuilderBidElectra
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderBid ¶
type BuilderBid struct {
Version version.DataVersion
Header *eth2all.ExecutionPayloadHeader
BlobKZGCommitments []deneb.KZGCommitment // Deneb onwards
ExecutionRequests *eth2all.ExecutionRequests // Electra onwards
Value *uint256.Int // wei as uint256 in spec
Pubkey phase0.BLSPubKey
}
BuilderBid is the fork-agnostic builder-spec BuilderBid message served in getHeader responses, covering Bellatrix through Fulu. The fields present on the wire depend on Version:
- Bellatrix/Capella: header, value, pubkey
- Deneb: adds blob_kzg_commitments
- Electra/Fulu: adds execution_requests
func (*BuilderBid) HashTreeRoot ¶
func (b *BuilderBid) HashTreeRoot() ([32]byte, error)
HashTreeRoot implements the fastssz.HashRoot interface (used for signing).
func (*BuilderBid) HashTreeRootWith ¶
func (b *BuilderBid) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith implements the fastssz.HashRoot interface.
func (*BuilderBid) HashTreeRootWithDyn ¶
func (b *BuilderBid) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.
func (*BuilderBid) HashTreeRootWithDynView ¶
func (t *BuilderBid) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
func (*BuilderBid) MarshalJSON ¶
func (b *BuilderBid) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler, emitting the field set of the active Version. Value is a decimal string per builder-specs.
func (*BuilderBid) MarshalSSZ ¶
func (b *BuilderBid) MarshalSSZ() ([]byte, error)
MarshalSSZ implements the fastssz.Marshaler interface.
func (*BuilderBid) MarshalSSZDyn ¶
func (b *BuilderBid) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
MarshalSSZDyn marshals the bid using the view that matches Version.
func (*BuilderBid) MarshalSSZDynView ¶
func (t *BuilderBid) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
func (*BuilderBid) MarshalSSZTo ¶
func (b *BuilderBid) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo implements the fastssz.Marshaler interface.
func (*BuilderBid) SizeSSZ ¶
func (b *BuilderBid) SizeSSZ() int
SizeSSZ implements the fastssz.Marshaler interface.
func (*BuilderBid) SizeSSZDyn ¶
func (b *BuilderBid) SizeSSZDyn(ds sszutils.DynamicSpecs) int
SizeSSZDyn returns the SSZ size of the bid for the active Version.
func (*BuilderBid) SizeSSZDynView ¶
func (t *BuilderBid) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int
func (*BuilderBid) UnmarshalJSON ¶
func (b *BuilderBid) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler. The caller must set Version on b before calling so the fork-dependent fields decode against the matching schema.
func (*BuilderBid) UnmarshalSSZ ¶
func (b *BuilderBid) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ implements the fastssz.Unmarshaler interface.
func (*BuilderBid) UnmarshalSSZDyn ¶
func (b *BuilderBid) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error
UnmarshalSSZDyn decodes the bid from the view that matches Version.
func (*BuilderBid) UnmarshalSSZDynView ¶
func (t *BuilderBid) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error
type BuilderBidBellatrix ¶
type BuilderBidBellatrix struct {
Header *bellatrix.ExecutionPayloadHeader
Value *uint256.Int `ssz-type:"uint256"`
Pubkey phase0.BLSPubKey `ssz-size:"48"`
}
BuilderBidBellatrix is the Bellatrix BuilderBid wire container.
type BuilderBidCapella ¶
type BuilderBidCapella struct {
Header *capella.ExecutionPayloadHeader
Value *uint256.Int `ssz-type:"uint256"`
Pubkey phase0.BLSPubKey `ssz-size:"48"`
}
BuilderBidCapella is the Capella BuilderBid wire container.
type BuilderBidDeneb ¶
type BuilderBidDeneb struct {
Header *deneb.ExecutionPayloadHeader
BlobKZGCommitments []deneb.KZGCommitment `dynssz-max:"MAX_BLOB_COMMITMENTS_PER_BLOCK" ssz-max:"4096" ssz-size:"?,48"`
Value *uint256.Int `ssz-type:"uint256"`
Pubkey phase0.BLSPubKey `ssz-size:"48"`
}
BuilderBidDeneb is the Deneb BuilderBid wire container.
type BuilderBidElectra ¶
type BuilderBidElectra struct {
Header *deneb.ExecutionPayloadHeader
BlobKZGCommitments []deneb.KZGCommitment `dynssz-max:"MAX_BLOB_COMMITMENTS_PER_BLOCK" ssz-max:"4096" ssz-size:"?,48"`
ExecutionRequests *electra.ExecutionRequests
Value *uint256.Int `ssz-type:"uint256"`
Pubkey phase0.BLSPubKey `ssz-size:"48"`
}
BuilderBidElectra is the Electra BuilderBid wire container (also the Fulu schema).
type SignedBuilderBid ¶
type SignedBuilderBid struct {
Version version.DataVersion
Message *BuilderBid
Signature phase0.BLSSignature
}
SignedBuilderBid is the fork-agnostic signed builder bid carried in the getHeader response data (Bellatrix through Fulu). The message's wire shape follows Version. Callers must set Version before unmarshaling.
func (*SignedBuilderBid) HashTreeRoot ¶
func (s *SignedBuilderBid) HashTreeRoot() ([32]byte, error)
HashTreeRoot implements the fastssz.HashRoot interface.
func (*SignedBuilderBid) HashTreeRootWith ¶
func (s *SignedBuilderBid) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith implements the fastssz.HashRoot interface.
func (*SignedBuilderBid) HashTreeRootWithDyn ¶
func (s *SignedBuilderBid) HashTreeRootWithDyn(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
HashTreeRootWithDyn computes the SSZ hash tree root using the active Version's view.
func (*SignedBuilderBid) HashTreeRootWithDynView ¶
func (t *SignedBuilderBid) HashTreeRootWithDynView(view any) func(ds sszutils.DynamicSpecs, hh sszutils.HashWalker) error
func (*SignedBuilderBid) MarshalJSON ¶
func (s *SignedBuilderBid) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler, emitting the message with the field set of the active Version.
func (*SignedBuilderBid) MarshalSSZ ¶
func (s *SignedBuilderBid) MarshalSSZ() ([]byte, error)
MarshalSSZ implements the fastssz.Marshaler interface.
func (*SignedBuilderBid) MarshalSSZDyn ¶
func (s *SignedBuilderBid) MarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
MarshalSSZDyn marshals the signed bid using the view that matches Version.
func (*SignedBuilderBid) MarshalSSZDynView ¶
func (t *SignedBuilderBid) MarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) ([]byte, error)
func (*SignedBuilderBid) MarshalSSZTo ¶
func (s *SignedBuilderBid) MarshalSSZTo(dst []byte) ([]byte, error)
MarshalSSZTo implements the fastssz.Marshaler interface.
func (*SignedBuilderBid) SizeSSZ ¶
func (s *SignedBuilderBid) SizeSSZ() int
SizeSSZ implements the fastssz.Marshaler interface.
func (*SignedBuilderBid) SizeSSZDyn ¶
func (s *SignedBuilderBid) SizeSSZDyn(ds sszutils.DynamicSpecs) int
SizeSSZDyn returns the SSZ size of the signed bid for the active Version.
func (*SignedBuilderBid) SizeSSZDynView ¶
func (t *SignedBuilderBid) SizeSSZDynView(view any) func(ds sszutils.DynamicSpecs) int
func (*SignedBuilderBid) UnmarshalJSON ¶
func (s *SignedBuilderBid) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler. The caller must set Version on s before calling so the message decodes against the matching schema.
func (*SignedBuilderBid) UnmarshalSSZ ¶
func (s *SignedBuilderBid) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ implements the fastssz.Unmarshaler interface.
func (*SignedBuilderBid) UnmarshalSSZDyn ¶
func (s *SignedBuilderBid) UnmarshalSSZDyn(ds sszutils.DynamicSpecs, buf []byte) error
UnmarshalSSZDyn decodes the signed bid from the view that matches Version.
func (*SignedBuilderBid) UnmarshalSSZDynView ¶
func (t *SignedBuilderBid) UnmarshalSSZDynView(view any) func(ds sszutils.DynamicSpecs, buf []byte) error
type SignedBuilderBidBellatrix ¶
type SignedBuilderBidBellatrix struct {
Message *BuilderBidBellatrix
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBuilderBidBellatrix is the Bellatrix SignedBuilderBid wire container.
type SignedBuilderBidCapella ¶
type SignedBuilderBidCapella struct {
Message *BuilderBidCapella
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBuilderBidCapella is the Capella SignedBuilderBid wire container.
type SignedBuilderBidDeneb ¶
type SignedBuilderBidDeneb struct {
Message *BuilderBidDeneb
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBuilderBidDeneb is the Deneb SignedBuilderBid wire container.
type SignedBuilderBidElectra ¶
type SignedBuilderBidElectra struct {
Message *BuilderBidElectra
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedBuilderBidElectra is the Electra SignedBuilderBid wire container (also the Fulu schema).