code.vegaprotocol.io/vega@v0.79.0/wallet/api/mocks/mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/wallet/api (interfaces: WalletStore,NetworkStore,Interactor,ConnectionsManager,SpamHandler)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	v1 "code.vegaprotocol.io/vega/protos/vega/commands/v1"
    13  	v10 "code.vegaprotocol.io/vega/protos/vega/wallet/v1"
    14  	api "code.vegaprotocol.io/vega/wallet/api"
    15  	types "code.vegaprotocol.io/vega/wallet/api/node/types"
    16  	network "code.vegaprotocol.io/vega/wallet/network"
    17  	wallet "code.vegaprotocol.io/vega/wallet/wallet"
    18  	gomock "github.com/golang/mock/gomock"
    19  )
    20  
    21  // MockWalletStore is a mock of WalletStore interface.
    22  type MockWalletStore struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockWalletStoreMockRecorder
    25  }
    26  
    27  // MockWalletStoreMockRecorder is the mock recorder for MockWalletStore.
    28  type MockWalletStoreMockRecorder struct {
    29  	mock *MockWalletStore
    30  }
    31  
    32  // NewMockWalletStore creates a new mock instance.
    33  func NewMockWalletStore(ctrl *gomock.Controller) *MockWalletStore {
    34  	mock := &MockWalletStore{ctrl: ctrl}
    35  	mock.recorder = &MockWalletStoreMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockWalletStore) EXPECT() *MockWalletStoreMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // CreateWallet mocks base method.
    45  func (m *MockWalletStore) CreateWallet(arg0 context.Context, arg1 wallet.Wallet, arg2 string) error {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "CreateWallet", arg0, arg1, arg2)
    48  	ret0, _ := ret[0].(error)
    49  	return ret0
    50  }
    51  
    52  // CreateWallet indicates an expected call of CreateWallet.
    53  func (mr *MockWalletStoreMockRecorder) CreateWallet(arg0, arg1, arg2 interface{}) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWallet", reflect.TypeOf((*MockWalletStore)(nil).CreateWallet), arg0, arg1, arg2)
    56  }
    57  
    58  // DeleteWallet mocks base method.
    59  func (m *MockWalletStore) DeleteWallet(arg0 context.Context, arg1 string) error {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "DeleteWallet", arg0, arg1)
    62  	ret0, _ := ret[0].(error)
    63  	return ret0
    64  }
    65  
    66  // DeleteWallet indicates an expected call of DeleteWallet.
    67  func (mr *MockWalletStoreMockRecorder) DeleteWallet(arg0, arg1 interface{}) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWallet", reflect.TypeOf((*MockWalletStore)(nil).DeleteWallet), arg0, arg1)
    70  }
    71  
    72  // GetWallet mocks base method.
    73  func (m *MockWalletStore) GetWallet(arg0 context.Context, arg1 string) (wallet.Wallet, error) {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "GetWallet", arg0, arg1)
    76  	ret0, _ := ret[0].(wallet.Wallet)
    77  	ret1, _ := ret[1].(error)
    78  	return ret0, ret1
    79  }
    80  
    81  // GetWallet indicates an expected call of GetWallet.
    82  func (mr *MockWalletStoreMockRecorder) GetWallet(arg0, arg1 interface{}) *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWallet", reflect.TypeOf((*MockWalletStore)(nil).GetWallet), arg0, arg1)
    85  }
    86  
    87  // GetWalletPath mocks base method.
    88  func (m *MockWalletStore) GetWalletPath(arg0 string) string {
    89  	m.ctrl.T.Helper()
    90  	ret := m.ctrl.Call(m, "GetWalletPath", arg0)
    91  	ret0, _ := ret[0].(string)
    92  	return ret0
    93  }
    94  
    95  // GetWalletPath indicates an expected call of GetWalletPath.
    96  func (mr *MockWalletStoreMockRecorder) GetWalletPath(arg0 interface{}) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWalletPath", reflect.TypeOf((*MockWalletStore)(nil).GetWalletPath), arg0)
    99  }
   100  
   101  // IsWalletAlreadyUnlocked mocks base method.
   102  func (m *MockWalletStore) IsWalletAlreadyUnlocked(arg0 context.Context, arg1 string) (bool, error) {
   103  	m.ctrl.T.Helper()
   104  	ret := m.ctrl.Call(m, "IsWalletAlreadyUnlocked", arg0, arg1)
   105  	ret0, _ := ret[0].(bool)
   106  	ret1, _ := ret[1].(error)
   107  	return ret0, ret1
   108  }
   109  
   110  // IsWalletAlreadyUnlocked indicates an expected call of IsWalletAlreadyUnlocked.
   111  func (mr *MockWalletStoreMockRecorder) IsWalletAlreadyUnlocked(arg0, arg1 interface{}) *gomock.Call {
   112  	mr.mock.ctrl.T.Helper()
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsWalletAlreadyUnlocked", reflect.TypeOf((*MockWalletStore)(nil).IsWalletAlreadyUnlocked), arg0, arg1)
   114  }
   115  
   116  // ListWallets mocks base method.
   117  func (m *MockWalletStore) ListWallets(arg0 context.Context) ([]string, error) {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "ListWallets", arg0)
   120  	ret0, _ := ret[0].([]string)
   121  	ret1, _ := ret[1].(error)
   122  	return ret0, ret1
   123  }
   124  
   125  // ListWallets indicates an expected call of ListWallets.
   126  func (mr *MockWalletStoreMockRecorder) ListWallets(arg0 interface{}) *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWallets", reflect.TypeOf((*MockWalletStore)(nil).ListWallets), arg0)
   129  }
   130  
   131  // LockWallet mocks base method.
   132  func (m *MockWalletStore) LockWallet(arg0 context.Context, arg1 string) error {
   133  	m.ctrl.T.Helper()
   134  	ret := m.ctrl.Call(m, "LockWallet", arg0, arg1)
   135  	ret0, _ := ret[0].(error)
   136  	return ret0
   137  }
   138  
   139  // LockWallet indicates an expected call of LockWallet.
   140  func (mr *MockWalletStoreMockRecorder) LockWallet(arg0, arg1 interface{}) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockWallet", reflect.TypeOf((*MockWalletStore)(nil).LockWallet), arg0, arg1)
   143  }
   144  
   145  // RenameWallet mocks base method.
   146  func (m *MockWalletStore) RenameWallet(arg0 context.Context, arg1, arg2 string) error {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "RenameWallet", arg0, arg1, arg2)
   149  	ret0, _ := ret[0].(error)
   150  	return ret0
   151  }
   152  
   153  // RenameWallet indicates an expected call of RenameWallet.
   154  func (mr *MockWalletStoreMockRecorder) RenameWallet(arg0, arg1, arg2 interface{}) *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenameWallet", reflect.TypeOf((*MockWalletStore)(nil).RenameWallet), arg0, arg1, arg2)
   157  }
   158  
   159  // UnlockWallet mocks base method.
   160  func (m *MockWalletStore) UnlockWallet(arg0 context.Context, arg1, arg2 string) error {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "UnlockWallet", arg0, arg1, arg2)
   163  	ret0, _ := ret[0].(error)
   164  	return ret0
   165  }
   166  
   167  // UnlockWallet indicates an expected call of UnlockWallet.
   168  func (mr *MockWalletStoreMockRecorder) UnlockWallet(arg0, arg1, arg2 interface{}) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnlockWallet", reflect.TypeOf((*MockWalletStore)(nil).UnlockWallet), arg0, arg1, arg2)
   171  }
   172  
   173  // UpdatePassphrase mocks base method.
   174  func (m *MockWalletStore) UpdatePassphrase(arg0 context.Context, arg1, arg2 string) error {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "UpdatePassphrase", arg0, arg1, arg2)
   177  	ret0, _ := ret[0].(error)
   178  	return ret0
   179  }
   180  
   181  // UpdatePassphrase indicates an expected call of UpdatePassphrase.
   182  func (mr *MockWalletStoreMockRecorder) UpdatePassphrase(arg0, arg1, arg2 interface{}) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePassphrase", reflect.TypeOf((*MockWalletStore)(nil).UpdatePassphrase), arg0, arg1, arg2)
   185  }
   186  
   187  // UpdateWallet mocks base method.
   188  func (m *MockWalletStore) UpdateWallet(arg0 context.Context, arg1 wallet.Wallet) error {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "UpdateWallet", arg0, arg1)
   191  	ret0, _ := ret[0].(error)
   192  	return ret0
   193  }
   194  
   195  // UpdateWallet indicates an expected call of UpdateWallet.
   196  func (mr *MockWalletStoreMockRecorder) UpdateWallet(arg0, arg1 interface{}) *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWallet", reflect.TypeOf((*MockWalletStore)(nil).UpdateWallet), arg0, arg1)
   199  }
   200  
   201  // WalletExists mocks base method.
   202  func (m *MockWalletStore) WalletExists(arg0 context.Context, arg1 string) (bool, error) {
   203  	m.ctrl.T.Helper()
   204  	ret := m.ctrl.Call(m, "WalletExists", arg0, arg1)
   205  	ret0, _ := ret[0].(bool)
   206  	ret1, _ := ret[1].(error)
   207  	return ret0, ret1
   208  }
   209  
   210  // WalletExists indicates an expected call of WalletExists.
   211  func (mr *MockWalletStoreMockRecorder) WalletExists(arg0, arg1 interface{}) *gomock.Call {
   212  	mr.mock.ctrl.T.Helper()
   213  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WalletExists", reflect.TypeOf((*MockWalletStore)(nil).WalletExists), arg0, arg1)
   214  }
   215  
   216  // MockNetworkStore is a mock of NetworkStore interface.
   217  type MockNetworkStore struct {
   218  	ctrl     *gomock.Controller
   219  	recorder *MockNetworkStoreMockRecorder
   220  }
   221  
   222  // MockNetworkStoreMockRecorder is the mock recorder for MockNetworkStore.
   223  type MockNetworkStoreMockRecorder struct {
   224  	mock *MockNetworkStore
   225  }
   226  
   227  // NewMockNetworkStore creates a new mock instance.
   228  func NewMockNetworkStore(ctrl *gomock.Controller) *MockNetworkStore {
   229  	mock := &MockNetworkStore{ctrl: ctrl}
   230  	mock.recorder = &MockNetworkStoreMockRecorder{mock}
   231  	return mock
   232  }
   233  
   234  // EXPECT returns an object that allows the caller to indicate expected use.
   235  func (m *MockNetworkStore) EXPECT() *MockNetworkStoreMockRecorder {
   236  	return m.recorder
   237  }
   238  
   239  // DeleteNetwork mocks base method.
   240  func (m *MockNetworkStore) DeleteNetwork(arg0 string) error {
   241  	m.ctrl.T.Helper()
   242  	ret := m.ctrl.Call(m, "DeleteNetwork", arg0)
   243  	ret0, _ := ret[0].(error)
   244  	return ret0
   245  }
   246  
   247  // DeleteNetwork indicates an expected call of DeleteNetwork.
   248  func (mr *MockNetworkStoreMockRecorder) DeleteNetwork(arg0 interface{}) *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNetwork", reflect.TypeOf((*MockNetworkStore)(nil).DeleteNetwork), arg0)
   251  }
   252  
   253  // GetNetwork mocks base method.
   254  func (m *MockNetworkStore) GetNetwork(arg0 string) (*network.Network, error) {
   255  	m.ctrl.T.Helper()
   256  	ret := m.ctrl.Call(m, "GetNetwork", arg0)
   257  	ret0, _ := ret[0].(*network.Network)
   258  	ret1, _ := ret[1].(error)
   259  	return ret0, ret1
   260  }
   261  
   262  // GetNetwork indicates an expected call of GetNetwork.
   263  func (mr *MockNetworkStoreMockRecorder) GetNetwork(arg0 interface{}) *gomock.Call {
   264  	mr.mock.ctrl.T.Helper()
   265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetwork", reflect.TypeOf((*MockNetworkStore)(nil).GetNetwork), arg0)
   266  }
   267  
   268  // GetNetworkPath mocks base method.
   269  func (m *MockNetworkStore) GetNetworkPath(arg0 string) string {
   270  	m.ctrl.T.Helper()
   271  	ret := m.ctrl.Call(m, "GetNetworkPath", arg0)
   272  	ret0, _ := ret[0].(string)
   273  	return ret0
   274  }
   275  
   276  // GetNetworkPath indicates an expected call of GetNetworkPath.
   277  func (mr *MockNetworkStoreMockRecorder) GetNetworkPath(arg0 interface{}) *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetworkPath", reflect.TypeOf((*MockNetworkStore)(nil).GetNetworkPath), arg0)
   280  }
   281  
   282  // ListNetworks mocks base method.
   283  func (m *MockNetworkStore) ListNetworks() ([]string, error) {
   284  	m.ctrl.T.Helper()
   285  	ret := m.ctrl.Call(m, "ListNetworks")
   286  	ret0, _ := ret[0].([]string)
   287  	ret1, _ := ret[1].(error)
   288  	return ret0, ret1
   289  }
   290  
   291  // ListNetworks indicates an expected call of ListNetworks.
   292  func (mr *MockNetworkStoreMockRecorder) ListNetworks() *gomock.Call {
   293  	mr.mock.ctrl.T.Helper()
   294  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNetworks", reflect.TypeOf((*MockNetworkStore)(nil).ListNetworks))
   295  }
   296  
   297  // NetworkExists mocks base method.
   298  func (m *MockNetworkStore) NetworkExists(arg0 string) (bool, error) {
   299  	m.ctrl.T.Helper()
   300  	ret := m.ctrl.Call(m, "NetworkExists", arg0)
   301  	ret0, _ := ret[0].(bool)
   302  	ret1, _ := ret[1].(error)
   303  	return ret0, ret1
   304  }
   305  
   306  // NetworkExists indicates an expected call of NetworkExists.
   307  func (mr *MockNetworkStoreMockRecorder) NetworkExists(arg0 interface{}) *gomock.Call {
   308  	mr.mock.ctrl.T.Helper()
   309  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkExists", reflect.TypeOf((*MockNetworkStore)(nil).NetworkExists), arg0)
   310  }
   311  
   312  // RenameNetwork mocks base method.
   313  func (m *MockNetworkStore) RenameNetwork(arg0, arg1 string) error {
   314  	m.ctrl.T.Helper()
   315  	ret := m.ctrl.Call(m, "RenameNetwork", arg0, arg1)
   316  	ret0, _ := ret[0].(error)
   317  	return ret0
   318  }
   319  
   320  // RenameNetwork indicates an expected call of RenameNetwork.
   321  func (mr *MockNetworkStoreMockRecorder) RenameNetwork(arg0, arg1 interface{}) *gomock.Call {
   322  	mr.mock.ctrl.T.Helper()
   323  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenameNetwork", reflect.TypeOf((*MockNetworkStore)(nil).RenameNetwork), arg0, arg1)
   324  }
   325  
   326  // SaveNetwork mocks base method.
   327  func (m *MockNetworkStore) SaveNetwork(arg0 *network.Network) error {
   328  	m.ctrl.T.Helper()
   329  	ret := m.ctrl.Call(m, "SaveNetwork", arg0)
   330  	ret0, _ := ret[0].(error)
   331  	return ret0
   332  }
   333  
   334  // SaveNetwork indicates an expected call of SaveNetwork.
   335  func (mr *MockNetworkStoreMockRecorder) SaveNetwork(arg0 interface{}) *gomock.Call {
   336  	mr.mock.ctrl.T.Helper()
   337  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveNetwork", reflect.TypeOf((*MockNetworkStore)(nil).SaveNetwork), arg0)
   338  }
   339  
   340  // MockInteractor is a mock of Interactor interface.
   341  type MockInteractor struct {
   342  	ctrl     *gomock.Controller
   343  	recorder *MockInteractorMockRecorder
   344  }
   345  
   346  // MockInteractorMockRecorder is the mock recorder for MockInteractor.
   347  type MockInteractorMockRecorder struct {
   348  	mock *MockInteractor
   349  }
   350  
   351  // NewMockInteractor creates a new mock instance.
   352  func NewMockInteractor(ctrl *gomock.Controller) *MockInteractor {
   353  	mock := &MockInteractor{ctrl: ctrl}
   354  	mock.recorder = &MockInteractorMockRecorder{mock}
   355  	return mock
   356  }
   357  
   358  // EXPECT returns an object that allows the caller to indicate expected use.
   359  func (m *MockInteractor) EXPECT() *MockInteractorMockRecorder {
   360  	return m.recorder
   361  }
   362  
   363  // Log mocks base method.
   364  func (m *MockInteractor) Log(arg0 context.Context, arg1 string, arg2 api.LogType, arg3 string) {
   365  	m.ctrl.T.Helper()
   366  	m.ctrl.Call(m, "Log", arg0, arg1, arg2, arg3)
   367  }
   368  
   369  // Log indicates an expected call of Log.
   370  func (mr *MockInteractorMockRecorder) Log(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   371  	mr.mock.ctrl.T.Helper()
   372  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Log", reflect.TypeOf((*MockInteractor)(nil).Log), arg0, arg1, arg2, arg3)
   373  }
   374  
   375  // NotifyError mocks base method.
   376  func (m *MockInteractor) NotifyError(arg0 context.Context, arg1 string, arg2 api.ErrorType, arg3 error) {
   377  	m.ctrl.T.Helper()
   378  	m.ctrl.Call(m, "NotifyError", arg0, arg1, arg2, arg3)
   379  }
   380  
   381  // NotifyError indicates an expected call of NotifyError.
   382  func (mr *MockInteractorMockRecorder) NotifyError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   383  	mr.mock.ctrl.T.Helper()
   384  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyError", reflect.TypeOf((*MockInteractor)(nil).NotifyError), arg0, arg1, arg2, arg3)
   385  }
   386  
   387  // NotifyFailedTransaction mocks base method.
   388  func (m *MockInteractor) NotifyFailedTransaction(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4 string, arg5 error, arg6 time.Time, arg7 string) {
   389  	m.ctrl.T.Helper()
   390  	m.ctrl.Call(m, "NotifyFailedTransaction", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   391  }
   392  
   393  // NotifyFailedTransaction indicates an expected call of NotifyFailedTransaction.
   394  func (mr *MockInteractorMockRecorder) NotifyFailedTransaction(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
   395  	mr.mock.ctrl.T.Helper()
   396  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyFailedTransaction", reflect.TypeOf((*MockInteractor)(nil).NotifyFailedTransaction), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   397  }
   398  
   399  // NotifyInteractionSessionBegan mocks base method.
   400  func (m *MockInteractor) NotifyInteractionSessionBegan(arg0 context.Context, arg1 string, arg2 api.WorkflowType, arg3 byte) error {
   401  	m.ctrl.T.Helper()
   402  	ret := m.ctrl.Call(m, "NotifyInteractionSessionBegan", arg0, arg1, arg2, arg3)
   403  	ret0, _ := ret[0].(error)
   404  	return ret0
   405  }
   406  
   407  // NotifyInteractionSessionBegan indicates an expected call of NotifyInteractionSessionBegan.
   408  func (mr *MockInteractorMockRecorder) NotifyInteractionSessionBegan(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   409  	mr.mock.ctrl.T.Helper()
   410  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyInteractionSessionBegan", reflect.TypeOf((*MockInteractor)(nil).NotifyInteractionSessionBegan), arg0, arg1, arg2, arg3)
   411  }
   412  
   413  // NotifyInteractionSessionEnded mocks base method.
   414  func (m *MockInteractor) NotifyInteractionSessionEnded(arg0 context.Context, arg1 string) {
   415  	m.ctrl.T.Helper()
   416  	m.ctrl.Call(m, "NotifyInteractionSessionEnded", arg0, arg1)
   417  }
   418  
   419  // NotifyInteractionSessionEnded indicates an expected call of NotifyInteractionSessionEnded.
   420  func (mr *MockInteractorMockRecorder) NotifyInteractionSessionEnded(arg0, arg1 interface{}) *gomock.Call {
   421  	mr.mock.ctrl.T.Helper()
   422  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyInteractionSessionEnded", reflect.TypeOf((*MockInteractor)(nil).NotifyInteractionSessionEnded), arg0, arg1)
   423  }
   424  
   425  // NotifySuccessfulRequest mocks base method.
   426  func (m *MockInteractor) NotifySuccessfulRequest(arg0 context.Context, arg1 string, arg2 byte, arg3 string) {
   427  	m.ctrl.T.Helper()
   428  	m.ctrl.Call(m, "NotifySuccessfulRequest", arg0, arg1, arg2, arg3)
   429  }
   430  
   431  // NotifySuccessfulRequest indicates an expected call of NotifySuccessfulRequest.
   432  func (mr *MockInteractorMockRecorder) NotifySuccessfulRequest(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   433  	mr.mock.ctrl.T.Helper()
   434  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifySuccessfulRequest", reflect.TypeOf((*MockInteractor)(nil).NotifySuccessfulRequest), arg0, arg1, arg2, arg3)
   435  }
   436  
   437  // NotifySuccessfulTransaction mocks base method.
   438  func (m *MockInteractor) NotifySuccessfulTransaction(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4, arg5 string, arg6 time.Time, arg7 string) {
   439  	m.ctrl.T.Helper()
   440  	m.ctrl.Call(m, "NotifySuccessfulTransaction", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   441  }
   442  
   443  // NotifySuccessfulTransaction indicates an expected call of NotifySuccessfulTransaction.
   444  func (mr *MockInteractorMockRecorder) NotifySuccessfulTransaction(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
   445  	mr.mock.ctrl.T.Helper()
   446  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifySuccessfulTransaction", reflect.TypeOf((*MockInteractor)(nil).NotifySuccessfulTransaction), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   447  }
   448  
   449  // RequestPassphrase mocks base method.
   450  func (m *MockInteractor) RequestPassphrase(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4 string) (string, error) {
   451  	m.ctrl.T.Helper()
   452  	ret := m.ctrl.Call(m, "RequestPassphrase", arg0, arg1, arg2, arg3, arg4)
   453  	ret0, _ := ret[0].(string)
   454  	ret1, _ := ret[1].(error)
   455  	return ret0, ret1
   456  }
   457  
   458  // RequestPassphrase indicates an expected call of RequestPassphrase.
   459  func (mr *MockInteractorMockRecorder) RequestPassphrase(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   460  	mr.mock.ctrl.T.Helper()
   461  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPassphrase", reflect.TypeOf((*MockInteractor)(nil).RequestPassphrase), arg0, arg1, arg2, arg3, arg4)
   462  }
   463  
   464  // RequestPermissionsReview mocks base method.
   465  func (m *MockInteractor) RequestPermissionsReview(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4 string, arg5 map[string]string) (bool, error) {
   466  	m.ctrl.T.Helper()
   467  	ret := m.ctrl.Call(m, "RequestPermissionsReview", arg0, arg1, arg2, arg3, arg4, arg5)
   468  	ret0, _ := ret[0].(bool)
   469  	ret1, _ := ret[1].(error)
   470  	return ret0, ret1
   471  }
   472  
   473  // RequestPermissionsReview indicates an expected call of RequestPermissionsReview.
   474  func (mr *MockInteractorMockRecorder) RequestPermissionsReview(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
   475  	mr.mock.ctrl.T.Helper()
   476  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPermissionsReview", reflect.TypeOf((*MockInteractor)(nil).RequestPermissionsReview), arg0, arg1, arg2, arg3, arg4, arg5)
   477  }
   478  
   479  // RequestTransactionReviewForChecking mocks base method.
   480  func (m *MockInteractor) RequestTransactionReviewForChecking(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4, arg5, arg6 string, arg7 time.Time) (bool, error) {
   481  	m.ctrl.T.Helper()
   482  	ret := m.ctrl.Call(m, "RequestTransactionReviewForChecking", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   483  	ret0, _ := ret[0].(bool)
   484  	ret1, _ := ret[1].(error)
   485  	return ret0, ret1
   486  }
   487  
   488  // RequestTransactionReviewForChecking indicates an expected call of RequestTransactionReviewForChecking.
   489  func (mr *MockInteractorMockRecorder) RequestTransactionReviewForChecking(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
   490  	mr.mock.ctrl.T.Helper()
   491  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestTransactionReviewForChecking", reflect.TypeOf((*MockInteractor)(nil).RequestTransactionReviewForChecking), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   492  }
   493  
   494  // RequestTransactionReviewForSending mocks base method.
   495  func (m *MockInteractor) RequestTransactionReviewForSending(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4, arg5, arg6 string, arg7 time.Time) (bool, error) {
   496  	m.ctrl.T.Helper()
   497  	ret := m.ctrl.Call(m, "RequestTransactionReviewForSending", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   498  	ret0, _ := ret[0].(bool)
   499  	ret1, _ := ret[1].(error)
   500  	return ret0, ret1
   501  }
   502  
   503  // RequestTransactionReviewForSending indicates an expected call of RequestTransactionReviewForSending.
   504  func (mr *MockInteractorMockRecorder) RequestTransactionReviewForSending(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
   505  	mr.mock.ctrl.T.Helper()
   506  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestTransactionReviewForSending", reflect.TypeOf((*MockInteractor)(nil).RequestTransactionReviewForSending), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   507  }
   508  
   509  // RequestTransactionReviewForSigning mocks base method.
   510  func (m *MockInteractor) RequestTransactionReviewForSigning(arg0 context.Context, arg1 string, arg2 byte, arg3, arg4, arg5, arg6 string, arg7 time.Time) (bool, error) {
   511  	m.ctrl.T.Helper()
   512  	ret := m.ctrl.Call(m, "RequestTransactionReviewForSigning", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   513  	ret0, _ := ret[0].(bool)
   514  	ret1, _ := ret[1].(error)
   515  	return ret0, ret1
   516  }
   517  
   518  // RequestTransactionReviewForSigning indicates an expected call of RequestTransactionReviewForSigning.
   519  func (mr *MockInteractorMockRecorder) RequestTransactionReviewForSigning(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
   520  	mr.mock.ctrl.T.Helper()
   521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestTransactionReviewForSigning", reflect.TypeOf((*MockInteractor)(nil).RequestTransactionReviewForSigning), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   522  }
   523  
   524  // RequestWalletConnectionReview mocks base method.
   525  func (m *MockInteractor) RequestWalletConnectionReview(arg0 context.Context, arg1 string, arg2 byte, arg3 string) (string, error) {
   526  	m.ctrl.T.Helper()
   527  	ret := m.ctrl.Call(m, "RequestWalletConnectionReview", arg0, arg1, arg2, arg3)
   528  	ret0, _ := ret[0].(string)
   529  	ret1, _ := ret[1].(error)
   530  	return ret0, ret1
   531  }
   532  
   533  // RequestWalletConnectionReview indicates an expected call of RequestWalletConnectionReview.
   534  func (mr *MockInteractorMockRecorder) RequestWalletConnectionReview(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   535  	mr.mock.ctrl.T.Helper()
   536  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWalletConnectionReview", reflect.TypeOf((*MockInteractor)(nil).RequestWalletConnectionReview), arg0, arg1, arg2, arg3)
   537  }
   538  
   539  // RequestWalletSelection mocks base method.
   540  func (m *MockInteractor) RequestWalletSelection(arg0 context.Context, arg1 string, arg2 byte, arg3 string, arg4 []string) (string, error) {
   541  	m.ctrl.T.Helper()
   542  	ret := m.ctrl.Call(m, "RequestWalletSelection", arg0, arg1, arg2, arg3, arg4)
   543  	ret0, _ := ret[0].(string)
   544  	ret1, _ := ret[1].(error)
   545  	return ret0, ret1
   546  }
   547  
   548  // RequestWalletSelection indicates an expected call of RequestWalletSelection.
   549  func (mr *MockInteractorMockRecorder) RequestWalletSelection(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   550  	mr.mock.ctrl.T.Helper()
   551  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWalletSelection", reflect.TypeOf((*MockInteractor)(nil).RequestWalletSelection), arg0, arg1, arg2, arg3, arg4)
   552  }
   553  
   554  // MockConnectionsManager is a mock of ConnectionsManager interface.
   555  type MockConnectionsManager struct {
   556  	ctrl     *gomock.Controller
   557  	recorder *MockConnectionsManagerMockRecorder
   558  }
   559  
   560  // MockConnectionsManagerMockRecorder is the mock recorder for MockConnectionsManager.
   561  type MockConnectionsManagerMockRecorder struct {
   562  	mock *MockConnectionsManager
   563  }
   564  
   565  // NewMockConnectionsManager creates a new mock instance.
   566  func NewMockConnectionsManager(ctrl *gomock.Controller) *MockConnectionsManager {
   567  	mock := &MockConnectionsManager{ctrl: ctrl}
   568  	mock.recorder = &MockConnectionsManagerMockRecorder{mock}
   569  	return mock
   570  }
   571  
   572  // EXPECT returns an object that allows the caller to indicate expected use.
   573  func (m *MockConnectionsManager) EXPECT() *MockConnectionsManagerMockRecorder {
   574  	return m.recorder
   575  }
   576  
   577  // EndSessionConnection mocks base method.
   578  func (m *MockConnectionsManager) EndSessionConnection(arg0, arg1 string) {
   579  	m.ctrl.T.Helper()
   580  	m.ctrl.Call(m, "EndSessionConnection", arg0, arg1)
   581  }
   582  
   583  // EndSessionConnection indicates an expected call of EndSessionConnection.
   584  func (mr *MockConnectionsManagerMockRecorder) EndSessionConnection(arg0, arg1 interface{}) *gomock.Call {
   585  	mr.mock.ctrl.T.Helper()
   586  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndSessionConnection", reflect.TypeOf((*MockConnectionsManager)(nil).EndSessionConnection), arg0, arg1)
   587  }
   588  
   589  // ListSessionConnections mocks base method.
   590  func (m *MockConnectionsManager) ListSessionConnections() []api.Connection {
   591  	m.ctrl.T.Helper()
   592  	ret := m.ctrl.Call(m, "ListSessionConnections")
   593  	ret0, _ := ret[0].([]api.Connection)
   594  	return ret0
   595  }
   596  
   597  // ListSessionConnections indicates an expected call of ListSessionConnections.
   598  func (mr *MockConnectionsManagerMockRecorder) ListSessionConnections() *gomock.Call {
   599  	mr.mock.ctrl.T.Helper()
   600  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessionConnections", reflect.TypeOf((*MockConnectionsManager)(nil).ListSessionConnections))
   601  }
   602  
   603  // MockSpamHandler is a mock of SpamHandler interface.
   604  type MockSpamHandler struct {
   605  	ctrl     *gomock.Controller
   606  	recorder *MockSpamHandlerMockRecorder
   607  }
   608  
   609  // MockSpamHandlerMockRecorder is the mock recorder for MockSpamHandler.
   610  type MockSpamHandlerMockRecorder struct {
   611  	mock *MockSpamHandler
   612  }
   613  
   614  // NewMockSpamHandler creates a new mock instance.
   615  func NewMockSpamHandler(ctrl *gomock.Controller) *MockSpamHandler {
   616  	mock := &MockSpamHandler{ctrl: ctrl}
   617  	mock.recorder = &MockSpamHandlerMockRecorder{mock}
   618  	return mock
   619  }
   620  
   621  // EXPECT returns an object that allows the caller to indicate expected use.
   622  func (m *MockSpamHandler) EXPECT() *MockSpamHandlerMockRecorder {
   623  	return m.recorder
   624  }
   625  
   626  // CheckSubmission mocks base method.
   627  func (m *MockSpamHandler) CheckSubmission(arg0 *v10.SubmitTransactionRequest, arg1 *types.SpamStatistics) error {
   628  	m.ctrl.T.Helper()
   629  	ret := m.ctrl.Call(m, "CheckSubmission", arg0, arg1)
   630  	ret0, _ := ret[0].(error)
   631  	return ret0
   632  }
   633  
   634  // CheckSubmission indicates an expected call of CheckSubmission.
   635  func (mr *MockSpamHandlerMockRecorder) CheckSubmission(arg0, arg1 interface{}) *gomock.Call {
   636  	mr.mock.ctrl.T.Helper()
   637  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSubmission", reflect.TypeOf((*MockSpamHandler)(nil).CheckSubmission), arg0, arg1)
   638  }
   639  
   640  // GenerateProofOfWork mocks base method.
   641  func (m *MockSpamHandler) GenerateProofOfWork(arg0 string, arg1 *types.SpamStatistics) (*v1.ProofOfWork, error) {
   642  	m.ctrl.T.Helper()
   643  	ret := m.ctrl.Call(m, "GenerateProofOfWork", arg0, arg1)
   644  	ret0, _ := ret[0].(*v1.ProofOfWork)
   645  	ret1, _ := ret[1].(error)
   646  	return ret0, ret1
   647  }
   648  
   649  // GenerateProofOfWork indicates an expected call of GenerateProofOfWork.
   650  func (mr *MockSpamHandlerMockRecorder) GenerateProofOfWork(arg0, arg1 interface{}) *gomock.Call {
   651  	mr.mock.ctrl.T.Helper()
   652  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateProofOfWork", reflect.TypeOf((*MockSpamHandler)(nil).GenerateProofOfWork), arg0, arg1)
   653  }