builder

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobTransactionBuilder

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

BlobTransactionBuilder is responsible for building a TaikoL1.proposeBlock transaction with txList bytes saved in blob.

func NewBlobTransactionBuilder

func NewBlobTransactionBuilder(
	rpc *rpc.Client,
	proposerPrivateKey *ecdsa.PrivateKey,
	proverSelector selector.ProverSelector,
	l1BlockBuilderTip *big.Int,
	taikoL1Address common.Address,
	l2SuggestedFeeRecipient common.Address,
	assignmentHookAddress common.Address,
	gasLimit uint64,
	extraData string,
) *BlobTransactionBuilder

NewBlobTransactionBuilder creates a new BlobTransactionBuilder instance based on giving configurations.

func (*BlobTransactionBuilder) Build

func (b *BlobTransactionBuilder) Build(
	ctx context.Context,
	tierFees []encoding.TierFee,
	includeParentMetaHash bool,
	txListBytes []byte,
) (*txmgr.TxCandidate, error)

Build implements the ProposeBlockTransactionBuilder interface.

type CalldataTransactionBuilder

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

CalldataTransactionBuilder is responsible for building a TaikoL1.proposeBlock transaction with txList bytes saved in calldata.

func NewCalldataTransactionBuilder

func NewCalldataTransactionBuilder(
	rpc *rpc.Client,
	proposerPrivateKey *ecdsa.PrivateKey,
	proverSelector selector.ProverSelector,
	l1BlockBuilderTip *big.Int,
	l2SuggestedFeeRecipient common.Address,
	taikoL1Address common.Address,
	assignmentHookAddress common.Address,
	gasLimit uint64,
	extraData string,
) *CalldataTransactionBuilder

NewCalldataTransactionBuilder creates a new CalldataTransactionBuilder instance based on giving configurations.

func (*CalldataTransactionBuilder) Build

func (b *CalldataTransactionBuilder) Build(
	ctx context.Context,
	tierFees []encoding.TierFee,
	includeParentMetaHash bool,
	txListBytes []byte,
) (*txmgr.TxCandidate, error)

Build implements the ProposeBlockTransactionBuilder interface.

type ProposeBlockTransactionBuilder

type ProposeBlockTransactionBuilder interface {
	Build(
		ctx context.Context,
		tierFees []encoding.TierFee,
		includeParentMetaHash bool,
		txListBytes []byte,
	) (*txmgr.TxCandidate, error)
}

ProposeBlockTransactionBuilder is an interface for building a TaikoL1.proposeBlock transaction.

Jump to

Keyboard shortcuts

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