Documentation
¶
Overview ¶
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 73051b06cc63fbd730494da90db480932cf6120fd2b1e8914804a555bdb3a416 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: b88f4577f809d21495b23ade5b57ee353a8cb5f9310f34f1e02e865c3ed09955 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Package types holds the Gloas-fork Builder API request/response types (RequestAuth, SignedRequestAuth, BuilderPreferences, BuilderPreferencesRequest). They were vendored from go-builder-client so buildoor owns them directly, and use buildoor's ethpandaops/go-eth2-client phase0 types. The _ssz.go files are generated; see generate.go.
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 597218dd9b058462ddcddfb47bf27558f66616c2efb1e93c89d8f2eb8d6e3421 Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Code generated by dynamic-ssz. DO NOT EDIT. Hash: 90a5f069bf853b5db64738807deada0a571106725fdeb43e4414702f018bc23f Version: v1.3.2 (https://github.com/pk910/dynamic-ssz)
Index ¶
- Constants
- type BuilderPreferencesRequestV1
- func (t *BuilderPreferencesRequestV1) HashTreeRoot() (root [32]byte, err error)
- func (t *BuilderPreferencesRequestV1) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BuilderPreferencesRequestV1) MarshalJSON() ([]byte, error)
- func (t *BuilderPreferencesRequestV1) MarshalSSZ() ([]byte, error)
- func (t *BuilderPreferencesRequestV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BuilderPreferencesRequestV1) MarshalYAML() ([]byte, error)
- func (t *BuilderPreferencesRequestV1) SizeSSZ() (size int)
- func (b *BuilderPreferencesRequestV1) String() string
- func (b *BuilderPreferencesRequestV1) UnmarshalJSON(input []byte) error
- func (t *BuilderPreferencesRequestV1) UnmarshalSSZ(buf []byte) (err error)
- func (b *BuilderPreferencesRequestV1) UnmarshalYAML(input []byte) error
- type BuilderPreferencesV1
- func (t *BuilderPreferencesV1) HashTreeRoot() (root [32]byte, err error)
- func (t *BuilderPreferencesV1) HashTreeRootWith(hh sszutils.HashWalker) error
- func (b *BuilderPreferencesV1) MarshalJSON() ([]byte, error)
- func (t *BuilderPreferencesV1) MarshalSSZ() ([]byte, error)
- func (t *BuilderPreferencesV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BuilderPreferencesV1) MarshalYAML() ([]byte, error)
- func (t *BuilderPreferencesV1) SizeSSZ() (size int)
- func (b *BuilderPreferencesV1) String() string
- func (b *BuilderPreferencesV1) UnmarshalJSON(input []byte) error
- func (t *BuilderPreferencesV1) UnmarshalSSZ(buf []byte) (err error)
- func (b *BuilderPreferencesV1) UnmarshalYAML(input []byte) error
- type RequestAuthV1
- func (t *RequestAuthV1) HashTreeRoot() (root [32]byte, err error)
- func (t *RequestAuthV1) HashTreeRootWith(hh sszutils.HashWalker) error
- func (r *RequestAuthV1) MarshalJSON() ([]byte, error)
- func (t *RequestAuthV1) MarshalSSZ() ([]byte, error)
- func (t *RequestAuthV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (r *RequestAuthV1) MarshalYAML() ([]byte, error)
- func (t *RequestAuthV1) SizeSSZ() (size int)
- func (r *RequestAuthV1) String() string
- func (r *RequestAuthV1) UnmarshalJSON(input []byte) error
- func (t *RequestAuthV1) UnmarshalSSZ(buf []byte) (err error)
- func (r *RequestAuthV1) UnmarshalYAML(input []byte) error
- type SignedRequestAuthV1
- func (t *SignedRequestAuthV1) HashTreeRoot() (root [32]byte, err error)
- func (t *SignedRequestAuthV1) HashTreeRootWith(hh sszutils.HashWalker) error
- func (s *SignedRequestAuthV1) MarshalJSON() ([]byte, error)
- func (t *SignedRequestAuthV1) MarshalSSZ() ([]byte, error)
- func (t *SignedRequestAuthV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedRequestAuthV1) MarshalYAML() ([]byte, error)
- func (t *SignedRequestAuthV1) SizeSSZ() (size int)
- func (s *SignedRequestAuthV1) String() string
- func (s *SignedRequestAuthV1) UnmarshalJSON(input []byte) error
- func (t *SignedRequestAuthV1) UnmarshalSSZ(buf []byte) (err error)
- func (s *SignedRequestAuthV1) UnmarshalYAML(input []byte) error
Constants ¶
const MaxDataSize = 4096
MaxDataSize is the maximum number of bytes in the request auth data field.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderPreferencesRequestV1 ¶
type BuilderPreferencesRequestV1 struct {
Preferences *BuilderPreferencesV1
Auth *SignedRequestAuthV1
}
BuilderPreferencesRequestV1 is the body submitted to a builder via the submitBuilderPreferences API. The Auth.Message.Data identifies the intended builder so the builder can reject preferences that were not destined for it.
func (*BuilderPreferencesRequestV1) HashTreeRoot ¶
func (t *BuilderPreferencesRequestV1) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BuilderPreferencesRequestV1.
func (*BuilderPreferencesRequestV1) HashTreeRootWith ¶
func (t *BuilderPreferencesRequestV1) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BuilderPreferencesRequestV1 using the given hash walker.
func (*BuilderPreferencesRequestV1) MarshalJSON ¶
func (b *BuilderPreferencesRequestV1) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BuilderPreferencesRequestV1) MarshalSSZ ¶
func (t *BuilderPreferencesRequestV1) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BuilderPreferencesRequestV1 to SSZ-encoded bytes.
func (*BuilderPreferencesRequestV1) MarshalSSZTo ¶
func (t *BuilderPreferencesRequestV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BuilderPreferencesRequestV1 to SSZ-encoded bytes, appending to the provided buffer.
func (*BuilderPreferencesRequestV1) MarshalYAML ¶
func (b *BuilderPreferencesRequestV1) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BuilderPreferencesRequestV1) SizeSSZ ¶
func (t *BuilderPreferencesRequestV1) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BuilderPreferencesRequestV1.
func (*BuilderPreferencesRequestV1) String ¶
func (b *BuilderPreferencesRequestV1) String() string
String returns a string version of the structure.
func (*BuilderPreferencesRequestV1) UnmarshalJSON ¶
func (b *BuilderPreferencesRequestV1) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BuilderPreferencesRequestV1) UnmarshalSSZ ¶
func (t *BuilderPreferencesRequestV1) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BuilderPreferencesRequestV1 from SSZ-encoded bytes.
func (*BuilderPreferencesRequestV1) UnmarshalYAML ¶
func (b *BuilderPreferencesRequestV1) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type BuilderPreferencesV1 ¶
BuilderPreferencesV1 communicates a proposer's per-builder preferences to a specific builder ahead of the bid request. A value of zero for MaxExecutionPayment indicates the proposer does not accept any execution layer payments from this builder, requiring the use of the on-chain trustless payment mechanism instead.
func (*BuilderPreferencesV1) HashTreeRoot ¶
func (t *BuilderPreferencesV1) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *BuilderPreferencesV1.
func (*BuilderPreferencesV1) HashTreeRootWith ¶
func (t *BuilderPreferencesV1) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *BuilderPreferencesV1 using the given hash walker.
func (*BuilderPreferencesV1) MarshalJSON ¶
func (b *BuilderPreferencesV1) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BuilderPreferencesV1) MarshalSSZ ¶
func (t *BuilderPreferencesV1) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *BuilderPreferencesV1 to SSZ-encoded bytes.
func (*BuilderPreferencesV1) MarshalSSZTo ¶
func (t *BuilderPreferencesV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *BuilderPreferencesV1 to SSZ-encoded bytes, appending to the provided buffer.
func (*BuilderPreferencesV1) MarshalYAML ¶
func (b *BuilderPreferencesV1) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*BuilderPreferencesV1) SizeSSZ ¶
func (t *BuilderPreferencesV1) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *BuilderPreferencesV1.
func (*BuilderPreferencesV1) String ¶
func (b *BuilderPreferencesV1) String() string
String returns a string version of the structure.
func (*BuilderPreferencesV1) UnmarshalJSON ¶
func (b *BuilderPreferencesV1) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*BuilderPreferencesV1) UnmarshalSSZ ¶
func (t *BuilderPreferencesV1) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *BuilderPreferencesV1 from SSZ-encoded bytes.
func (*BuilderPreferencesV1) UnmarshalYAML ¶
func (b *BuilderPreferencesV1) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type RequestAuthV1 ¶
RequestAuthV1 is used by a proposer to authenticate a bid request to a specific builder. The proposer signs over a generic data field (set to the builder's URL) and the slot to prevent other builders from replaying the request to learn the builder's valuation, and to prevent DOS attempts from competing parties.
func (*RequestAuthV1) HashTreeRoot ¶
func (t *RequestAuthV1) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *RequestAuthV1.
func (*RequestAuthV1) HashTreeRootWith ¶
func (t *RequestAuthV1) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *RequestAuthV1 using the given hash walker.
func (*RequestAuthV1) MarshalJSON ¶
func (r *RequestAuthV1) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*RequestAuthV1) MarshalSSZ ¶
func (t *RequestAuthV1) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *RequestAuthV1 to SSZ-encoded bytes.
func (*RequestAuthV1) MarshalSSZTo ¶
func (t *RequestAuthV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *RequestAuthV1 to SSZ-encoded bytes, appending to the provided buffer.
func (*RequestAuthV1) MarshalYAML ¶
func (r *RequestAuthV1) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*RequestAuthV1) SizeSSZ ¶
func (t *RequestAuthV1) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *RequestAuthV1.
func (*RequestAuthV1) String ¶
func (r *RequestAuthV1) String() string
String returns a string version of the structure.
func (*RequestAuthV1) UnmarshalJSON ¶
func (r *RequestAuthV1) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*RequestAuthV1) UnmarshalSSZ ¶
func (t *RequestAuthV1) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *RequestAuthV1 from SSZ-encoded bytes.
func (*RequestAuthV1) UnmarshalYAML ¶
func (r *RequestAuthV1) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedRequestAuthV1 ¶
type SignedRequestAuthV1 struct {
Message *RequestAuthV1
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedRequestAuthV1 wraps a RequestAuthV1 with the proposer's signature over the hash tree root of the message. It is sent in the body of getExecutionPayloadBid and submitBuilderPreferences requests so that builders can authenticate the requesting validator.
func (*SignedRequestAuthV1) HashTreeRoot ¶
func (t *SignedRequestAuthV1) HashTreeRoot() (root [32]byte, err error)
HashTreeRoot computes the SSZ hash tree root of the *SignedRequestAuthV1.
func (*SignedRequestAuthV1) HashTreeRootWith ¶
func (t *SignedRequestAuthV1) HashTreeRootWith(hh sszutils.HashWalker) error
HashTreeRootWith computes the SSZ hash tree root of the *SignedRequestAuthV1 using the given hash walker.
func (*SignedRequestAuthV1) MarshalJSON ¶
func (s *SignedRequestAuthV1) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedRequestAuthV1) MarshalSSZ ¶
func (t *SignedRequestAuthV1) MarshalSSZ() ([]byte, error)
MarshalSSZ marshals the *SignedRequestAuthV1 to SSZ-encoded bytes.
func (*SignedRequestAuthV1) MarshalSSZTo ¶
func (t *SignedRequestAuthV1) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo marshals the *SignedRequestAuthV1 to SSZ-encoded bytes, appending to the provided buffer.
func (*SignedRequestAuthV1) MarshalYAML ¶
func (s *SignedRequestAuthV1) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedRequestAuthV1) SizeSSZ ¶
func (t *SignedRequestAuthV1) SizeSSZ() (size int)
SizeSSZ returns the SSZ encoded size of the *SignedRequestAuthV1.
func (*SignedRequestAuthV1) String ¶
func (s *SignedRequestAuthV1) String() string
String returns a string version of the structure.
func (*SignedRequestAuthV1) UnmarshalJSON ¶
func (s *SignedRequestAuthV1) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedRequestAuthV1) UnmarshalSSZ ¶
func (t *SignedRequestAuthV1) UnmarshalSSZ(buf []byte) (err error)
UnmarshalSSZ unmarshals the *SignedRequestAuthV1 from SSZ-encoded bytes.
func (*SignedRequestAuthV1) UnmarshalYAML ¶
func (s *SignedRequestAuthV1) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
Source Files
¶
- builderpreferencesrequestv1.go
- builderpreferencesrequestv1_json.go
- builderpreferencesrequestv1_ssz.go
- builderpreferencesrequestv1_yaml.go
- builderpreferencesv1.go
- builderpreferencesv1_json.go
- builderpreferencesv1_ssz.go
- builderpreferencesv1_yaml.go
- generate.go
- requestauthv1.go
- requestauthv1_json.go
- requestauthv1_ssz.go
- requestauthv1_yaml.go
- signedrequestauthv1.go
- signedrequestauthv1_json.go
- signedrequestauthv1_ssz.go
- signedrequestauthv1_yaml.go