github.com/status-im/status-go@v1.1.0/transactions/mock_transactor/transactor.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: transactions/transactor.go
     3  
     4  // Package mock_transactor is a generated GoMock package.
     5  package mock_transactor
     6  
     7  import (
     8  	big "math/big"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  
    13  	common "github.com/ethereum/go-ethereum/common"
    14  	types "github.com/ethereum/go-ethereum/core/types"
    15  	account "github.com/status-im/status-go/account"
    16  	types0 "github.com/status-im/status-go/eth-node/types"
    17  	params "github.com/status-im/status-go/params"
    18  	rpc "github.com/status-im/status-go/rpc"
    19  	common0 "github.com/status-im/status-go/services/wallet/common"
    20  	transactions "github.com/status-im/status-go/transactions"
    21  )
    22  
    23  // MockTransactorIface is a mock of TransactorIface interface.
    24  type MockTransactorIface struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockTransactorIfaceMockRecorder
    27  }
    28  
    29  // MockTransactorIfaceMockRecorder is the mock recorder for MockTransactorIface.
    30  type MockTransactorIfaceMockRecorder struct {
    31  	mock *MockTransactorIface
    32  }
    33  
    34  // NewMockTransactorIface creates a new mock instance.
    35  func NewMockTransactorIface(ctrl *gomock.Controller) *MockTransactorIface {
    36  	mock := &MockTransactorIface{ctrl: ctrl}
    37  	mock.recorder = &MockTransactorIfaceMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockTransactorIface) EXPECT() *MockTransactorIfaceMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // AddSignatureToTransaction mocks base method.
    47  func (m *MockTransactorIface) AddSignatureToTransaction(chainID uint64, tx *types.Transaction, sig []byte) (*types.Transaction, error) {
    48  	m.ctrl.T.Helper()
    49  	ret := m.ctrl.Call(m, "AddSignatureToTransaction", chainID, tx, sig)
    50  	ret0, _ := ret[0].(*types.Transaction)
    51  	ret1, _ := ret[1].(error)
    52  	return ret0, ret1
    53  }
    54  
    55  // AddSignatureToTransaction indicates an expected call of AddSignatureToTransaction.
    56  func (mr *MockTransactorIfaceMockRecorder) AddSignatureToTransaction(chainID, tx, sig interface{}) *gomock.Call {
    57  	mr.mock.ctrl.T.Helper()
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSignatureToTransaction", reflect.TypeOf((*MockTransactorIface)(nil).AddSignatureToTransaction), chainID, tx, sig)
    59  }
    60  
    61  // BuildTransactionWithSignature mocks base method.
    62  func (m *MockTransactorIface) BuildTransactionWithSignature(chainID uint64, args transactions.SendTxArgs, sig []byte) (*types.Transaction, error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "BuildTransactionWithSignature", chainID, args, sig)
    65  	ret0, _ := ret[0].(*types.Transaction)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // BuildTransactionWithSignature indicates an expected call of BuildTransactionWithSignature.
    71  func (mr *MockTransactorIfaceMockRecorder) BuildTransactionWithSignature(chainID, args, sig interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildTransactionWithSignature", reflect.TypeOf((*MockTransactorIface)(nil).BuildTransactionWithSignature), chainID, args, sig)
    74  }
    75  
    76  // EstimateGas mocks base method.
    77  func (m *MockTransactorIface) EstimateGas(network *params.Network, from, to common.Address, value *big.Int, input []byte) (uint64, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "EstimateGas", network, from, to, value, input)
    80  	ret0, _ := ret[0].(uint64)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // EstimateGas indicates an expected call of EstimateGas.
    86  func (mr *MockTransactorIfaceMockRecorder) EstimateGas(network, from, to, value, input interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGas", reflect.TypeOf((*MockTransactorIface)(nil).EstimateGas), network, from, to, value, input)
    89  }
    90  
    91  // NextNonce mocks base method.
    92  func (m *MockTransactorIface) NextNonce(rpcClient rpc.ClientInterface, chainID uint64, from types0.Address) (uint64, error) {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "NextNonce", rpcClient, chainID, from)
    95  	ret0, _ := ret[0].(uint64)
    96  	ret1, _ := ret[1].(error)
    97  	return ret0, ret1
    98  }
    99  
   100  // NextNonce indicates an expected call of NextNonce.
   101  func (mr *MockTransactorIfaceMockRecorder) NextNonce(rpcClient, chainID, from interface{}) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextNonce", reflect.TypeOf((*MockTransactorIface)(nil).NextNonce), rpcClient, chainID, from)
   104  }
   105  
   106  // SendRawTransaction mocks base method.
   107  func (m *MockTransactorIface) SendRawTransaction(chainID uint64, rawTx string) error {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "SendRawTransaction", chainID, rawTx)
   110  	ret0, _ := ret[0].(error)
   111  	return ret0
   112  }
   113  
   114  // SendRawTransaction indicates an expected call of SendRawTransaction.
   115  func (mr *MockTransactorIfaceMockRecorder) SendRawTransaction(chainID, rawTx interface{}) *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRawTransaction", reflect.TypeOf((*MockTransactorIface)(nil).SendRawTransaction), chainID, rawTx)
   118  }
   119  
   120  // SendTransaction mocks base method.
   121  func (m *MockTransactorIface) SendTransaction(sendArgs transactions.SendTxArgs, verifiedAccount *account.SelectedExtKey, lastUsedNonce int64) (types0.Hash, uint64, error) {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "SendTransaction", sendArgs, verifiedAccount, lastUsedNonce)
   124  	ret0, _ := ret[0].(types0.Hash)
   125  	ret1, _ := ret[1].(uint64)
   126  	ret2, _ := ret[2].(error)
   127  	return ret0, ret1, ret2
   128  }
   129  
   130  // SendTransaction indicates an expected call of SendTransaction.
   131  func (mr *MockTransactorIfaceMockRecorder) SendTransaction(sendArgs, verifiedAccount, lastUsedNonce interface{}) *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransaction", reflect.TypeOf((*MockTransactorIface)(nil).SendTransaction), sendArgs, verifiedAccount, lastUsedNonce)
   134  }
   135  
   136  // SendTransactionWithChainID mocks base method.
   137  func (m *MockTransactorIface) SendTransactionWithChainID(chainID uint64, sendArgs transactions.SendTxArgs, lastUsedNonce int64, verifiedAccount *account.SelectedExtKey) (types0.Hash, uint64, error) {
   138  	m.ctrl.T.Helper()
   139  	ret := m.ctrl.Call(m, "SendTransactionWithChainID", chainID, sendArgs, lastUsedNonce, verifiedAccount)
   140  	ret0, _ := ret[0].(types0.Hash)
   141  	ret1, _ := ret[1].(uint64)
   142  	ret2, _ := ret[2].(error)
   143  	return ret0, ret1, ret2
   144  }
   145  
   146  // SendTransactionWithChainID indicates an expected call of SendTransactionWithChainID.
   147  func (mr *MockTransactorIfaceMockRecorder) SendTransactionWithChainID(chainID, sendArgs, lastUsedNonce, verifiedAccount interface{}) *gomock.Call {
   148  	mr.mock.ctrl.T.Helper()
   149  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransactionWithChainID", reflect.TypeOf((*MockTransactorIface)(nil).SendTransactionWithChainID), chainID, sendArgs, lastUsedNonce, verifiedAccount)
   150  }
   151  
   152  // SendTransactionWithSignature mocks base method.
   153  func (m *MockTransactorIface) SendTransactionWithSignature(from common.Address, symbol string, multiTransactionID common0.MultiTransactionIDType, tx *types.Transaction) (types0.Hash, error) {
   154  	m.ctrl.T.Helper()
   155  	ret := m.ctrl.Call(m, "SendTransactionWithSignature", from, symbol, multiTransactionID, tx)
   156  	ret0, _ := ret[0].(types0.Hash)
   157  	ret1, _ := ret[1].(error)
   158  	return ret0, ret1
   159  }
   160  
   161  // SendTransactionWithSignature indicates an expected call of SendTransactionWithSignature.
   162  func (mr *MockTransactorIfaceMockRecorder) SendTransactionWithSignature(from, symbol, multiTransactionID, tx interface{}) *gomock.Call {
   163  	mr.mock.ctrl.T.Helper()
   164  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransactionWithSignature", reflect.TypeOf((*MockTransactorIface)(nil).SendTransactionWithSignature), from, symbol, multiTransactionID, tx)
   165  }
   166  
   167  // StoreAndTrackPendingTx mocks base method.
   168  func (m *MockTransactorIface) StoreAndTrackPendingTx(from common.Address, symbol string, chainID uint64, multiTransactionID common0.MultiTransactionIDType, tx *types.Transaction) error {
   169  	m.ctrl.T.Helper()
   170  	ret := m.ctrl.Call(m, "StoreAndTrackPendingTx", from, symbol, chainID, multiTransactionID, tx)
   171  	ret0, _ := ret[0].(error)
   172  	return ret0
   173  }
   174  
   175  // StoreAndTrackPendingTx indicates an expected call of StoreAndTrackPendingTx.
   176  func (mr *MockTransactorIfaceMockRecorder) StoreAndTrackPendingTx(from, symbol, chainID, multiTransactionID, tx interface{}) *gomock.Call {
   177  	mr.mock.ctrl.T.Helper()
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreAndTrackPendingTx", reflect.TypeOf((*MockTransactorIface)(nil).StoreAndTrackPendingTx), from, symbol, chainID, multiTransactionID, tx)
   179  }
   180  
   181  // ValidateAndBuildTransaction mocks base method.
   182  func (m *MockTransactorIface) ValidateAndBuildTransaction(chainID uint64, sendArgs transactions.SendTxArgs, lastUsedNonce int64) (*types.Transaction, uint64, error) {
   183  	m.ctrl.T.Helper()
   184  	ret := m.ctrl.Call(m, "ValidateAndBuildTransaction", chainID, sendArgs, lastUsedNonce)
   185  	ret0, _ := ret[0].(*types.Transaction)
   186  	ret1, _ := ret[1].(uint64)
   187  	ret2, _ := ret[2].(error)
   188  	return ret0, ret1, ret2
   189  }
   190  
   191  // ValidateAndBuildTransaction indicates an expected call of ValidateAndBuildTransaction.
   192  func (mr *MockTransactorIfaceMockRecorder) ValidateAndBuildTransaction(chainID, sendArgs, lastUsedNonce interface{}) *gomock.Call {
   193  	mr.mock.ctrl.T.Helper()
   194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAndBuildTransaction", reflect.TypeOf((*MockTransactorIface)(nil).ValidateAndBuildTransaction), chainID, sendArgs, lastUsedNonce)
   195  }