fix mocks.Backend

This commit is contained in:
i-norden 2023-05-04 09:02:47 -05:00
parent 82e940a97c
commit f018beaa59
10 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,8 @@ import (
"math/big" "math/big"
"time" "time"
"github.com/ethereum/go-ethereum/internal/ethapi"
"github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
@ -36,6 +38,8 @@ import (
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
) )
var _ ethapi.Backend = &Backend{}
// Builder is a mock state diff builder // Builder is a mock state diff builder
type Backend struct { type Backend struct {
StartingBlock uint64 StartingBlock uint64
@ -81,8 +85,8 @@ func (backend *Backend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
panic("not implemented") // TODO: Implement panic("not implemented") // TODO: Implement
} }
func (backend *Backend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (*big.Int, [][]*big.Int, []*big.Int, []float64, error) { func (backend *Backend) FeeHistory(ctx context.Context, blockCount uint64, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (*big.Int, [][]*big.Int, []*big.Int, []float64, error) {
panic("not implemented") // TODO: Implement panic("implement me")
} }
func (backend *Backend) ChainDb() ethdb.Database { func (backend *Backend) ChainDb() ethdb.Database {