github.com/0chain/gosdk@v1.17.11/zcncore/mocks/TransactionScheme.go (about)

     1  // Code generated by mockery v2.28.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	transaction "github.com/0chain/gosdk/core/transaction"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	zcncore "github.com/0chain/gosdk/zcncore"
    10  )
    11  
    12  // TransactionScheme is an autogenerated mock type for the TransactionScheme type
    13  type TransactionScheme struct {
    14  	mock.Mock
    15  }
    16  
    17  // AddHardfork provides a mock function with given fields: ip
    18  func (_m *TransactionScheme) AddHardfork(ip *zcncore.InputMap) error {
    19  	ret := _m.Called(ip)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
    23  		r0 = rf(ip)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // CancelAllocation provides a mock function with given fields: allocID
    32  func (_m *TransactionScheme) CancelAllocation(allocID string) error {
    33  	ret := _m.Called(allocID)
    34  
    35  	var r0 error
    36  	if rf, ok := ret.Get(0).(func(string) error); ok {
    37  		r0 = rf(allocID)
    38  	} else {
    39  		r0 = ret.Error(0)
    40  	}
    41  
    42  	return r0
    43  }
    44  
    45  // CreateAllocation provides a mock function with given fields: car, lock
    46  func (_m *TransactionScheme) CreateAllocation(car *zcncore.CreateAllocationRequest, lock uint64) error {
    47  	ret := _m.Called(car, lock)
    48  
    49  	var r0 error
    50  	if rf, ok := ret.Get(0).(func(*zcncore.CreateAllocationRequest, uint64) error); ok {
    51  		r0 = rf(car, lock)
    52  	} else {
    53  		r0 = ret.Error(0)
    54  	}
    55  
    56  	return r0
    57  }
    58  
    59  // CreateReadPool provides a mock function with given fields:
    60  func (_m *TransactionScheme) CreateReadPool() error {
    61  	ret := _m.Called()
    62  
    63  	var r0 error
    64  	if rf, ok := ret.Get(0).(func() error); ok {
    65  		r0 = rf()
    66  	} else {
    67  		r0 = ret.Error(0)
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  // ExecuteFaucetSCWallet provides a mock function with given fields: walletStr, methodName, input
    74  func (_m *TransactionScheme) ExecuteFaucetSCWallet(walletStr string, methodName string, input []byte) error {
    75  	ret := _m.Called(walletStr, methodName, input)
    76  
    77  	var r0 error
    78  	if rf, ok := ret.Get(0).(func(string, string, []byte) error); ok {
    79  		r0 = rf(walletStr, methodName, input)
    80  	} else {
    81  		r0 = ret.Error(0)
    82  	}
    83  
    84  	return r0
    85  }
    86  
    87  // ExecuteSmartContract provides a mock function with given fields: address, methodName, input, val, feeOpts
    88  func (_m *TransactionScheme) ExecuteSmartContract(address string, methodName string, input interface{}, val uint64, feeOpts ...zcncore.FeeOption) (*transaction.Transaction, error) {
    89  	_va := make([]interface{}, len(feeOpts))
    90  	for _i := range feeOpts {
    91  		_va[_i] = feeOpts[_i]
    92  	}
    93  	var _ca []interface{}
    94  	_ca = append(_ca, address, methodName, input, val)
    95  	_ca = append(_ca, _va...)
    96  	ret := _m.Called(_ca...)
    97  
    98  	var r0 *transaction.Transaction
    99  	var r1 error
   100  	if rf, ok := ret.Get(0).(func(string, string, interface{}, uint64, ...zcncore.FeeOption) (*transaction.Transaction, error)); ok {
   101  		return rf(address, methodName, input, val, feeOpts...)
   102  	}
   103  	if rf, ok := ret.Get(0).(func(string, string, interface{}, uint64, ...zcncore.FeeOption) *transaction.Transaction); ok {
   104  		r0 = rf(address, methodName, input, val, feeOpts...)
   105  	} else {
   106  		if ret.Get(0) != nil {
   107  			r0 = ret.Get(0).(*transaction.Transaction)
   108  		}
   109  	}
   110  
   111  	if rf, ok := ret.Get(1).(func(string, string, interface{}, uint64, ...zcncore.FeeOption) error); ok {
   112  		r1 = rf(address, methodName, input, val, feeOpts...)
   113  	} else {
   114  		r1 = ret.Error(1)
   115  	}
   116  
   117  	return r0, r1
   118  }
   119  
   120  // FaucetUpdateConfig provides a mock function with given fields: _a0
   121  func (_m *TransactionScheme) FaucetUpdateConfig(_a0 *zcncore.InputMap) error {
   122  	ret := _m.Called(_a0)
   123  
   124  	var r0 error
   125  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   126  		r0 = rf(_a0)
   127  	} else {
   128  		r0 = ret.Error(0)
   129  	}
   130  
   131  	return r0
   132  }
   133  
   134  // FinalizeAllocation provides a mock function with given fields: allocID
   135  func (_m *TransactionScheme) FinalizeAllocation(allocID string) error {
   136  	ret := _m.Called(allocID)
   137  
   138  	var r0 error
   139  	if rf, ok := ret.Get(0).(func(string) error); ok {
   140  		r0 = rf(allocID)
   141  	} else {
   142  		r0 = ret.Error(0)
   143  	}
   144  
   145  	return r0
   146  }
   147  
   148  // GetTransactionError provides a mock function with given fields:
   149  func (_m *TransactionScheme) GetTransactionError() string {
   150  	ret := _m.Called()
   151  
   152  	var r0 string
   153  	if rf, ok := ret.Get(0).(func() string); ok {
   154  		r0 = rf()
   155  	} else {
   156  		r0 = ret.Get(0).(string)
   157  	}
   158  
   159  	return r0
   160  }
   161  
   162  // GetTransactionHash provides a mock function with given fields:
   163  func (_m *TransactionScheme) GetTransactionHash() string {
   164  	ret := _m.Called()
   165  
   166  	var r0 string
   167  	if rf, ok := ret.Get(0).(func() string); ok {
   168  		r0 = rf()
   169  	} else {
   170  		r0 = ret.Get(0).(string)
   171  	}
   172  
   173  	return r0
   174  }
   175  
   176  // GetTransactionNonce provides a mock function with given fields:
   177  func (_m *TransactionScheme) GetTransactionNonce() int64 {
   178  	ret := _m.Called()
   179  
   180  	var r0 int64
   181  	if rf, ok := ret.Get(0).(func() int64); ok {
   182  		r0 = rf()
   183  	} else {
   184  		r0 = ret.Get(0).(int64)
   185  	}
   186  
   187  	return r0
   188  }
   189  
   190  // GetVerifyConfirmationStatus provides a mock function with given fields:
   191  func (_m *TransactionScheme) GetVerifyConfirmationStatus() zcncore.ConfirmationStatus {
   192  	ret := _m.Called()
   193  
   194  	var r0 zcncore.ConfirmationStatus
   195  	if rf, ok := ret.Get(0).(func() zcncore.ConfirmationStatus); ok {
   196  		r0 = rf()
   197  	} else {
   198  		r0 = ret.Get(0).(zcncore.ConfirmationStatus)
   199  	}
   200  
   201  	return r0
   202  }
   203  
   204  // GetVerifyError provides a mock function with given fields:
   205  func (_m *TransactionScheme) GetVerifyError() string {
   206  	ret := _m.Called()
   207  
   208  	var r0 string
   209  	if rf, ok := ret.Get(0).(func() string); ok {
   210  		r0 = rf()
   211  	} else {
   212  		r0 = ret.Get(0).(string)
   213  	}
   214  
   215  	return r0
   216  }
   217  
   218  // GetVerifyOutput provides a mock function with given fields:
   219  func (_m *TransactionScheme) GetVerifyOutput() string {
   220  	ret := _m.Called()
   221  
   222  	var r0 string
   223  	if rf, ok := ret.Get(0).(func() string); ok {
   224  		r0 = rf()
   225  	} else {
   226  		r0 = ret.Get(0).(string)
   227  	}
   228  
   229  	return r0
   230  }
   231  
   232  // Hash provides a mock function with given fields:
   233  func (_m *TransactionScheme) Hash() string {
   234  	ret := _m.Called()
   235  
   236  	var r0 string
   237  	if rf, ok := ret.Get(0).(func() string); ok {
   238  		r0 = rf()
   239  	} else {
   240  		r0 = ret.Get(0).(string)
   241  	}
   242  
   243  	return r0
   244  }
   245  
   246  // MinerSCCollectReward provides a mock function with given fields: providerID, providerType
   247  func (_m *TransactionScheme) MinerSCCollectReward(providerID string, providerType zcncore.Provider) error {
   248  	ret := _m.Called(providerID, providerType)
   249  
   250  	var r0 error
   251  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   252  		r0 = rf(providerID, providerType)
   253  	} else {
   254  		r0 = ret.Error(0)
   255  	}
   256  
   257  	return r0
   258  }
   259  
   260  // MinerSCDeleteMiner provides a mock function with given fields: _a0
   261  func (_m *TransactionScheme) MinerSCDeleteMiner(_a0 *zcncore.MinerSCMinerInfo) error {
   262  	ret := _m.Called(_a0)
   263  
   264  	var r0 error
   265  	if rf, ok := ret.Get(0).(func(*zcncore.MinerSCMinerInfo) error); ok {
   266  		r0 = rf(_a0)
   267  	} else {
   268  		r0 = ret.Error(0)
   269  	}
   270  
   271  	return r0
   272  }
   273  
   274  // MinerSCDeleteSharder provides a mock function with given fields: _a0
   275  func (_m *TransactionScheme) MinerSCDeleteSharder(_a0 *zcncore.MinerSCMinerInfo) error {
   276  	ret := _m.Called(_a0)
   277  
   278  	var r0 error
   279  	if rf, ok := ret.Get(0).(func(*zcncore.MinerSCMinerInfo) error); ok {
   280  		r0 = rf(_a0)
   281  	} else {
   282  		r0 = ret.Error(0)
   283  	}
   284  
   285  	return r0
   286  }
   287  
   288  // MinerSCKill provides a mock function with given fields: providerID, providerType
   289  func (_m *TransactionScheme) MinerSCKill(providerID string, providerType zcncore.Provider) error {
   290  	ret := _m.Called(providerID, providerType)
   291  
   292  	var r0 error
   293  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   294  		r0 = rf(providerID, providerType)
   295  	} else {
   296  		r0 = ret.Error(0)
   297  	}
   298  
   299  	return r0
   300  }
   301  
   302  // MinerSCLock provides a mock function with given fields: providerId, providerType, lock
   303  func (_m *TransactionScheme) MinerSCLock(providerId string, providerType zcncore.Provider, lock uint64) error {
   304  	ret := _m.Called(providerId, providerType, lock)
   305  
   306  	var r0 error
   307  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider, uint64) error); ok {
   308  		r0 = rf(providerId, providerType, lock)
   309  	} else {
   310  		r0 = ret.Error(0)
   311  	}
   312  
   313  	return r0
   314  }
   315  
   316  // MinerSCMinerSettings provides a mock function with given fields: _a0
   317  func (_m *TransactionScheme) MinerSCMinerSettings(_a0 *zcncore.MinerSCMinerInfo) error {
   318  	ret := _m.Called(_a0)
   319  
   320  	var r0 error
   321  	if rf, ok := ret.Get(0).(func(*zcncore.MinerSCMinerInfo) error); ok {
   322  		r0 = rf(_a0)
   323  	} else {
   324  		r0 = ret.Error(0)
   325  	}
   326  
   327  	return r0
   328  }
   329  
   330  // MinerSCSharderSettings provides a mock function with given fields: _a0
   331  func (_m *TransactionScheme) MinerSCSharderSettings(_a0 *zcncore.MinerSCMinerInfo) error {
   332  	ret := _m.Called(_a0)
   333  
   334  	var r0 error
   335  	if rf, ok := ret.Get(0).(func(*zcncore.MinerSCMinerInfo) error); ok {
   336  		r0 = rf(_a0)
   337  	} else {
   338  		r0 = ret.Error(0)
   339  	}
   340  
   341  	return r0
   342  }
   343  
   344  // MinerSCUnlock provides a mock function with given fields: providerId, providerType
   345  func (_m *TransactionScheme) MinerSCUnlock(providerId string, providerType zcncore.Provider) error {
   346  	ret := _m.Called(providerId, providerType)
   347  
   348  	var r0 error
   349  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   350  		r0 = rf(providerId, providerType)
   351  	} else {
   352  		r0 = ret.Error(0)
   353  	}
   354  
   355  	return r0
   356  }
   357  
   358  // MinerScUpdateConfig provides a mock function with given fields: _a0
   359  func (_m *TransactionScheme) MinerScUpdateConfig(_a0 *zcncore.InputMap) error {
   360  	ret := _m.Called(_a0)
   361  
   362  	var r0 error
   363  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   364  		r0 = rf(_a0)
   365  	} else {
   366  		r0 = ret.Error(0)
   367  	}
   368  
   369  	return r0
   370  }
   371  
   372  // MinerScUpdateGlobals provides a mock function with given fields: _a0
   373  func (_m *TransactionScheme) MinerScUpdateGlobals(_a0 *zcncore.InputMap) error {
   374  	ret := _m.Called(_a0)
   375  
   376  	var r0 error
   377  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   378  		r0 = rf(_a0)
   379  	} else {
   380  		r0 = ret.Error(0)
   381  	}
   382  
   383  	return r0
   384  }
   385  
   386  // Output provides a mock function with given fields:
   387  func (_m *TransactionScheme) Output() []byte {
   388  	ret := _m.Called()
   389  
   390  	var r0 []byte
   391  	if rf, ok := ret.Get(0).(func() []byte); ok {
   392  		r0 = rf()
   393  	} else {
   394  		if ret.Get(0) != nil {
   395  			r0 = ret.Get(0).([]byte)
   396  		}
   397  	}
   398  
   399  	return r0
   400  }
   401  
   402  // ReadPoolLock provides a mock function with given fields: allocID, blobberID, duration, lock
   403  func (_m *TransactionScheme) ReadPoolLock(allocID string, blobberID string, duration int64, lock uint64) error {
   404  	ret := _m.Called(allocID, blobberID, duration, lock)
   405  
   406  	var r0 error
   407  	if rf, ok := ret.Get(0).(func(string, string, int64, uint64) error); ok {
   408  		r0 = rf(allocID, blobberID, duration, lock)
   409  	} else {
   410  		r0 = ret.Error(0)
   411  	}
   412  
   413  	return r0
   414  }
   415  
   416  // ReadPoolUnlock provides a mock function with given fields:
   417  func (_m *TransactionScheme) ReadPoolUnlock() error {
   418  	ret := _m.Called()
   419  
   420  	var r0 error
   421  	if rf, ok := ret.Get(0).(func() error); ok {
   422  		r0 = rf()
   423  	} else {
   424  		r0 = ret.Error(0)
   425  	}
   426  
   427  	return r0
   428  }
   429  
   430  // RegisterMultiSig provides a mock function with given fields: walletstr, mswallet
   431  func (_m *TransactionScheme) RegisterMultiSig(walletstr string, mswallet string) error {
   432  	ret := _m.Called(walletstr, mswallet)
   433  
   434  	var r0 error
   435  	if rf, ok := ret.Get(0).(func(string, string) error); ok {
   436  		r0 = rf(walletstr, mswallet)
   437  	} else {
   438  		r0 = ret.Error(0)
   439  	}
   440  
   441  	return r0
   442  }
   443  
   444  // Send provides a mock function with given fields: toClientID, val, desc
   445  func (_m *TransactionScheme) Send(toClientID string, val uint64, desc string) error {
   446  	ret := _m.Called(toClientID, val, desc)
   447  
   448  	var r0 error
   449  	if rf, ok := ret.Get(0).(func(string, uint64, string) error); ok {
   450  		r0 = rf(toClientID, val, desc)
   451  	} else {
   452  		r0 = ret.Error(0)
   453  	}
   454  
   455  	return r0
   456  }
   457  
   458  // SetTransactionCallback provides a mock function with given fields: cb
   459  func (_m *TransactionScheme) SetTransactionCallback(cb zcncore.TransactionCallback) error {
   460  	ret := _m.Called(cb)
   461  
   462  	var r0 error
   463  	if rf, ok := ret.Get(0).(func(zcncore.TransactionCallback) error); ok {
   464  		r0 = rf(cb)
   465  	} else {
   466  		r0 = ret.Error(0)
   467  	}
   468  
   469  	return r0
   470  }
   471  
   472  // SetTransactionHash provides a mock function with given fields: hash
   473  func (_m *TransactionScheme) SetTransactionHash(hash string) error {
   474  	ret := _m.Called(hash)
   475  
   476  	var r0 error
   477  	if rf, ok := ret.Get(0).(func(string) error); ok {
   478  		r0 = rf(hash)
   479  	} else {
   480  		r0 = ret.Error(0)
   481  	}
   482  
   483  	return r0
   484  }
   485  
   486  // SetTransactionNonce provides a mock function with given fields: txnNonce
   487  func (_m *TransactionScheme) SetTransactionNonce(txnNonce int64) error {
   488  	ret := _m.Called(txnNonce)
   489  
   490  	var r0 error
   491  	if rf, ok := ret.Get(0).(func(int64) error); ok {
   492  		r0 = rf(txnNonce)
   493  	} else {
   494  		r0 = ret.Error(0)
   495  	}
   496  
   497  	return r0
   498  }
   499  
   500  // StakePoolLock provides a mock function with given fields: providerId, providerType, lock
   501  func (_m *TransactionScheme) StakePoolLock(providerId string, providerType zcncore.Provider, lock uint64) error {
   502  	ret := _m.Called(providerId, providerType, lock)
   503  
   504  	var r0 error
   505  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider, uint64) error); ok {
   506  		r0 = rf(providerId, providerType, lock)
   507  	} else {
   508  		r0 = ret.Error(0)
   509  	}
   510  
   511  	return r0
   512  }
   513  
   514  // StakePoolUnlock provides a mock function with given fields: providerId, providerType
   515  func (_m *TransactionScheme) StakePoolUnlock(providerId string, providerType zcncore.Provider) error {
   516  	ret := _m.Called(providerId, providerType)
   517  
   518  	var r0 error
   519  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   520  		r0 = rf(providerId, providerType)
   521  	} else {
   522  		r0 = ret.Error(0)
   523  	}
   524  
   525  	return r0
   526  }
   527  
   528  // StorageSCCollectReward provides a mock function with given fields: providerID, providerType
   529  func (_m *TransactionScheme) StorageSCCollectReward(providerID string, providerType zcncore.Provider) error {
   530  	ret := _m.Called(providerID, providerType)
   531  
   532  	var r0 error
   533  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   534  		r0 = rf(providerID, providerType)
   535  	} else {
   536  		r0 = ret.Error(0)
   537  	}
   538  
   539  	return r0
   540  }
   541  
   542  // StorageScUpdateConfig provides a mock function with given fields: _a0
   543  func (_m *TransactionScheme) StorageScUpdateConfig(_a0 *zcncore.InputMap) error {
   544  	ret := _m.Called(_a0)
   545  
   546  	var r0 error
   547  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   548  		r0 = rf(_a0)
   549  	} else {
   550  		r0 = ret.Error(0)
   551  	}
   552  
   553  	return r0
   554  }
   555  
   556  // StoreData provides a mock function with given fields: data
   557  func (_m *TransactionScheme) StoreData(data string) error {
   558  	ret := _m.Called(data)
   559  
   560  	var r0 error
   561  	if rf, ok := ret.Get(0).(func(string) error); ok {
   562  		r0 = rf(data)
   563  	} else {
   564  		r0 = ret.Error(0)
   565  	}
   566  
   567  	return r0
   568  }
   569  
   570  // UpdateAllocation provides a mock function with given fields: allocID, sizeDiff, expirationDiff, lock
   571  func (_m *TransactionScheme) UpdateAllocation(allocID string, sizeDiff int64, expirationDiff int64, lock uint64) error {
   572  	ret := _m.Called(allocID, sizeDiff, expirationDiff, lock)
   573  
   574  	var r0 error
   575  	if rf, ok := ret.Get(0).(func(string, int64, int64, uint64) error); ok {
   576  		r0 = rf(allocID, sizeDiff, expirationDiff, lock)
   577  	} else {
   578  		r0 = ret.Error(0)
   579  	}
   580  
   581  	return r0
   582  }
   583  
   584  // UpdateBlobberSettings provides a mock function with given fields: blobber
   585  func (_m *TransactionScheme) UpdateBlobberSettings(blobber *zcncore.Blobber) error {
   586  	ret := _m.Called(blobber)
   587  
   588  	var r0 error
   589  	if rf, ok := ret.Get(0).(func(*zcncore.Blobber) error); ok {
   590  		r0 = rf(blobber)
   591  	} else {
   592  		r0 = ret.Error(0)
   593  	}
   594  
   595  	return r0
   596  }
   597  
   598  // UpdateValidatorSettings provides a mock function with given fields: validator
   599  func (_m *TransactionScheme) UpdateValidatorSettings(validator *zcncore.Validator) error {
   600  	ret := _m.Called(validator)
   601  
   602  	var r0 error
   603  	if rf, ok := ret.Get(0).(func(*zcncore.Validator) error); ok {
   604  		r0 = rf(validator)
   605  	} else {
   606  		r0 = ret.Error(0)
   607  	}
   608  
   609  	return r0
   610  }
   611  
   612  // Verify provides a mock function with given fields:
   613  func (_m *TransactionScheme) Verify() error {
   614  	ret := _m.Called()
   615  
   616  	var r0 error
   617  	if rf, ok := ret.Get(0).(func() error); ok {
   618  		r0 = rf()
   619  	} else {
   620  		r0 = ret.Error(0)
   621  	}
   622  
   623  	return r0
   624  }
   625  
   626  // VestingAdd provides a mock function with given fields: ar, value
   627  func (_m *TransactionScheme) VestingAdd(ar *zcncore.VestingAddRequest, value uint64) error {
   628  	ret := _m.Called(ar, value)
   629  
   630  	var r0 error
   631  	if rf, ok := ret.Get(0).(func(*zcncore.VestingAddRequest, uint64) error); ok {
   632  		r0 = rf(ar, value)
   633  	} else {
   634  		r0 = ret.Error(0)
   635  	}
   636  
   637  	return r0
   638  }
   639  
   640  // VestingDelete provides a mock function with given fields: poolID
   641  func (_m *TransactionScheme) VestingDelete(poolID string) error {
   642  	ret := _m.Called(poolID)
   643  
   644  	var r0 error
   645  	if rf, ok := ret.Get(0).(func(string) error); ok {
   646  		r0 = rf(poolID)
   647  	} else {
   648  		r0 = ret.Error(0)
   649  	}
   650  
   651  	return r0
   652  }
   653  
   654  // VestingStop provides a mock function with given fields: sr
   655  func (_m *TransactionScheme) VestingStop(sr *zcncore.VestingStopRequest) error {
   656  	ret := _m.Called(sr)
   657  
   658  	var r0 error
   659  	if rf, ok := ret.Get(0).(func(*zcncore.VestingStopRequest) error); ok {
   660  		r0 = rf(sr)
   661  	} else {
   662  		r0 = ret.Error(0)
   663  	}
   664  
   665  	return r0
   666  }
   667  
   668  // VestingTrigger provides a mock function with given fields: poolID
   669  func (_m *TransactionScheme) VestingTrigger(poolID string) error {
   670  	ret := _m.Called(poolID)
   671  
   672  	var r0 error
   673  	if rf, ok := ret.Get(0).(func(string) error); ok {
   674  		r0 = rf(poolID)
   675  	} else {
   676  		r0 = ret.Error(0)
   677  	}
   678  
   679  	return r0
   680  }
   681  
   682  // VestingUnlock provides a mock function with given fields: poolID
   683  func (_m *TransactionScheme) VestingUnlock(poolID string) error {
   684  	ret := _m.Called(poolID)
   685  
   686  	var r0 error
   687  	if rf, ok := ret.Get(0).(func(string) error); ok {
   688  		r0 = rf(poolID)
   689  	} else {
   690  		r0 = ret.Error(0)
   691  	}
   692  
   693  	return r0
   694  }
   695  
   696  // VestingUpdateConfig provides a mock function with given fields: _a0
   697  func (_m *TransactionScheme) VestingUpdateConfig(_a0 *zcncore.InputMap) error {
   698  	ret := _m.Called(_a0)
   699  
   700  	var r0 error
   701  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   702  		r0 = rf(_a0)
   703  	} else {
   704  		r0 = ret.Error(0)
   705  	}
   706  
   707  	return r0
   708  }
   709  
   710  // WritePoolLock provides a mock function with given fields: allocID, blobberID, duration, lock
   711  func (_m *TransactionScheme) WritePoolLock(allocID string, blobberID string, duration int64, lock uint64) error {
   712  	ret := _m.Called(allocID, blobberID, duration, lock)
   713  
   714  	var r0 error
   715  	if rf, ok := ret.Get(0).(func(string, string, int64, uint64) error); ok {
   716  		r0 = rf(allocID, blobberID, duration, lock)
   717  	} else {
   718  		r0 = ret.Error(0)
   719  	}
   720  
   721  	return r0
   722  }
   723  
   724  // WritePoolUnlock provides a mock function with given fields: allocID
   725  func (_m *TransactionScheme) WritePoolUnlock(allocID string) error {
   726  	ret := _m.Called(allocID)
   727  
   728  	var r0 error
   729  	if rf, ok := ret.Get(0).(func(string) error); ok {
   730  		r0 = rf(allocID)
   731  	} else {
   732  		r0 = ret.Error(0)
   733  	}
   734  
   735  	return r0
   736  }
   737  
   738  // ZCNSCAddAuthorizer provides a mock function with given fields: _a0
   739  func (_m *TransactionScheme) ZCNSCAddAuthorizer(_a0 *zcncore.AddAuthorizerPayload) error {
   740  	ret := _m.Called(_a0)
   741  
   742  	var r0 error
   743  	if rf, ok := ret.Get(0).(func(*zcncore.AddAuthorizerPayload) error); ok {
   744  		r0 = rf(_a0)
   745  	} else {
   746  		r0 = ret.Error(0)
   747  	}
   748  
   749  	return r0
   750  }
   751  
   752  // ZCNSCAuthorizerHealthCheck provides a mock function with given fields: _a0
   753  func (_m *TransactionScheme) ZCNSCAuthorizerHealthCheck(_a0 *zcncore.AuthorizerHealthCheckPayload) error {
   754  	ret := _m.Called(_a0)
   755  
   756  	var r0 error
   757  	if rf, ok := ret.Get(0).(func(*zcncore.AuthorizerHealthCheckPayload) error); ok {
   758  		r0 = rf(_a0)
   759  	} else {
   760  		r0 = ret.Error(0)
   761  	}
   762  
   763  	return r0
   764  }
   765  
   766  // ZCNSCCollectReward provides a mock function with given fields: providerID, providerType
   767  func (_m *TransactionScheme) ZCNSCCollectReward(providerID string, providerType zcncore.Provider) error {
   768  	ret := _m.Called(providerID, providerType)
   769  
   770  	var r0 error
   771  	if rf, ok := ret.Get(0).(func(string, zcncore.Provider) error); ok {
   772  		r0 = rf(providerID, providerType)
   773  	} else {
   774  		r0 = ret.Error(0)
   775  	}
   776  
   777  	return r0
   778  }
   779  
   780  // ZCNSCDeleteAuthorizer provides a mock function with given fields: _a0
   781  func (_m *TransactionScheme) ZCNSCDeleteAuthorizer(_a0 *zcncore.DeleteAuthorizerPayload) error {
   782  	ret := _m.Called(_a0)
   783  
   784  	var r0 error
   785  	if rf, ok := ret.Get(0).(func(*zcncore.DeleteAuthorizerPayload) error); ok {
   786  		r0 = rf(_a0)
   787  	} else {
   788  		r0 = ret.Error(0)
   789  	}
   790  
   791  	return r0
   792  }
   793  
   794  // ZCNSCUpdateAuthorizerConfig provides a mock function with given fields: _a0
   795  func (_m *TransactionScheme) ZCNSCUpdateAuthorizerConfig(_a0 *zcncore.AuthorizerNode) error {
   796  	ret := _m.Called(_a0)
   797  
   798  	var r0 error
   799  	if rf, ok := ret.Get(0).(func(*zcncore.AuthorizerNode) error); ok {
   800  		r0 = rf(_a0)
   801  	} else {
   802  		r0 = ret.Error(0)
   803  	}
   804  
   805  	return r0
   806  }
   807  
   808  // ZCNSCUpdateGlobalConfig provides a mock function with given fields: _a0
   809  func (_m *TransactionScheme) ZCNSCUpdateGlobalConfig(_a0 *zcncore.InputMap) error {
   810  	ret := _m.Called(_a0)
   811  
   812  	var r0 error
   813  	if rf, ok := ret.Get(0).(func(*zcncore.InputMap) error); ok {
   814  		r0 = rf(_a0)
   815  	} else {
   816  		r0 = ret.Error(0)
   817  	}
   818  
   819  	return r0
   820  }
   821  
   822  type mockConstructorTestingTNewTransactionScheme interface {
   823  	mock.TestingT
   824  	Cleanup(func())
   825  }
   826  
   827  // NewTransactionScheme creates a new instance of TransactionScheme. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   828  func NewTransactionScheme(t mockConstructorTestingTNewTransactionScheme) *TransactionScheme {
   829  	mock := &TransactionScheme{}
   830  	mock.Mock.Test(t)
   831  
   832  	t.Cleanup(func() { mock.AssertExpectations(t) })
   833  
   834  	return mock
   835  }