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, taikoL1Address common.Address, proverSetAddress common.Address, l2SuggestedFeeRecipient common.Address, gasLimit uint64, extraData string, chainConfig *config.ChainConfig, ) *BlobTransactionBuilder
NewBlobTransactionBuilder creates a new BlobTransactionBuilder instance based on giving configurations.
func (*BlobTransactionBuilder) BuildLegacy ¶
func (b *BlobTransactionBuilder) BuildLegacy( ctx context.Context, includeParentMetaHash bool, txListBytes []byte, ) (*txmgr.TxCandidate, error)
BuildLegacy implements the ProposeBlockTransactionBuilder interface.
func (*BlobTransactionBuilder) BuildOntake ¶
func (b *BlobTransactionBuilder) BuildOntake( ctx context.Context, txListBytesArray [][]byte, ) (*txmgr.TxCandidate, error)
BuildOntake 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, l2SuggestedFeeRecipient common.Address, taikoL1Address common.Address, proverSetAddress common.Address, gasLimit uint64, extraData string, chainConfig *config.ChainConfig, ) *CalldataTransactionBuilder
NewCalldataTransactionBuilder creates a new CalldataTransactionBuilder instance based on giving configurations.
func (*CalldataTransactionBuilder) BuildLegacy ¶
func (b *CalldataTransactionBuilder) BuildLegacy( ctx context.Context, includeParentMetaHash bool, txListBytes []byte, ) (*txmgr.TxCandidate, error)
BuildLegacy implements the ProposeBlockTransactionBuilder interface.
func (*CalldataTransactionBuilder) BuildOntake ¶
func (b *CalldataTransactionBuilder) BuildOntake( ctx context.Context, txListBytesArray [][]byte, ) (*txmgr.TxCandidate, error)
BuildOntake implements the ProposeBlockTransactionBuilder interface.
type ProposeBlockTransactionBuilder ¶
type ProposeBlockTransactionBuilder interface { BuildLegacy( ctx context.Context, includeParentMetaHash bool, txListBytes []byte, ) (*txmgr.TxCandidate, error) BuildOntake( ctx context.Context, txListBytesArray [][]byte, ) (*txmgr.TxCandidate, error) }
ProposeBlockTransactionBuilder is an interface for building a TaikoL1.proposeBlock transaction.