github.com/status-im/status-go@v1.1.0/transactions/fake/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: transactions/fake/txservice.go 3 4 // Package fake is a generated GoMock package. 5 package fake 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 13 common "github.com/ethereum/go-ethereum/common" 14 hexutil "github.com/ethereum/go-ethereum/common/hexutil" 15 rpc "github.com/ethereum/go-ethereum/rpc" 16 ) 17 18 // MockPublicTransactionPoolAPI is a mock of PublicTransactionPoolAPI interface 19 type MockPublicTransactionPoolAPI struct { 20 ctrl *gomock.Controller 21 recorder *MockPublicTransactionPoolAPIMockRecorder 22 } 23 24 // MockPublicTransactionPoolAPIMockRecorder is the mock recorder for MockPublicTransactionPoolAPI 25 type MockPublicTransactionPoolAPIMockRecorder struct { 26 mock *MockPublicTransactionPoolAPI 27 } 28 29 // NewMockPublicTransactionPoolAPI creates a new mock instance 30 func NewMockPublicTransactionPoolAPI(ctrl *gomock.Controller) *MockPublicTransactionPoolAPI { 31 mock := &MockPublicTransactionPoolAPI{ctrl: ctrl} 32 mock.recorder = &MockPublicTransactionPoolAPIMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use 37 func (m *MockPublicTransactionPoolAPI) EXPECT() *MockPublicTransactionPoolAPIMockRecorder { 38 return m.recorder 39 } 40 41 // GasPrice mocks base method 42 func (m *MockPublicTransactionPoolAPI) GasPrice(ctx context.Context) (*hexutil.Big, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "GasPrice", ctx) 45 ret0, _ := ret[0].(*hexutil.Big) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // GasPrice indicates an expected call of GasPrice 51 func (mr *MockPublicTransactionPoolAPIMockRecorder) GasPrice(ctx interface{}) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GasPrice", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).GasPrice), ctx) 54 } 55 56 // EstimateGas mocks base method 57 func (m *MockPublicTransactionPoolAPI) EstimateGas(ctx context.Context, args CallArgs) (hexutil.Uint64, error) { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "EstimateGas", ctx, args) 60 ret0, _ := ret[0].(hexutil.Uint64) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // EstimateGas indicates an expected call of EstimateGas 66 func (mr *MockPublicTransactionPoolAPIMockRecorder) EstimateGas(ctx, args interface{}) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGas", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).EstimateGas), ctx, args) 69 } 70 71 // GetTransactionCount mocks base method 72 func (m *MockPublicTransactionPoolAPI) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Uint64, error) { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "GetTransactionCount", ctx, address, blockNr) 75 ret0, _ := ret[0].(*hexutil.Uint64) 76 ret1, _ := ret[1].(error) 77 return ret0, ret1 78 } 79 80 // GetTransactionCount indicates an expected call of GetTransactionCount 81 func (mr *MockPublicTransactionPoolAPIMockRecorder) GetTransactionCount(ctx, address, blockNr interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransactionCount", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).GetTransactionCount), ctx, address, blockNr) 84 } 85 86 // SendRawTransaction mocks base method 87 func (m *MockPublicTransactionPoolAPI) SendRawTransaction(ctx context.Context, encodedTx hexutil.Bytes) (common.Hash, error) { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "SendRawTransaction", ctx, encodedTx) 90 ret0, _ := ret[0].(common.Hash) 91 ret1, _ := ret[1].(error) 92 return ret0, ret1 93 } 94 95 // SendRawTransaction indicates an expected call of SendRawTransaction 96 func (mr *MockPublicTransactionPoolAPIMockRecorder) SendRawTransaction(ctx, encodedTx interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRawTransaction", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).SendRawTransaction), ctx, encodedTx) 99 }