transaction

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnretryableSubmission = errors.New("unretryable submission error")
)

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,
	taikoL1Address common.Address,
	guardianProverAddress common.Address,
) *ProveBlockTxBuilder

NewProveBlockTxBuilder creates a new ProveBlockTxBuilder instance.

func (*ProveBlockTxBuilder) Build

func (a *ProveBlockTxBuilder) Build(
	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.

func NewSender

func NewSender(
	cli *rpc.Client,
	txmgr *txmgr.SimpleTxManager,
	gasLimit uint64,
) *Sender

NewSender creates a new Sener instance.

func (*Sender) Send

func (s *Sender) Send(
	ctx context.Context,
	proofWithHeader *producer.ProofWithHeader,
	buildTx TxBuilder,
) error

Send sends the given proof to the TaikoL1 smart contract with a backoff policy.

type TxBuilder

type TxBuilder func(txOpts *bind.TransactOpts) (*txmgr.TxCandidate, error)

TxBuilder will build a transaction with the given nonce.

Jump to

Keyboard shortcuts

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