builder

package
v0.0.0-...-c8bbbf3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BidPayload

type BidPayload struct {
	Slot                 uint64                `json:"slot,string"`
	ParentHash           commonTypes.Hash      `json:"parent_hash" ssz-size:"32"`
	BlockHash            commonTypes.Hash      `json:"block_hash" ssz-size:"32"`
	BuilderPubkey        commonTypes.PublicKey `json:"builder_pubkey" ssz-size:"48"`
	ProposerPubkey       commonTypes.PublicKey `json:"proposer_pubkey" ssz-size:"48"`
	ProposerFeeRecipient commonTypes.Address   `json:"proposer_fee_recipient" ssz-size:"20"`
	GasLimit             uint64                `json:"gas_limit,string"`
	GasUsed              uint64                `json:"gas_used,string"`
	Value                *big.Int              `json:"value"`

	ExecutionPayloadHeader *commonTypes.VersionedExecutionPayloadHeader `json:"execution_payload_header"`
	Endpoint               string                                       `json:"endpoint"`
	BuilderWalletAddress   commonTypes.Address                          `json:"builder_wallet_address"`
	PayoutPoolTransaction  []byte                                       `json:"payout_pool_transaction"`
	RPBS                   *rpbsTypes.EncodedRPBSSignature              `json:"rpbs"`
	RPBSPubkey             string                                       `json:"rpbs_pubkey"`
}

func (*BidPayload) GetTree

func (b *BidPayload) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BidPayload object

func (*BidPayload) HashTreeRoot

func (b *BidPayload) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BidPayload object

func (*BidPayload) HashTreeRootWith

func (b *BidPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BidPayload object with a hasher

type BlockBidResponse

type BlockBidResponse struct {
	RelayResponse      interface{}     `json:"relay_response"`
	BlockBid           BuilderBlockBid `json:"block_bid"`
	BidRequestTime     time.Time       `json:"bid_request_time"`
	BlockBuiltTime     time.Time       `json:"block_built_time"`
	BlockSubmittedTime time.Time       `json:"block_submitted_time"`
}

type BuilderBlockBid

type BuilderBlockBid struct {
	Signature      commonTypes.Signature      `json:"signature" ssz-size:"96"`
	Message        *BidPayload                `json:"message"`
	EcdsaSignature commonTypes.EcdsaSignature `json:"ecdsa_signature"`
}

type BuilderPayloadAttributes

type BuilderPayloadAttributes struct {
	Timestamp             hexutil.Uint64              `json:"timestamp"`
	Random                gethCommon.Hash             `json:"prevRandao"`
	SuggestedFeeRecipient gethCommon.Address          `json:"suggestedFeeRecipient"`
	Slot                  uint64                      `json:"slot,string"`
	HeadHash              gethCommon.Hash             `json:"headHash"`
	BidAmount             *big.Int                    `json:"bidAmount"`
	GasLimit              uint64                      `json:"gasLimit,string"`
	Transactions          [][]byte                    `json:"transactions"`
	NoMempoolTxs          bool                        `json:"noMempoolTxs,string"`
	PayoutPoolAddress     gethCommon.Address          `json:"payoutPoolAddress"`
	Withdrawals           types.Withdrawals           `json:"-"`
	Bundles               []bundleTypes.BuilderBundle `json:"-"`
}

func (*BuilderPayloadAttributes) UnmarshalJSON

func (b *BuilderPayloadAttributes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface purposefully for receiving a payload from the API.

type PrivateTransactionsPayload

type PrivateTransactionsPayload struct {
	Transactions [][]byte `json:"transactions"`
}

type SignedBuilderBlockBid

type SignedBuilderBlockBid struct {
	Message   *BuilderBlockBid    `json:"message"`
	Signature phase0.BLSSignature `ssz-size:"96"`
}

Jump to

Keyboard shortcuts

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