interop

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	ZkEVMClientCreator types.IZkEVMClientClientCreator
	// contains filtered or unexported fields
}

func New

func New(
	logger *zap.SugaredLogger,
	cfg *config.Config,
	interopAdminAddr common.Address,
	etherman types.IEtherman,
	ethTxManager types.IEthTxManager,
) *Executor

func (*Executor) CheckTx

func (e *Executor) CheckTx(tx tx.SignedTx) error

func (*Executor) Execute

func (e *Executor) Execute(ctx context.Context, signedTx tx.SignedTx) error

func (*Executor) GetTxStatus

func (e *Executor) GetTxStatus(ctx context.Context, hash common.Hash, dbTx pgx.Tx) (result string, err jRPC.Error)

func (*Executor) Settle

func (e *Executor) Settle(ctx context.Context, signedTx tx.SignedTx, dbTx pgx.Tx) (common.Hash, error)

func (*Executor) Verify

func (e *Executor) Verify(ctx context.Context, tx tx.SignedTx) error

Jump to

Keyboard shortcuts

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