github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_apicoreservice/mock_apicoreservice.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./api/coreservice.go
     3  
     4  // Package mock_apicoreservice is a generated GoMock package.
     5  package mock_apicoreservice
     6  
     7  import (
     8  	context "context"
     9  	big "math/big"
    10  	reflect "reflect"
    11  	time "time"
    12  
    13  	tracers "github.com/ethereum/go-ethereum/eth/tracers"
    14  	gomock "github.com/golang/mock/gomock"
    15  	hash "github.com/iotexproject/go-pkgs/hash"
    16  	address "github.com/iotexproject/iotex-address/address"
    17  	action "github.com/iotexproject/iotex-core/action"
    18  	logfilter "github.com/iotexproject/iotex-core/api/logfilter"
    19  	apitypes "github.com/iotexproject/iotex-core/api/types"
    20  	block "github.com/iotexproject/iotex-core/blockchain/block"
    21  	genesis "github.com/iotexproject/iotex-core/blockchain/genesis"
    22  	iotexapi "github.com/iotexproject/iotex-proto/golang/iotexapi"
    23  	iotextypes "github.com/iotexproject/iotex-proto/golang/iotextypes"
    24  )
    25  
    26  // MockCoreService is a mock of CoreService interface.
    27  type MockCoreService struct {
    28  	ctrl     *gomock.Controller
    29  	recorder *MockCoreServiceMockRecorder
    30  }
    31  
    32  // MockCoreServiceMockRecorder is the mock recorder for MockCoreService.
    33  type MockCoreServiceMockRecorder struct {
    34  	mock *MockCoreService
    35  }
    36  
    37  // NewMockCoreService creates a new mock instance.
    38  func NewMockCoreService(ctrl *gomock.Controller) *MockCoreService {
    39  	mock := &MockCoreService{ctrl: ctrl}
    40  	mock.recorder = &MockCoreServiceMockRecorder{mock}
    41  	return mock
    42  }
    43  
    44  // EXPECT returns an object that allows the caller to indicate expected use.
    45  func (m *MockCoreService) EXPECT() *MockCoreServiceMockRecorder {
    46  	return m.recorder
    47  }
    48  
    49  // Account mocks base method.
    50  func (m *MockCoreService) Account(addr address.Address) (*iotextypes.AccountMeta, *iotextypes.BlockIdentifier, error) {
    51  	m.ctrl.T.Helper()
    52  	ret := m.ctrl.Call(m, "Account", addr)
    53  	ret0, _ := ret[0].(*iotextypes.AccountMeta)
    54  	ret1, _ := ret[1].(*iotextypes.BlockIdentifier)
    55  	ret2, _ := ret[2].(error)
    56  	return ret0, ret1, ret2
    57  }
    58  
    59  // Account indicates an expected call of Account.
    60  func (mr *MockCoreServiceMockRecorder) Account(addr interface{}) *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Account", reflect.TypeOf((*MockCoreService)(nil).Account), addr)
    63  }
    64  
    65  // Action mocks base method.
    66  func (m *MockCoreService) Action(actionHash string, checkPending bool) (*iotexapi.ActionInfo, error) {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "Action", actionHash, checkPending)
    69  	ret0, _ := ret[0].(*iotexapi.ActionInfo)
    70  	ret1, _ := ret[1].(error)
    71  	return ret0, ret1
    72  }
    73  
    74  // Action indicates an expected call of Action.
    75  func (mr *MockCoreServiceMockRecorder) Action(actionHash, checkPending interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Action", reflect.TypeOf((*MockCoreService)(nil).Action), actionHash, checkPending)
    78  }
    79  
    80  // ActionByActionHash mocks base method.
    81  func (m *MockCoreService) ActionByActionHash(h hash.Hash256) (*action.SealedEnvelope, *block.Block, uint32, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "ActionByActionHash", h)
    84  	ret0, _ := ret[0].(*action.SealedEnvelope)
    85  	ret1, _ := ret[1].(*block.Block)
    86  	ret2, _ := ret[2].(uint32)
    87  	ret3, _ := ret[3].(error)
    88  	return ret0, ret1, ret2, ret3
    89  }
    90  
    91  // ActionByActionHash indicates an expected call of ActionByActionHash.
    92  func (mr *MockCoreServiceMockRecorder) ActionByActionHash(h interface{}) *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionByActionHash", reflect.TypeOf((*MockCoreService)(nil).ActionByActionHash), h)
    95  }
    96  
    97  // Actions mocks base method.
    98  func (m *MockCoreService) Actions(start, count uint64) ([]*iotexapi.ActionInfo, error) {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "Actions", start, count)
   101  	ret0, _ := ret[0].([]*iotexapi.ActionInfo)
   102  	ret1, _ := ret[1].(error)
   103  	return ret0, ret1
   104  }
   105  
   106  // Actions indicates an expected call of Actions.
   107  func (mr *MockCoreServiceMockRecorder) Actions(start, count interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Actions", reflect.TypeOf((*MockCoreService)(nil).Actions), start, count)
   110  }
   111  
   112  // ActionsByAddress mocks base method.
   113  func (m *MockCoreService) ActionsByAddress(addr address.Address, start, count uint64) ([]*iotexapi.ActionInfo, error) {
   114  	m.ctrl.T.Helper()
   115  	ret := m.ctrl.Call(m, "ActionsByAddress", addr, start, count)
   116  	ret0, _ := ret[0].([]*iotexapi.ActionInfo)
   117  	ret1, _ := ret[1].(error)
   118  	return ret0, ret1
   119  }
   120  
   121  // ActionsByAddress indicates an expected call of ActionsByAddress.
   122  func (mr *MockCoreServiceMockRecorder) ActionsByAddress(addr, start, count interface{}) *gomock.Call {
   123  	mr.mock.ctrl.T.Helper()
   124  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionsByAddress", reflect.TypeOf((*MockCoreService)(nil).ActionsByAddress), addr, start, count)
   125  }
   126  
   127  // ActionsInActPool mocks base method.
   128  func (m *MockCoreService) ActionsInActPool(actHashes []string) ([]*action.SealedEnvelope, error) {
   129  	m.ctrl.T.Helper()
   130  	ret := m.ctrl.Call(m, "ActionsInActPool", actHashes)
   131  	ret0, _ := ret[0].([]*action.SealedEnvelope)
   132  	ret1, _ := ret[1].(error)
   133  	return ret0, ret1
   134  }
   135  
   136  // ActionsInActPool indicates an expected call of ActionsInActPool.
   137  func (mr *MockCoreServiceMockRecorder) ActionsInActPool(actHashes interface{}) *gomock.Call {
   138  	mr.mock.ctrl.T.Helper()
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionsInActPool", reflect.TypeOf((*MockCoreService)(nil).ActionsInActPool), actHashes)
   140  }
   141  
   142  // BlockByHash mocks base method.
   143  func (m *MockCoreService) BlockByHash(arg0 string) (*apitypes.BlockWithReceipts, error) {
   144  	m.ctrl.T.Helper()
   145  	ret := m.ctrl.Call(m, "BlockByHash", arg0)
   146  	ret0, _ := ret[0].(*apitypes.BlockWithReceipts)
   147  	ret1, _ := ret[1].(error)
   148  	return ret0, ret1
   149  }
   150  
   151  // BlockByHash indicates an expected call of BlockByHash.
   152  func (mr *MockCoreServiceMockRecorder) BlockByHash(arg0 interface{}) *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockByHash", reflect.TypeOf((*MockCoreService)(nil).BlockByHash), arg0)
   155  }
   156  
   157  // BlockByHeight mocks base method.
   158  func (m *MockCoreService) BlockByHeight(arg0 uint64) (*apitypes.BlockWithReceipts, error) {
   159  	m.ctrl.T.Helper()
   160  	ret := m.ctrl.Call(m, "BlockByHeight", arg0)
   161  	ret0, _ := ret[0].(*apitypes.BlockWithReceipts)
   162  	ret1, _ := ret[1].(error)
   163  	return ret0, ret1
   164  }
   165  
   166  // BlockByHeight indicates an expected call of BlockByHeight.
   167  func (mr *MockCoreServiceMockRecorder) BlockByHeight(arg0 interface{}) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockByHeight", reflect.TypeOf((*MockCoreService)(nil).BlockByHeight), arg0)
   170  }
   171  
   172  // BlockByHeightRange mocks base method.
   173  func (m *MockCoreService) BlockByHeightRange(arg0, arg1 uint64) ([]*apitypes.BlockWithReceipts, error) {
   174  	m.ctrl.T.Helper()
   175  	ret := m.ctrl.Call(m, "BlockByHeightRange", arg0, arg1)
   176  	ret0, _ := ret[0].([]*apitypes.BlockWithReceipts)
   177  	ret1, _ := ret[1].(error)
   178  	return ret0, ret1
   179  }
   180  
   181  // BlockByHeightRange indicates an expected call of BlockByHeightRange.
   182  func (mr *MockCoreServiceMockRecorder) BlockByHeightRange(arg0, arg1 interface{}) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockByHeightRange", reflect.TypeOf((*MockCoreService)(nil).BlockByHeightRange), arg0, arg1)
   185  }
   186  
   187  // BlockHashByBlockHeight mocks base method.
   188  func (m *MockCoreService) BlockHashByBlockHeight(blkHeight uint64) (hash.Hash256, error) {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "BlockHashByBlockHeight", blkHeight)
   191  	ret0, _ := ret[0].(hash.Hash256)
   192  	ret1, _ := ret[1].(error)
   193  	return ret0, ret1
   194  }
   195  
   196  // BlockHashByBlockHeight indicates an expected call of BlockHashByBlockHeight.
   197  func (mr *MockCoreServiceMockRecorder) BlockHashByBlockHeight(blkHeight interface{}) *gomock.Call {
   198  	mr.mock.ctrl.T.Helper()
   199  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockHashByBlockHeight", reflect.TypeOf((*MockCoreService)(nil).BlockHashByBlockHeight), blkHeight)
   200  }
   201  
   202  // ChainID mocks base method.
   203  func (m *MockCoreService) ChainID() uint32 {
   204  	m.ctrl.T.Helper()
   205  	ret := m.ctrl.Call(m, "ChainID")
   206  	ret0, _ := ret[0].(uint32)
   207  	return ret0
   208  }
   209  
   210  // ChainID indicates an expected call of ChainID.
   211  func (mr *MockCoreServiceMockRecorder) ChainID() *gomock.Call {
   212  	mr.mock.ctrl.T.Helper()
   213  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainID", reflect.TypeOf((*MockCoreService)(nil).ChainID))
   214  }
   215  
   216  // ChainListener mocks base method.
   217  func (m *MockCoreService) ChainListener() apitypes.Listener {
   218  	m.ctrl.T.Helper()
   219  	ret := m.ctrl.Call(m, "ChainListener")
   220  	ret0, _ := ret[0].(apitypes.Listener)
   221  	return ret0
   222  }
   223  
   224  // ChainListener indicates an expected call of ChainListener.
   225  func (mr *MockCoreServiceMockRecorder) ChainListener() *gomock.Call {
   226  	mr.mock.ctrl.T.Helper()
   227  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainListener", reflect.TypeOf((*MockCoreService)(nil).ChainListener))
   228  }
   229  
   230  // ChainMeta mocks base method.
   231  func (m *MockCoreService) ChainMeta() (*iotextypes.ChainMeta, string, error) {
   232  	m.ctrl.T.Helper()
   233  	ret := m.ctrl.Call(m, "ChainMeta")
   234  	ret0, _ := ret[0].(*iotextypes.ChainMeta)
   235  	ret1, _ := ret[1].(string)
   236  	ret2, _ := ret[2].(error)
   237  	return ret0, ret1, ret2
   238  }
   239  
   240  // ChainMeta indicates an expected call of ChainMeta.
   241  func (mr *MockCoreServiceMockRecorder) ChainMeta() *gomock.Call {
   242  	mr.mock.ctrl.T.Helper()
   243  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainMeta", reflect.TypeOf((*MockCoreService)(nil).ChainMeta))
   244  }
   245  
   246  // EVMNetworkID mocks base method.
   247  func (m *MockCoreService) EVMNetworkID() uint32 {
   248  	m.ctrl.T.Helper()
   249  	ret := m.ctrl.Call(m, "EVMNetworkID")
   250  	ret0, _ := ret[0].(uint32)
   251  	return ret0
   252  }
   253  
   254  // EVMNetworkID indicates an expected call of EVMNetworkID.
   255  func (mr *MockCoreServiceMockRecorder) EVMNetworkID() *gomock.Call {
   256  	mr.mock.ctrl.T.Helper()
   257  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVMNetworkID", reflect.TypeOf((*MockCoreService)(nil).EVMNetworkID))
   258  }
   259  
   260  // ElectionBuckets mocks base method.
   261  func (m *MockCoreService) ElectionBuckets(epochNum uint64) ([]*iotextypes.ElectionBucket, error) {
   262  	m.ctrl.T.Helper()
   263  	ret := m.ctrl.Call(m, "ElectionBuckets", epochNum)
   264  	ret0, _ := ret[0].([]*iotextypes.ElectionBucket)
   265  	ret1, _ := ret[1].(error)
   266  	return ret0, ret1
   267  }
   268  
   269  // ElectionBuckets indicates an expected call of ElectionBuckets.
   270  func (mr *MockCoreServiceMockRecorder) ElectionBuckets(epochNum interface{}) *gomock.Call {
   271  	mr.mock.ctrl.T.Helper()
   272  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ElectionBuckets", reflect.TypeOf((*MockCoreService)(nil).ElectionBuckets), epochNum)
   273  }
   274  
   275  // EpochMeta mocks base method.
   276  func (m *MockCoreService) EpochMeta(epochNum uint64) (*iotextypes.EpochData, uint64, []*iotexapi.BlockProducerInfo, error) {
   277  	m.ctrl.T.Helper()
   278  	ret := m.ctrl.Call(m, "EpochMeta", epochNum)
   279  	ret0, _ := ret[0].(*iotextypes.EpochData)
   280  	ret1, _ := ret[1].(uint64)
   281  	ret2, _ := ret[2].([]*iotexapi.BlockProducerInfo)
   282  	ret3, _ := ret[3].(error)
   283  	return ret0, ret1, ret2, ret3
   284  }
   285  
   286  // EpochMeta indicates an expected call of EpochMeta.
   287  func (mr *MockCoreServiceMockRecorder) EpochMeta(epochNum interface{}) *gomock.Call {
   288  	mr.mock.ctrl.T.Helper()
   289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EpochMeta", reflect.TypeOf((*MockCoreService)(nil).EpochMeta), epochNum)
   290  }
   291  
   292  // EstimateExecutionGasConsumption mocks base method.
   293  func (m *MockCoreService) EstimateExecutionGasConsumption(ctx context.Context, sc *action.Execution, callerAddr address.Address) (uint64, error) {
   294  	m.ctrl.T.Helper()
   295  	ret := m.ctrl.Call(m, "EstimateExecutionGasConsumption", ctx, sc, callerAddr)
   296  	ret0, _ := ret[0].(uint64)
   297  	ret1, _ := ret[1].(error)
   298  	return ret0, ret1
   299  }
   300  
   301  // EstimateExecutionGasConsumption indicates an expected call of EstimateExecutionGasConsumption.
   302  func (mr *MockCoreServiceMockRecorder) EstimateExecutionGasConsumption(ctx, sc, callerAddr interface{}) *gomock.Call {
   303  	mr.mock.ctrl.T.Helper()
   304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateExecutionGasConsumption", reflect.TypeOf((*MockCoreService)(nil).EstimateExecutionGasConsumption), ctx, sc, callerAddr)
   305  }
   306  
   307  // EstimateGasForAction mocks base method.
   308  func (m *MockCoreService) EstimateGasForAction(ctx context.Context, in *iotextypes.Action) (uint64, error) {
   309  	m.ctrl.T.Helper()
   310  	ret := m.ctrl.Call(m, "EstimateGasForAction", ctx, in)
   311  	ret0, _ := ret[0].(uint64)
   312  	ret1, _ := ret[1].(error)
   313  	return ret0, ret1
   314  }
   315  
   316  // EstimateGasForAction indicates an expected call of EstimateGasForAction.
   317  func (mr *MockCoreServiceMockRecorder) EstimateGasForAction(ctx, in interface{}) *gomock.Call {
   318  	mr.mock.ctrl.T.Helper()
   319  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGasForAction", reflect.TypeOf((*MockCoreService)(nil).EstimateGasForAction), ctx, in)
   320  }
   321  
   322  // EstimateGasForNonExecution mocks base method.
   323  func (m *MockCoreService) EstimateGasForNonExecution(arg0 action.Action) (uint64, error) {
   324  	m.ctrl.T.Helper()
   325  	ret := m.ctrl.Call(m, "EstimateGasForNonExecution", arg0)
   326  	ret0, _ := ret[0].(uint64)
   327  	ret1, _ := ret[1].(error)
   328  	return ret0, ret1
   329  }
   330  
   331  // EstimateGasForNonExecution indicates an expected call of EstimateGasForNonExecution.
   332  func (mr *MockCoreServiceMockRecorder) EstimateGasForNonExecution(arg0 interface{}) *gomock.Call {
   333  	mr.mock.ctrl.T.Helper()
   334  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateGasForNonExecution", reflect.TypeOf((*MockCoreService)(nil).EstimateGasForNonExecution), arg0)
   335  }
   336  
   337  // Genesis mocks base method.
   338  func (m *MockCoreService) Genesis() genesis.Genesis {
   339  	m.ctrl.T.Helper()
   340  	ret := m.ctrl.Call(m, "Genesis")
   341  	ret0, _ := ret[0].(genesis.Genesis)
   342  	return ret0
   343  }
   344  
   345  // Genesis indicates an expected call of Genesis.
   346  func (mr *MockCoreServiceMockRecorder) Genesis() *gomock.Call {
   347  	mr.mock.ctrl.T.Helper()
   348  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Genesis", reflect.TypeOf((*MockCoreService)(nil).Genesis))
   349  }
   350  
   351  // LogsInBlockByHash mocks base method.
   352  func (m *MockCoreService) LogsInBlockByHash(filter *logfilter.LogFilter, blockHash hash.Hash256) ([]*action.Log, error) {
   353  	m.ctrl.T.Helper()
   354  	ret := m.ctrl.Call(m, "LogsInBlockByHash", filter, blockHash)
   355  	ret0, _ := ret[0].([]*action.Log)
   356  	ret1, _ := ret[1].(error)
   357  	return ret0, ret1
   358  }
   359  
   360  // LogsInBlockByHash indicates an expected call of LogsInBlockByHash.
   361  func (mr *MockCoreServiceMockRecorder) LogsInBlockByHash(filter, blockHash interface{}) *gomock.Call {
   362  	mr.mock.ctrl.T.Helper()
   363  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogsInBlockByHash", reflect.TypeOf((*MockCoreService)(nil).LogsInBlockByHash), filter, blockHash)
   364  }
   365  
   366  // LogsInRange mocks base method.
   367  func (m *MockCoreService) LogsInRange(filter *logfilter.LogFilter, start, end, paginationSize uint64) ([]*action.Log, []hash.Hash256, error) {
   368  	m.ctrl.T.Helper()
   369  	ret := m.ctrl.Call(m, "LogsInRange", filter, start, end, paginationSize)
   370  	ret0, _ := ret[0].([]*action.Log)
   371  	ret1, _ := ret[1].([]hash.Hash256)
   372  	ret2, _ := ret[2].(error)
   373  	return ret0, ret1, ret2
   374  }
   375  
   376  // LogsInRange indicates an expected call of LogsInRange.
   377  func (mr *MockCoreServiceMockRecorder) LogsInRange(filter, start, end, paginationSize interface{}) *gomock.Call {
   378  	mr.mock.ctrl.T.Helper()
   379  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogsInRange", reflect.TypeOf((*MockCoreService)(nil).LogsInRange), filter, start, end, paginationSize)
   380  }
   381  
   382  // PendingActionByActionHash mocks base method.
   383  func (m *MockCoreService) PendingActionByActionHash(h hash.Hash256) (*action.SealedEnvelope, error) {
   384  	m.ctrl.T.Helper()
   385  	ret := m.ctrl.Call(m, "PendingActionByActionHash", h)
   386  	ret0, _ := ret[0].(*action.SealedEnvelope)
   387  	ret1, _ := ret[1].(error)
   388  	return ret0, ret1
   389  }
   390  
   391  // PendingActionByActionHash indicates an expected call of PendingActionByActionHash.
   392  func (mr *MockCoreServiceMockRecorder) PendingActionByActionHash(h interface{}) *gomock.Call {
   393  	mr.mock.ctrl.T.Helper()
   394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingActionByActionHash", reflect.TypeOf((*MockCoreService)(nil).PendingActionByActionHash), h)
   395  }
   396  
   397  // PendingNonce mocks base method.
   398  func (m *MockCoreService) PendingNonce(arg0 address.Address) (uint64, error) {
   399  	m.ctrl.T.Helper()
   400  	ret := m.ctrl.Call(m, "PendingNonce", arg0)
   401  	ret0, _ := ret[0].(uint64)
   402  	ret1, _ := ret[1].(error)
   403  	return ret0, ret1
   404  }
   405  
   406  // PendingNonce indicates an expected call of PendingNonce.
   407  func (mr *MockCoreServiceMockRecorder) PendingNonce(arg0 interface{}) *gomock.Call {
   408  	mr.mock.ctrl.T.Helper()
   409  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingNonce", reflect.TypeOf((*MockCoreService)(nil).PendingNonce), arg0)
   410  }
   411  
   412  // RawBlocks mocks base method.
   413  func (m *MockCoreService) RawBlocks(startHeight, count uint64, withReceipts, withTransactionLogs bool) ([]*iotexapi.BlockInfo, error) {
   414  	m.ctrl.T.Helper()
   415  	ret := m.ctrl.Call(m, "RawBlocks", startHeight, count, withReceipts, withTransactionLogs)
   416  	ret0, _ := ret[0].([]*iotexapi.BlockInfo)
   417  	ret1, _ := ret[1].(error)
   418  	return ret0, ret1
   419  }
   420  
   421  // RawBlocks indicates an expected call of RawBlocks.
   422  func (mr *MockCoreServiceMockRecorder) RawBlocks(startHeight, count, withReceipts, withTransactionLogs interface{}) *gomock.Call {
   423  	mr.mock.ctrl.T.Helper()
   424  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawBlocks", reflect.TypeOf((*MockCoreService)(nil).RawBlocks), startHeight, count, withReceipts, withTransactionLogs)
   425  }
   426  
   427  // ReadContract mocks base method.
   428  func (m *MockCoreService) ReadContract(ctx context.Context, callerAddr address.Address, sc *action.Execution) (string, *iotextypes.Receipt, error) {
   429  	m.ctrl.T.Helper()
   430  	ret := m.ctrl.Call(m, "ReadContract", ctx, callerAddr, sc)
   431  	ret0, _ := ret[0].(string)
   432  	ret1, _ := ret[1].(*iotextypes.Receipt)
   433  	ret2, _ := ret[2].(error)
   434  	return ret0, ret1, ret2
   435  }
   436  
   437  // ReadContract indicates an expected call of ReadContract.
   438  func (mr *MockCoreServiceMockRecorder) ReadContract(ctx, callerAddr, sc interface{}) *gomock.Call {
   439  	mr.mock.ctrl.T.Helper()
   440  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadContract", reflect.TypeOf((*MockCoreService)(nil).ReadContract), ctx, callerAddr, sc)
   441  }
   442  
   443  // ReadContractStorage mocks base method.
   444  func (m *MockCoreService) ReadContractStorage(ctx context.Context, addr address.Address, key []byte) ([]byte, error) {
   445  	m.ctrl.T.Helper()
   446  	ret := m.ctrl.Call(m, "ReadContractStorage", ctx, addr, key)
   447  	ret0, _ := ret[0].([]byte)
   448  	ret1, _ := ret[1].(error)
   449  	return ret0, ret1
   450  }
   451  
   452  // ReadContractStorage indicates an expected call of ReadContractStorage.
   453  func (mr *MockCoreServiceMockRecorder) ReadContractStorage(ctx, addr, key interface{}) *gomock.Call {
   454  	mr.mock.ctrl.T.Helper()
   455  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadContractStorage", reflect.TypeOf((*MockCoreService)(nil).ReadContractStorage), ctx, addr, key)
   456  }
   457  
   458  // ReadState mocks base method.
   459  func (m *MockCoreService) ReadState(protocolID, height string, methodName []byte, arguments [][]byte) (*iotexapi.ReadStateResponse, error) {
   460  	m.ctrl.T.Helper()
   461  	ret := m.ctrl.Call(m, "ReadState", protocolID, height, methodName, arguments)
   462  	ret0, _ := ret[0].(*iotexapi.ReadStateResponse)
   463  	ret1, _ := ret[1].(error)
   464  	return ret0, ret1
   465  }
   466  
   467  // ReadState indicates an expected call of ReadState.
   468  func (mr *MockCoreServiceMockRecorder) ReadState(protocolID, height, methodName, arguments interface{}) *gomock.Call {
   469  	mr.mock.ctrl.T.Helper()
   470  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadState", reflect.TypeOf((*MockCoreService)(nil).ReadState), protocolID, height, methodName, arguments)
   471  }
   472  
   473  // ReceiptByActionHash mocks base method.
   474  func (m *MockCoreService) ReceiptByActionHash(h hash.Hash256) (*action.Receipt, error) {
   475  	m.ctrl.T.Helper()
   476  	ret := m.ctrl.Call(m, "ReceiptByActionHash", h)
   477  	ret0, _ := ret[0].(*action.Receipt)
   478  	ret1, _ := ret[1].(error)
   479  	return ret0, ret1
   480  }
   481  
   482  // ReceiptByActionHash indicates an expected call of ReceiptByActionHash.
   483  func (mr *MockCoreServiceMockRecorder) ReceiptByActionHash(h interface{}) *gomock.Call {
   484  	mr.mock.ctrl.T.Helper()
   485  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiptByActionHash", reflect.TypeOf((*MockCoreService)(nil).ReceiptByActionHash), h)
   486  }
   487  
   488  // ReceiveBlock mocks base method.
   489  func (m *MockCoreService) ReceiveBlock(blk *block.Block) error {
   490  	m.ctrl.T.Helper()
   491  	ret := m.ctrl.Call(m, "ReceiveBlock", blk)
   492  	ret0, _ := ret[0].(error)
   493  	return ret0
   494  }
   495  
   496  // ReceiveBlock indicates an expected call of ReceiveBlock.
   497  func (mr *MockCoreServiceMockRecorder) ReceiveBlock(blk interface{}) *gomock.Call {
   498  	mr.mock.ctrl.T.Helper()
   499  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveBlock", reflect.TypeOf((*MockCoreService)(nil).ReceiveBlock), blk)
   500  }
   501  
   502  // SendAction mocks base method.
   503  func (m *MockCoreService) SendAction(ctx context.Context, in *iotextypes.Action) (string, error) {
   504  	m.ctrl.T.Helper()
   505  	ret := m.ctrl.Call(m, "SendAction", ctx, in)
   506  	ret0, _ := ret[0].(string)
   507  	ret1, _ := ret[1].(error)
   508  	return ret0, ret1
   509  }
   510  
   511  // SendAction indicates an expected call of SendAction.
   512  func (mr *MockCoreServiceMockRecorder) SendAction(ctx, in interface{}) *gomock.Call {
   513  	mr.mock.ctrl.T.Helper()
   514  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendAction", reflect.TypeOf((*MockCoreService)(nil).SendAction), ctx, in)
   515  }
   516  
   517  // ServerMeta mocks base method.
   518  func (m *MockCoreService) ServerMeta() (string, string, string, string, string) {
   519  	m.ctrl.T.Helper()
   520  	ret := m.ctrl.Call(m, "ServerMeta")
   521  	ret0, _ := ret[0].(string)
   522  	ret1, _ := ret[1].(string)
   523  	ret2, _ := ret[2].(string)
   524  	ret3, _ := ret[3].(string)
   525  	ret4, _ := ret[4].(string)
   526  	return ret0, ret1, ret2, ret3, ret4
   527  }
   528  
   529  // ServerMeta indicates an expected call of ServerMeta.
   530  func (mr *MockCoreServiceMockRecorder) ServerMeta() *gomock.Call {
   531  	mr.mock.ctrl.T.Helper()
   532  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerMeta", reflect.TypeOf((*MockCoreService)(nil).ServerMeta))
   533  }
   534  
   535  // SimulateExecution mocks base method.
   536  func (m *MockCoreService) SimulateExecution(arg0 context.Context, arg1 address.Address, arg2 *action.Execution) ([]byte, *action.Receipt, error) {
   537  	m.ctrl.T.Helper()
   538  	ret := m.ctrl.Call(m, "SimulateExecution", arg0, arg1, arg2)
   539  	ret0, _ := ret[0].([]byte)
   540  	ret1, _ := ret[1].(*action.Receipt)
   541  	ret2, _ := ret[2].(error)
   542  	return ret0, ret1, ret2
   543  }
   544  
   545  // SimulateExecution indicates an expected call of SimulateExecution.
   546  func (mr *MockCoreServiceMockRecorder) SimulateExecution(arg0, arg1, arg2 interface{}) *gomock.Call {
   547  	mr.mock.ctrl.T.Helper()
   548  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateExecution", reflect.TypeOf((*MockCoreService)(nil).SimulateExecution), arg0, arg1, arg2)
   549  }
   550  
   551  // Start mocks base method.
   552  func (m *MockCoreService) Start(ctx context.Context) error {
   553  	m.ctrl.T.Helper()
   554  	ret := m.ctrl.Call(m, "Start", ctx)
   555  	ret0, _ := ret[0].(error)
   556  	return ret0
   557  }
   558  
   559  // Start indicates an expected call of Start.
   560  func (mr *MockCoreServiceMockRecorder) Start(ctx interface{}) *gomock.Call {
   561  	mr.mock.ctrl.T.Helper()
   562  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockCoreService)(nil).Start), ctx)
   563  }
   564  
   565  // Stop mocks base method.
   566  func (m *MockCoreService) Stop(ctx context.Context) error {
   567  	m.ctrl.T.Helper()
   568  	ret := m.ctrl.Call(m, "Stop", ctx)
   569  	ret0, _ := ret[0].(error)
   570  	return ret0
   571  }
   572  
   573  // Stop indicates an expected call of Stop.
   574  func (mr *MockCoreServiceMockRecorder) Stop(ctx interface{}) *gomock.Call {
   575  	mr.mock.ctrl.T.Helper()
   576  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockCoreService)(nil).Stop), ctx)
   577  }
   578  
   579  // SuggestGasPrice mocks base method.
   580  func (m *MockCoreService) SuggestGasPrice() (uint64, error) {
   581  	m.ctrl.T.Helper()
   582  	ret := m.ctrl.Call(m, "SuggestGasPrice")
   583  	ret0, _ := ret[0].(uint64)
   584  	ret1, _ := ret[1].(error)
   585  	return ret0, ret1
   586  }
   587  
   588  // SuggestGasPrice indicates an expected call of SuggestGasPrice.
   589  func (mr *MockCoreServiceMockRecorder) SuggestGasPrice() *gomock.Call {
   590  	mr.mock.ctrl.T.Helper()
   591  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuggestGasPrice", reflect.TypeOf((*MockCoreService)(nil).SuggestGasPrice))
   592  }
   593  
   594  // SyncingProgress mocks base method.
   595  func (m *MockCoreService) SyncingProgress() (uint64, uint64, uint64) {
   596  	m.ctrl.T.Helper()
   597  	ret := m.ctrl.Call(m, "SyncingProgress")
   598  	ret0, _ := ret[0].(uint64)
   599  	ret1, _ := ret[1].(uint64)
   600  	ret2, _ := ret[2].(uint64)
   601  	return ret0, ret1, ret2
   602  }
   603  
   604  // SyncingProgress indicates an expected call of SyncingProgress.
   605  func (mr *MockCoreServiceMockRecorder) SyncingProgress() *gomock.Call {
   606  	mr.mock.ctrl.T.Helper()
   607  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncingProgress", reflect.TypeOf((*MockCoreService)(nil).SyncingProgress))
   608  }
   609  
   610  // TipHeight mocks base method.
   611  func (m *MockCoreService) TipHeight() uint64 {
   612  	m.ctrl.T.Helper()
   613  	ret := m.ctrl.Call(m, "TipHeight")
   614  	ret0, _ := ret[0].(uint64)
   615  	return ret0
   616  }
   617  
   618  // TipHeight indicates an expected call of TipHeight.
   619  func (mr *MockCoreServiceMockRecorder) TipHeight() *gomock.Call {
   620  	mr.mock.ctrl.T.Helper()
   621  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TipHeight", reflect.TypeOf((*MockCoreService)(nil).TipHeight))
   622  }
   623  
   624  // TraceCall mocks base method.
   625  func (m *MockCoreService) TraceCall(ctx context.Context, callerAddr address.Address, blkNumOrHash any, contractAddress string, nonce uint64, amount *big.Int, gasLimit uint64, data []byte, config *tracers.TraceConfig) ([]byte, *action.Receipt, any, error) {
   626  	m.ctrl.T.Helper()
   627  	ret := m.ctrl.Call(m, "TraceCall", ctx, callerAddr, blkNumOrHash, contractAddress, nonce, amount, gasLimit, data, config)
   628  	ret0, _ := ret[0].([]byte)
   629  	ret1, _ := ret[1].(*action.Receipt)
   630  	ret2, _ := ret[2].(any)
   631  	ret3, _ := ret[3].(error)
   632  	return ret0, ret1, ret2, ret3
   633  }
   634  
   635  // TraceCall indicates an expected call of TraceCall.
   636  func (mr *MockCoreServiceMockRecorder) TraceCall(ctx, callerAddr, blkNumOrHash, contractAddress, nonce, amount, gasLimit, data, config interface{}) *gomock.Call {
   637  	mr.mock.ctrl.T.Helper()
   638  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TraceCall", reflect.TypeOf((*MockCoreService)(nil).TraceCall), ctx, callerAddr, blkNumOrHash, contractAddress, nonce, amount, gasLimit, data, config)
   639  }
   640  
   641  // TraceTransaction mocks base method.
   642  func (m *MockCoreService) TraceTransaction(ctx context.Context, actHash string, config *tracers.TraceConfig) ([]byte, *action.Receipt, any, error) {
   643  	m.ctrl.T.Helper()
   644  	ret := m.ctrl.Call(m, "TraceTransaction", ctx, actHash, config)
   645  	ret0, _ := ret[0].([]byte)
   646  	ret1, _ := ret[1].(*action.Receipt)
   647  	ret2, _ := ret[2].(any)
   648  	ret3, _ := ret[3].(error)
   649  	return ret0, ret1, ret2, ret3
   650  }
   651  
   652  // TraceTransaction indicates an expected call of TraceTransaction.
   653  func (mr *MockCoreServiceMockRecorder) TraceTransaction(ctx, actHash, config interface{}) *gomock.Call {
   654  	mr.mock.ctrl.T.Helper()
   655  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TraceTransaction", reflect.TypeOf((*MockCoreService)(nil).TraceTransaction), ctx, actHash, config)
   656  }
   657  
   658  // Track mocks base method.
   659  func (m *MockCoreService) Track(ctx context.Context, start time.Time, method string, size int64, success bool) {
   660  	m.ctrl.T.Helper()
   661  	m.ctrl.Call(m, "Track", ctx, start, method, size, success)
   662  }
   663  
   664  // Track indicates an expected call of Track.
   665  func (mr *MockCoreServiceMockRecorder) Track(ctx, start, method, size, success interface{}) *gomock.Call {
   666  	mr.mock.ctrl.T.Helper()
   667  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Track", reflect.TypeOf((*MockCoreService)(nil).Track), ctx, start, method, size, success)
   668  }
   669  
   670  // TransactionLogByActionHash mocks base method.
   671  func (m *MockCoreService) TransactionLogByActionHash(actHash string) (*iotextypes.TransactionLog, error) {
   672  	m.ctrl.T.Helper()
   673  	ret := m.ctrl.Call(m, "TransactionLogByActionHash", actHash)
   674  	ret0, _ := ret[0].(*iotextypes.TransactionLog)
   675  	ret1, _ := ret[1].(error)
   676  	return ret0, ret1
   677  }
   678  
   679  // TransactionLogByActionHash indicates an expected call of TransactionLogByActionHash.
   680  func (mr *MockCoreServiceMockRecorder) TransactionLogByActionHash(actHash interface{}) *gomock.Call {
   681  	mr.mock.ctrl.T.Helper()
   682  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactionLogByActionHash", reflect.TypeOf((*MockCoreService)(nil).TransactionLogByActionHash), actHash)
   683  }
   684  
   685  // TransactionLogByBlockHeight mocks base method.
   686  func (m *MockCoreService) TransactionLogByBlockHeight(blockHeight uint64) (*iotextypes.BlockIdentifier, *iotextypes.TransactionLogs, error) {
   687  	m.ctrl.T.Helper()
   688  	ret := m.ctrl.Call(m, "TransactionLogByBlockHeight", blockHeight)
   689  	ret0, _ := ret[0].(*iotextypes.BlockIdentifier)
   690  	ret1, _ := ret[1].(*iotextypes.TransactionLogs)
   691  	ret2, _ := ret[2].(error)
   692  	return ret0, ret1, ret2
   693  }
   694  
   695  // TransactionLogByBlockHeight indicates an expected call of TransactionLogByBlockHeight.
   696  func (mr *MockCoreServiceMockRecorder) TransactionLogByBlockHeight(blockHeight interface{}) *gomock.Call {
   697  	mr.mock.ctrl.T.Helper()
   698  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactionLogByBlockHeight", reflect.TypeOf((*MockCoreService)(nil).TransactionLogByBlockHeight), blockHeight)
   699  }
   700  
   701  // UnconfirmedActionsByAddress mocks base method.
   702  func (m *MockCoreService) UnconfirmedActionsByAddress(address string, start, count uint64) ([]*iotexapi.ActionInfo, error) {
   703  	m.ctrl.T.Helper()
   704  	ret := m.ctrl.Call(m, "UnconfirmedActionsByAddress", address, start, count)
   705  	ret0, _ := ret[0].([]*iotexapi.ActionInfo)
   706  	ret1, _ := ret[1].(error)
   707  	return ret0, ret1
   708  }
   709  
   710  // UnconfirmedActionsByAddress indicates an expected call of UnconfirmedActionsByAddress.
   711  func (mr *MockCoreServiceMockRecorder) UnconfirmedActionsByAddress(address, start, count interface{}) *gomock.Call {
   712  	mr.mock.ctrl.T.Helper()
   713  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnconfirmedActionsByAddress", reflect.TypeOf((*MockCoreService)(nil).UnconfirmedActionsByAddress), address, start, count)
   714  }
   715  
   716  // MockintrinsicGasCalculator is a mock of intrinsicGasCalculator interface.
   717  type MockintrinsicGasCalculator struct {
   718  	ctrl     *gomock.Controller
   719  	recorder *MockintrinsicGasCalculatorMockRecorder
   720  }
   721  
   722  // MockintrinsicGasCalculatorMockRecorder is the mock recorder for MockintrinsicGasCalculator.
   723  type MockintrinsicGasCalculatorMockRecorder struct {
   724  	mock *MockintrinsicGasCalculator
   725  }
   726  
   727  // NewMockintrinsicGasCalculator creates a new mock instance.
   728  func NewMockintrinsicGasCalculator(ctrl *gomock.Controller) *MockintrinsicGasCalculator {
   729  	mock := &MockintrinsicGasCalculator{ctrl: ctrl}
   730  	mock.recorder = &MockintrinsicGasCalculatorMockRecorder{mock}
   731  	return mock
   732  }
   733  
   734  // EXPECT returns an object that allows the caller to indicate expected use.
   735  func (m *MockintrinsicGasCalculator) EXPECT() *MockintrinsicGasCalculatorMockRecorder {
   736  	return m.recorder
   737  }
   738  
   739  // IntrinsicGas mocks base method.
   740  func (m *MockintrinsicGasCalculator) IntrinsicGas() (uint64, error) {
   741  	m.ctrl.T.Helper()
   742  	ret := m.ctrl.Call(m, "IntrinsicGas")
   743  	ret0, _ := ret[0].(uint64)
   744  	ret1, _ := ret[1].(error)
   745  	return ret0, ret1
   746  }
   747  
   748  // IntrinsicGas indicates an expected call of IntrinsicGas.
   749  func (mr *MockintrinsicGasCalculatorMockRecorder) IntrinsicGas() *gomock.Call {
   750  	mr.mock.ctrl.T.Helper()
   751  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntrinsicGas", reflect.TypeOf((*MockintrinsicGasCalculator)(nil).IntrinsicGas))
   752  }