Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnretryable = errors.New("unretryable")
)
Functions ¶
This section is empty.
Types ¶
type ProveBlockTxBuilder ¶
type ProveBlockTxBuilder struct {
// contains filtered or unexported fields
}
ProveBlockTxBuilder is responsible for building ProveBlock transactions.
func NewProveBlockTxBuilder ¶
func NewProveBlockTxBuilder( rpc *rpc.Client, proverPrivateKey *ecdsa.PrivateKey, gasLimit *big.Int, gasTipCap *big.Int, gasTipMultiplier *big.Int, ) *ProveBlockTxBuilder
NewProveBlockTxBuilder creates a new ProveBlockTxBuilder instance.
func (*ProveBlockTxBuilder) Build ¶
func (a *ProveBlockTxBuilder) Build( ctx context.Context, blockID *big.Int, meta *bindings.TaikoDataBlockMetadata, transition *bindings.TaikoDataTransition, tierProof *bindings.TaikoDataTierProof, guardian bool, ) TxBuilder
Build creates a new TaikoL1.ProveBlock transaction with the given nonce.
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is responsible for sending proof submission transactions with a backoff policy, if the transaction should not be retried anymore, it will return an `ErrUnretryable` error.
func NewSender ¶
func NewSender( cli *rpc.Client, retryInterval time.Duration, maxRetry *uint64, waitReceiptTimeout time.Duration, ) *Sender
NewSender creates a new Sener instance.
func (*Sender) Send ¶
func (s *Sender) Send( ctx context.Context, proofWithHeader *proofProducer.ProofWithHeader, buildTx TxBuilder, ) error
Send sends the given proof to the TaikoL1 smart contract with a backoff policy, if the transaction should not be retried anymore, it will return an `ErrUnretryable` error.
Click to show internal directories.
Click to hide internal directories.