txlistdecoder

package
v0.3.1-0...-684a909 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobFetcher

type BlobFetcher struct {
	// contains filtered or unexported fields
}

BlobFetcher is responsible for fetching the txList blob from the L1 block sidecar.

func NewBlobTxListFetcher

func NewBlobTxListFetcher(l1Beacon *rpc.BeaconClient, ds *rpc.BlobDataSource) *BlobFetcher

NewBlobTxListFetcher creates a new BlobFetcher instance based on the given rpc client.

func (*BlobFetcher) Fetch

Fetch implements the TxListFetcher interface.

type CalldataFetcher

type CalldataFetcher struct {
	// contains filtered or unexported fields
}

CalldataFetcher is responsible for fetching the txList bytes from the transaction's calldata.

func NewCalldataFetch

func NewCalldataFetch(rpc *rpc.Client) *CalldataFetcher

NewCalldataFetch creates a new CalldataFetcher instance based on the given rpc client.

func (*CalldataFetcher) Fetch

Fetch fetches the txList bytes from the transaction's calldata.

type TxListFetcher

type TxListFetcher interface {
	Fetch(ctx context.Context, tx *types.Transaction, meta metadata.TaikoBlockMetaData) ([]byte, error)
}

TxListFetcher is responsible for fetching the L2 txList bytes from L1

Jump to

Keyboard shortcuts

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