// Code generated by MockGen. DO NOT EDIT. // Source: geth/txqueue/fake/txservice.go // Package fake is a generated GoMock package. package fake import ( context "context" common "github.com/ethereum/go-ethereum/common" hexutil "github.com/ethereum/go-ethereum/common/hexutil" rpc "github.com/ethereum/go-ethereum/rpc" gomock "github.com/golang/mock/gomock" big "math/big" reflect "reflect" ) // MockFakePublicTransactionPoolAPI is a mock of FakePublicTransactionPoolAPI interface type MockFakePublicTransactionPoolAPI struct { ctrl *gomock.Controller recorder *MockFakePublicTransactionPoolAPIMockRecorder } // MockFakePublicTransactionPoolAPIMockRecorder is the mock recorder for MockFakePublicTransactionPoolAPI type MockFakePublicTransactionPoolAPIMockRecorder struct { mock *MockFakePublicTransactionPoolAPI } // NewMockFakePublicTransactionPoolAPI creates a new mock instance func NewMockFakePublicTransactionPoolAPI(ctrl *gomock.Controller) *MockFakePublicTransactionPoolAPI { mock := &MockFakePublicTransactionPoolAPI{ctrl: ctrl} mock.recorder = &MockFakePublicTransactionPoolAPIMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use func (m *MockFakePublicTransactionPoolAPI) EXPECT() *MockFakePublicTransactionPoolAPIMockRecorder { return m.recorder } // GasPrice mocks base method func (m *MockFakePublicTransactionPoolAPI) GasPrice(ctx context.Context) (*big.Int, error) { ret := m.ctrl.Call(m, "GasPrice", ctx) ret0, _ := ret[0].(*big.Int) ret1, _ := ret[1].(error) return ret0, ret1 } // GasPrice indicates an expected call of GasPrice func (mr *MockFakePublicTransactionPoolAPIMockRecorder) GasPrice(ctx interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GasPrice", reflect.TypeOf((*MockFakePublicTransactionPoolAPI)(nil).GasPrice), ctx) } // EstimateGas mocks base method func (m *MockFakePublicTransactionPoolAPI) EstimateGas(ctx context.Context, args CallArgs) (*hexutil.Big, error) { ret := m.ctrl.Call(m, "EstimateGas", ctx, args) ret0, _ := ret[0].(*hexutil.Big) ret1, _ := ret[1].(error) return ret0, ret1 } // EstimateGas indicates an expected call of EstimateGas func (mr *MockFakePublicTransactionPoolAPIMockRecorder) EstimateGas(ctx, args interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGas", reflect.TypeOf((*MockFakePublicTransactionPoolAPI)(nil).EstimateGas), ctx, args) } // GetTransactionCount mocks base method func (m *MockFakePublicTransactionPoolAPI) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Uint64, error) { ret := m.ctrl.Call(m, "GetTransactionCount", ctx, address, blockNr) ret0, _ := ret[0].(*hexutil.Uint64) ret1, _ := ret[1].(error) return ret0, ret1 } // GetTransactionCount indicates an expected call of GetTransactionCount func (mr *MockFakePublicTransactionPoolAPIMockRecorder) GetTransactionCount(ctx, address, blockNr interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransactionCount", reflect.TypeOf((*MockFakePublicTransactionPoolAPI)(nil).GetTransactionCount), ctx, address, blockNr) } // SendRawTransaction mocks base method func (m *MockFakePublicTransactionPoolAPI) SendRawTransaction(ctx context.Context, encodedTx hexutil.Bytes) (common.Hash, error) { ret := m.ctrl.Call(m, "SendRawTransaction", ctx, encodedTx) ret0, _ := ret[0].(common.Hash) ret1, _ := ret[1].(error) return ret0, ret1 } // SendRawTransaction indicates an expected call of SendRawTransaction func (mr *MockFakePublicTransactionPoolAPIMockRecorder) SendRawTransaction(ctx, encodedTx interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRawTransaction", reflect.TypeOf((*MockFakePublicTransactionPoolAPI)(nil).SendRawTransaction), ctx, encodedTx) }