bundles

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderBundle

type BuilderBundle struct {
	ID         string
	BundleHash string

	Txs         []*types.Transaction
	BlockNumber uint64

	MinTimestamp uint64
	MaxTimestamp uint64

	RevertingTxHashes []*common.Hash

	BuilderPubkey    string
	BuilderSignature string

	BundleTransactionCount uint64
	BundleTotalGas         uint64

	BundleDateTime time.Time

	Added        bool
	Error        bool
	ErrorMessage string

	FailedRetryCount uint64

	Adding   bool
	Included bool
}

func BuilderBundleEntryToBundle

func BuilderBundleEntryToBundle(b *BuilderBundleEntry) (*BuilderBundle, error)

func (*BuilderBundle) GetTree

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

GetTree ssz hashes the main contents of the BuilderBundle object

func (*BuilderBundle) HashTreeRoot

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

HashTreeRoot ssz hashes the main contents of the BuilderBundle object

func (*BuilderBundle) HashTreeRootWith

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

HashTreeRootWith ssz hashes the main contents of the main contents of the BuilderBundle with a hasher

type BuilderBundleEntry

type BuilderBundleEntry struct {
	ID         string    `db:"id" json:"id"`
	InsertedAt time.Time `db:"inserted_at" json:"inserted_at"`

	BundleHash        string `db:"bundle_hash"`
	Txs               string `db:"txs" json:"txs,omitempty"`
	BlockNumber       uint64 `db:"block_number" json:"block_number,string"`
	MinTimestamp      uint64 `db:"min_timestamp" json:"min_timestamp,string,omitempty"`
	MaxTimestamp      uint64 `db:"max_timestamp" json:"max_timestamp,string,omitempty"`
	RevertingTxHashes string `db:"reverting_tx_hashes" json:"reverting_tx_hashes,omitempty"` // Comma-separated list of hex-encoded hashes

	BuilderPubkey    string `db:"builder_pubkey"`
	BuilderSignature string `db:"builder_signature"`

	BundleTransactionCount uint64 `db:"bundle_transaction_count" json:"bundle_transaction_count,string"`
	BundleTotalGas         uint64 `db:"bundle_total_gas" json:"bundle_total_gas,string"`

	Added        bool   `db:"added"`
	Error        bool   `db:"error"`
	ErrorMessage string `db:"error_message"`

	FailedRetryCount uint64 `db:"failed_retry_count" json:"failed_retry_count,string"`
}

func BuilderBundleToEntry

func BuilderBundleToEntry(b *BuilderBundle) (*BuilderBundleEntry, error)

Jump to

Keyboard shortcuts

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