// Code generated by mockery v2.14.0. DO NOT EDIT. package mocks import ( context "context" big "math/big" common "github.com/ethereum/go-ethereum/common" mock "github.com/stretchr/testify/mock" params "github.com/ethereum/go-ethereum/params" types "github.com/ethereum/go-ethereum/core/types" ) // OracleBackendChain is an autogenerated mock type for the OracleBackendChain type type OracleBackendChain struct { mock.Mock } // BlockByHash provides a mock function with given fields: ctx, hash func (_m *OracleBackendChain) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) { ret := _m.Called(ctx, hash) var r0 *types.Block if rf, ok := ret.Get(0).(func(context.Context, common.Hash) *types.Block); ok { r0 = rf(ctx, hash) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*types.Block) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, common.Hash) error); ok { r1 = rf(ctx, hash) } else { r1 = ret.Error(1) } return r0, r1 } // BlockByNumber provides a mock function with given fields: ctx, number func (_m *OracleBackendChain) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) { ret := _m.Called(ctx, number) var r0 *types.Block if rf, ok := ret.Get(0).(func(context.Context, *big.Int) *types.Block); ok { r0 = rf(ctx, number) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*types.Block) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, *big.Int) error); ok { r1 = rf(ctx, number) } else { r1 = ret.Error(1) } return r0, r1 } // ChainConfig provides a mock function with given fields: func (_m *OracleBackendChain) ChainConfig() *params.ChainConfig { ret := _m.Called() var r0 *params.ChainConfig if rf, ok := ret.Get(0).(func() *params.ChainConfig); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*params.ChainConfig) } } return r0 } // HeaderByNumber provides a mock function with given fields: ctx, number func (_m *OracleBackendChain) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) { ret := _m.Called(ctx, number) var r0 *types.Header if rf, ok := ret.Get(0).(func(context.Context, *big.Int) *types.Header); ok { r0 = rf(ctx, number) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*types.Header) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, *big.Int) error); ok { r1 = rf(ctx, number) } else { r1 = ret.Error(1) } return r0, r1 } // SuggestGasPrice provides a mock function with given fields: ctx func (_m *OracleBackendChain) SuggestGasPrice(ctx context.Context) (*big.Int, error) { ret := _m.Called(ctx) var r0 *big.Int if rf, ok := ret.Get(0).(func(context.Context) *big.Int); ok { r0 = rf(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*big.Int) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context) error); ok { r1 = rf(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // SuggestGasTipCap provides a mock function with given fields: ctx func (_m *OracleBackendChain) SuggestGasTipCap(ctx context.Context) (*big.Int, error) { ret := _m.Called(ctx) var r0 *big.Int if rf, ok := ret.Get(0).(func(context.Context) *big.Int); ok { r0 = rf(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*big.Int) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context) error); ok { r1 = rf(ctx) } else { r1 = ret.Error(1) } return r0, r1 } type mockConstructorTestingTNewOracleBackendChain interface { mock.TestingT Cleanup(func()) } // NewOracleBackendChain creates a new instance of OracleBackendChain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. func NewOracleBackendChain(t mockConstructorTestingTNewOracleBackendChain) *OracleBackendChain { mock := &OracleBackendChain{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }