You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
528 B

package eth
import (
"context"
"math/big"
"github.com/ethereum/go-ethereum/core/types"
"github.com/hermeznetwork/hermez-node/common"
)
// ClientInterface is the eth Client interface used by hermez-node modules to
// interact with Ethereum Blockchain and smart contracts.
type ClientInterface interface {
CurrentBlock() (*big.Int, error)
HeaderByNumber(context.Context, *big.Int) (*types.Header, error)
BlockByNumber(context.Context, *big.Int) (*common.Block, error)
ForgeCall(*common.CallDataForge) ([]byte, error)
}