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

  1. package eth
  2. import (
  3. "context"
  4. "math/big"
  5. "github.com/ethereum/go-ethereum/core/types"
  6. "github.com/hermeznetwork/hermez-node/common"
  7. )
  8. // ClientInterface is the eth Client interface used by hermez-node modules to
  9. // interact with Ethereum Blockchain and smart contracts.
  10. type ClientInterface interface {
  11. CurrentBlock() (*big.Int, error)
  12. HeaderByNumber(context.Context, *big.Int) (*types.Header, error)
  13. BlockByNumber(context.Context, *big.Int) (*common.Block, error)
  14. ForgeCall(*common.CallDataForge) ([]byte, error)
  15. }