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 ¶
func (d *BlobFetcher) Fetch( ctx context.Context, _ *types.Transaction, meta metadata.TaikoBlockMetaData, ) ([]byte, error)
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 ¶
func (d *CalldataFetcher) Fetch( ctx context.Context, tx *types.Transaction, meta metadata.TaikoBlockMetaData, ) ([]byte, error)
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
Click to show internal directories.
Click to hide internal directories.