Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Use existing interface
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Apr 5, 2024
1 parent 6e0a701 commit e4a57fc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions types/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ package types
import (
"context"
"math/big"
"time"

"github.com/0xPolygon/agglayer/tx"
txmTypes "github.com/0xPolygon/agglayer/txmanager/types"
"github.com/0xPolygonHermez/zkevm-node/jsonrpc/types"
"github.com/0xPolygonHermez/zkevm-node/state"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
gethTypes "github.com/ethereum/go-ethereum/core/types"
"github.com/jackc/pgx/v4"
)

Expand All @@ -23,16 +21,7 @@ type IEtherman interface {
GetSequencerAddr(rollupId uint32) (common.Address, error)
BuildTrustedVerifyBatchesTxData(lastVerifiedBatch, newVerifiedBatch uint64, proof tx.ZKP, rollupId uint32) (data []byte, err error)
CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
GetTx(ctx context.Context, txHash common.Hash) (*gethTypes.Transaction, bool, error)
GetTxReceipt(ctx context.Context, txHash common.Hash) (*gethTypes.Receipt, error)
WaitTxToBeMined(ctx context.Context, tx *gethTypes.Transaction, timeout time.Duration) (bool, error)
SendTx(ctx context.Context, tx *gethTypes.Transaction) error
PendingNonce(ctx context.Context, account common.Address) (uint64, error)
SuggestedGasPrice(ctx context.Context) (*big.Int, error)
EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, data []byte) (uint64, error)
CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *gethTypes.Receipt, error)
SignTx(ctx context.Context, sender common.Address, tx *gethTypes.Transaction) (*gethTypes.Transaction, error)
GetRevertMessage(ctx context.Context, tx *gethTypes.Transaction) (string, error)
txmTypes.EthermanInterface
GetLastBlock(ctx context.Context, dbTx pgx.Tx) (*state.Block, error)
}

Expand Down

0 comments on commit e4a57fc

Please sign in to comment.