2018-01-18 16:55:17 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2018-06-08 11:29:50 +00:00
|
|
|
// Source: transactions/fake/txservice.go
|
2024-09-20 09:08:11 +00:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -package=fake -destination=transactions/fake/mock.go -source=transactions/fake/txservice.go
|
|
|
|
//
|
2018-01-18 16:55:17 +00:00
|
|
|
|
|
|
|
// Package fake is a generated GoMock package.
|
|
|
|
package fake
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2020-09-11 06:07:40 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2024-09-24 13:52:29 +00:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
|
|
2018-01-18 16:55:17 +00:00
|
|
|
common "github.com/ethereum/go-ethereum/common"
|
|
|
|
hexutil "github.com/ethereum/go-ethereum/common/hexutil"
|
|
|
|
rpc "github.com/ethereum/go-ethereum/rpc"
|
|
|
|
)
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// MockPublicTransactionPoolAPI is a mock of PublicTransactionPoolAPI interface.
|
2018-01-05 20:58:17 +00:00
|
|
|
type MockPublicTransactionPoolAPI struct {
|
2018-01-18 16:55:17 +00:00
|
|
|
ctrl *gomock.Controller
|
2018-01-05 20:58:17 +00:00
|
|
|
recorder *MockPublicTransactionPoolAPIMockRecorder
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// MockPublicTransactionPoolAPIMockRecorder is the mock recorder for MockPublicTransactionPoolAPI.
|
2018-01-05 20:58:17 +00:00
|
|
|
type MockPublicTransactionPoolAPIMockRecorder struct {
|
|
|
|
mock *MockPublicTransactionPoolAPI
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// NewMockPublicTransactionPoolAPI creates a new mock instance.
|
2018-01-05 20:58:17 +00:00
|
|
|
func NewMockPublicTransactionPoolAPI(ctrl *gomock.Controller) *MockPublicTransactionPoolAPI {
|
|
|
|
mock := &MockPublicTransactionPoolAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockPublicTransactionPoolAPIMockRecorder{mock}
|
2018-01-18 16:55:17 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2018-01-05 20:58:17 +00:00
|
|
|
func (m *MockPublicTransactionPoolAPI) EXPECT() *MockPublicTransactionPoolAPIMockRecorder {
|
2018-01-18 16:55:17 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// EstimateGas mocks base method.
|
|
|
|
func (m *MockPublicTransactionPoolAPI) EstimateGas(ctx context.Context, args CallArgs) (hexutil.Uint64, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-09-20 09:08:11 +00:00
|
|
|
ret := m.ctrl.Call(m, "EstimateGas", ctx, args)
|
|
|
|
ret0, _ := ret[0].(hexutil.Uint64)
|
2018-01-18 16:55:17 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// EstimateGas indicates an expected call of EstimateGas.
|
|
|
|
func (mr *MockPublicTransactionPoolAPIMockRecorder) EstimateGas(ctx, args any) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-09-20 09:08:11 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGas", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).EstimateGas), ctx, args)
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// GasPrice mocks base method.
|
|
|
|
func (m *MockPublicTransactionPoolAPI) GasPrice(ctx context.Context) (*hexutil.Big, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-09-20 09:08:11 +00:00
|
|
|
ret := m.ctrl.Call(m, "GasPrice", ctx)
|
|
|
|
ret0, _ := ret[0].(*hexutil.Big)
|
2018-01-18 16:55:17 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// GasPrice indicates an expected call of GasPrice.
|
|
|
|
func (mr *MockPublicTransactionPoolAPIMockRecorder) GasPrice(ctx any) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-09-20 09:08:11 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GasPrice", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).GasPrice), ctx)
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// GetTransactionCount mocks base method.
|
2018-04-13 13:10:37 +00:00
|
|
|
func (m *MockPublicTransactionPoolAPI) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Uint64, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-04-13 13:10:37 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetTransactionCount", ctx, address, blockNr)
|
2018-01-18 16:55:17 +00:00
|
|
|
ret0, _ := ret[0].(*hexutil.Uint64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// GetTransactionCount indicates an expected call of GetTransactionCount.
|
|
|
|
func (mr *MockPublicTransactionPoolAPIMockRecorder) GetTransactionCount(ctx, address, blockNr any) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-04-13 13:10:37 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTransactionCount", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).GetTransactionCount), ctx, address, blockNr)
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// SendRawTransaction mocks base method.
|
2018-04-13 13:10:37 +00:00
|
|
|
func (m *MockPublicTransactionPoolAPI) SendRawTransaction(ctx context.Context, encodedTx hexutil.Bytes) (common.Hash, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-04-13 13:10:37 +00:00
|
|
|
ret := m.ctrl.Call(m, "SendRawTransaction", ctx, encodedTx)
|
2018-01-18 16:55:17 +00:00
|
|
|
ret0, _ := ret[0].(common.Hash)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// SendRawTransaction indicates an expected call of SendRawTransaction.
|
|
|
|
func (mr *MockPublicTransactionPoolAPIMockRecorder) SendRawTransaction(ctx, encodedTx any) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-04-13 13:10:37 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRawTransaction", reflect.TypeOf((*MockPublicTransactionPoolAPI)(nil).SendRawTransaction), ctx, encodedTx)
|
2018-01-18 16:55:17 +00:00
|
|
|
}
|