github.com/klaytn/klaytn@v1.12.1/governance/interface_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/klaytn/klaytn/governance (interfaces: Engine)
     3  
     4  // Package governance is a generated GoMock package.
     5  package governance
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	types "github.com/klaytn/klaytn/blockchain/types"
    12  	common "github.com/klaytn/klaytn/common"
    13  	istanbul "github.com/klaytn/klaytn/consensus/istanbul"
    14  	params "github.com/klaytn/klaytn/params"
    15  	database "github.com/klaytn/klaytn/storage/database"
    16  )
    17  
    18  // MockEngine is a mock of Engine interface.
    19  type MockEngine struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockEngineMockRecorder
    22  }
    23  
    24  // MockEngineMockRecorder is the mock recorder for MockEngine.
    25  type MockEngineMockRecorder struct {
    26  	mock *MockEngine
    27  }
    28  
    29  // NewMockEngine creates a new mock instance.
    30  func NewMockEngine(ctrl *gomock.Controller) *MockEngine {
    31  	mock := &MockEngine{ctrl: ctrl}
    32  	mock.recorder = &MockEngineMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockEngine) EXPECT() *MockEngineMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // AddVote mocks base method.
    42  func (m *MockEngine) AddVote(arg0 string, arg1 interface{}) bool {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "AddVote", arg0, arg1)
    45  	ret0, _ := ret[0].(bool)
    46  	return ret0
    47  }
    48  
    49  // AddVote indicates an expected call of AddVote.
    50  func (mr *MockEngineMockRecorder) AddVote(arg0, arg1 interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddVote", reflect.TypeOf((*MockEngine)(nil).AddVote), arg0, arg1)
    53  }
    54  
    55  // BlockChain mocks base method.
    56  func (m *MockEngine) BlockChain() blockChain {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "BlockChain")
    59  	ret0, _ := ret[0].(blockChain)
    60  	return ret0
    61  }
    62  
    63  // BlockChain indicates an expected call of BlockChain.
    64  func (mr *MockEngineMockRecorder) BlockChain() *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockChain", reflect.TypeOf((*MockEngine)(nil).BlockChain))
    67  }
    68  
    69  // CanWriteGovernanceState mocks base method.
    70  func (m *MockEngine) CanWriteGovernanceState(arg0 uint64) bool {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "CanWriteGovernanceState", arg0)
    73  	ret0, _ := ret[0].(bool)
    74  	return ret0
    75  }
    76  
    77  // CanWriteGovernanceState indicates an expected call of CanWriteGovernanceState.
    78  func (mr *MockEngineMockRecorder) CanWriteGovernanceState(arg0 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanWriteGovernanceState", reflect.TypeOf((*MockEngine)(nil).CanWriteGovernanceState), arg0)
    81  }
    82  
    83  // ClearVotes mocks base method.
    84  func (m *MockEngine) ClearVotes(arg0 uint64) {
    85  	m.ctrl.T.Helper()
    86  	m.ctrl.Call(m, "ClearVotes", arg0)
    87  }
    88  
    89  // ClearVotes indicates an expected call of ClearVotes.
    90  func (mr *MockEngineMockRecorder) ClearVotes(arg0 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearVotes", reflect.TypeOf((*MockEngine)(nil).ClearVotes), arg0)
    93  }
    94  
    95  // ContractGov mocks base method.
    96  func (m *MockEngine) ContractGov() ReaderEngine {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "ContractGov")
    99  	ret0, _ := ret[0].(ReaderEngine)
   100  	return ret0
   101  }
   102  
   103  // ContractGov indicates an expected call of ContractGov.
   104  func (mr *MockEngineMockRecorder) ContractGov() *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContractGov", reflect.TypeOf((*MockEngine)(nil).ContractGov))
   107  }
   108  
   109  // CurrentParams mocks base method.
   110  func (m *MockEngine) CurrentParams() *params.GovParamSet {
   111  	m.ctrl.T.Helper()
   112  	ret := m.ctrl.Call(m, "CurrentParams")
   113  	ret0, _ := ret[0].(*params.GovParamSet)
   114  	return ret0
   115  }
   116  
   117  // CurrentParams indicates an expected call of CurrentParams.
   118  func (mr *MockEngineMockRecorder) CurrentParams() *gomock.Call {
   119  	mr.mock.ctrl.T.Helper()
   120  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentParams", reflect.TypeOf((*MockEngine)(nil).CurrentParams))
   121  }
   122  
   123  // CurrentSetCopy mocks base method.
   124  func (m *MockEngine) CurrentSetCopy() map[string]interface{} {
   125  	m.ctrl.T.Helper()
   126  	ret := m.ctrl.Call(m, "CurrentSetCopy")
   127  	ret0, _ := ret[0].(map[string]interface{})
   128  	return ret0
   129  }
   130  
   131  // CurrentSetCopy indicates an expected call of CurrentSetCopy.
   132  func (mr *MockEngineMockRecorder) CurrentSetCopy() *gomock.Call {
   133  	mr.mock.ctrl.T.Helper()
   134  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentSetCopy", reflect.TypeOf((*MockEngine)(nil).CurrentSetCopy))
   135  }
   136  
   137  // DB mocks base method.
   138  func (m *MockEngine) DB() database.DBManager {
   139  	m.ctrl.T.Helper()
   140  	ret := m.ctrl.Call(m, "DB")
   141  	ret0, _ := ret[0].(database.DBManager)
   142  	return ret0
   143  }
   144  
   145  // DB indicates an expected call of DB.
   146  func (mr *MockEngineMockRecorder) DB() *gomock.Call {
   147  	mr.mock.ctrl.T.Helper()
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DB", reflect.TypeOf((*MockEngine)(nil).DB))
   149  }
   150  
   151  // EffectiveParams mocks base method.
   152  func (m *MockEngine) EffectiveParams(arg0 uint64) (*params.GovParamSet, error) {
   153  	m.ctrl.T.Helper()
   154  	ret := m.ctrl.Call(m, "EffectiveParams", arg0)
   155  	ret0, _ := ret[0].(*params.GovParamSet)
   156  	ret1, _ := ret[1].(error)
   157  	return ret0, ret1
   158  }
   159  
   160  // EffectiveParams indicates an expected call of EffectiveParams.
   161  func (mr *MockEngineMockRecorder) EffectiveParams(arg0 interface{}) *gomock.Call {
   162  	mr.mock.ctrl.T.Helper()
   163  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveParams", reflect.TypeOf((*MockEngine)(nil).EffectiveParams), arg0)
   164  }
   165  
   166  // GetEncodedVote mocks base method.
   167  func (m *MockEngine) GetEncodedVote(arg0 common.Address, arg1 uint64) []byte {
   168  	m.ctrl.T.Helper()
   169  	ret := m.ctrl.Call(m, "GetEncodedVote", arg0, arg1)
   170  	ret0, _ := ret[0].([]byte)
   171  	return ret0
   172  }
   173  
   174  // GetEncodedVote indicates an expected call of GetEncodedVote.
   175  func (mr *MockEngineMockRecorder) GetEncodedVote(arg0, arg1 interface{}) *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncodedVote", reflect.TypeOf((*MockEngine)(nil).GetEncodedVote), arg0, arg1)
   178  }
   179  
   180  // GetGovernanceChange mocks base method.
   181  func (m *MockEngine) GetGovernanceChange() map[string]interface{} {
   182  	m.ctrl.T.Helper()
   183  	ret := m.ctrl.Call(m, "GetGovernanceChange")
   184  	ret0, _ := ret[0].(map[string]interface{})
   185  	return ret0
   186  }
   187  
   188  // GetGovernanceChange indicates an expected call of GetGovernanceChange.
   189  func (mr *MockEngineMockRecorder) GetGovernanceChange() *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGovernanceChange", reflect.TypeOf((*MockEngine)(nil).GetGovernanceChange))
   192  }
   193  
   194  // GetGovernanceTalliesCopy mocks base method.
   195  func (m *MockEngine) GetGovernanceTalliesCopy() []GovernanceTallyItem {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "GetGovernanceTalliesCopy")
   198  	ret0, _ := ret[0].([]GovernanceTallyItem)
   199  	return ret0
   200  }
   201  
   202  // GetGovernanceTalliesCopy indicates an expected call of GetGovernanceTalliesCopy.
   203  func (mr *MockEngineMockRecorder) GetGovernanceTalliesCopy() *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGovernanceTalliesCopy", reflect.TypeOf((*MockEngine)(nil).GetGovernanceTalliesCopy))
   206  }
   207  
   208  // GetTxPool mocks base method.
   209  func (m *MockEngine) GetTxPool() txPool {
   210  	m.ctrl.T.Helper()
   211  	ret := m.ctrl.Call(m, "GetTxPool")
   212  	ret0, _ := ret[0].(txPool)
   213  	return ret0
   214  }
   215  
   216  // GetTxPool indicates an expected call of GetTxPool.
   217  func (mr *MockEngineMockRecorder) GetTxPool() *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTxPool", reflect.TypeOf((*MockEngine)(nil).GetTxPool))
   220  }
   221  
   222  // GetVoteMapCopy mocks base method.
   223  func (m *MockEngine) GetVoteMapCopy() map[string]VoteStatus {
   224  	m.ctrl.T.Helper()
   225  	ret := m.ctrl.Call(m, "GetVoteMapCopy")
   226  	ret0, _ := ret[0].(map[string]VoteStatus)
   227  	return ret0
   228  }
   229  
   230  // GetVoteMapCopy indicates an expected call of GetVoteMapCopy.
   231  func (mr *MockEngineMockRecorder) GetVoteMapCopy() *gomock.Call {
   232  	mr.mock.ctrl.T.Helper()
   233  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVoteMapCopy", reflect.TypeOf((*MockEngine)(nil).GetVoteMapCopy))
   234  }
   235  
   236  // HandleGovernanceVote mocks base method.
   237  func (m *MockEngine) HandleGovernanceVote(arg0 istanbul.ValidatorSet, arg1 []GovernanceVote, arg2 []GovernanceTallyItem, arg3 *types.Header, arg4, arg5 common.Address, arg6 bool) (istanbul.ValidatorSet, []GovernanceVote, []GovernanceTallyItem) {
   238  	m.ctrl.T.Helper()
   239  	ret := m.ctrl.Call(m, "HandleGovernanceVote", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
   240  	ret0, _ := ret[0].(istanbul.ValidatorSet)
   241  	ret1, _ := ret[1].([]GovernanceVote)
   242  	ret2, _ := ret[2].([]GovernanceTallyItem)
   243  	return ret0, ret1, ret2
   244  }
   245  
   246  // HandleGovernanceVote indicates an expected call of HandleGovernanceVote.
   247  func (mr *MockEngineMockRecorder) HandleGovernanceVote(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
   248  	mr.mock.ctrl.T.Helper()
   249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleGovernanceVote", reflect.TypeOf((*MockEngine)(nil).HandleGovernanceVote), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
   250  }
   251  
   252  // HeaderGov mocks base method.
   253  func (m *MockEngine) HeaderGov() HeaderEngine {
   254  	m.ctrl.T.Helper()
   255  	ret := m.ctrl.Call(m, "HeaderGov")
   256  	ret0, _ := ret[0].(HeaderEngine)
   257  	return ret0
   258  }
   259  
   260  // HeaderGov indicates an expected call of HeaderGov.
   261  func (mr *MockEngineMockRecorder) HeaderGov() *gomock.Call {
   262  	mr.mock.ctrl.T.Helper()
   263  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeaderGov", reflect.TypeOf((*MockEngine)(nil).HeaderGov))
   264  }
   265  
   266  // IdxCache mocks base method.
   267  func (m *MockEngine) IdxCache() []uint64 {
   268  	m.ctrl.T.Helper()
   269  	ret := m.ctrl.Call(m, "IdxCache")
   270  	ret0, _ := ret[0].([]uint64)
   271  	return ret0
   272  }
   273  
   274  // IdxCache indicates an expected call of IdxCache.
   275  func (mr *MockEngineMockRecorder) IdxCache() *gomock.Call {
   276  	mr.mock.ctrl.T.Helper()
   277  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdxCache", reflect.TypeOf((*MockEngine)(nil).IdxCache))
   278  }
   279  
   280  // IdxCacheFromDb mocks base method.
   281  func (m *MockEngine) IdxCacheFromDb() []uint64 {
   282  	m.ctrl.T.Helper()
   283  	ret := m.ctrl.Call(m, "IdxCacheFromDb")
   284  	ret0, _ := ret[0].([]uint64)
   285  	return ret0
   286  }
   287  
   288  // IdxCacheFromDb indicates an expected call of IdxCacheFromDb.
   289  func (mr *MockEngineMockRecorder) IdxCacheFromDb() *gomock.Call {
   290  	mr.mock.ctrl.T.Helper()
   291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdxCacheFromDb", reflect.TypeOf((*MockEngine)(nil).IdxCacheFromDb))
   292  }
   293  
   294  // InitGovCache mocks base method.
   295  func (m *MockEngine) InitGovCache() {
   296  	m.ctrl.T.Helper()
   297  	m.ctrl.Call(m, "InitGovCache")
   298  }
   299  
   300  // InitGovCache indicates an expected call of InitGovCache.
   301  func (mr *MockEngineMockRecorder) InitGovCache() *gomock.Call {
   302  	mr.mock.ctrl.T.Helper()
   303  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitGovCache", reflect.TypeOf((*MockEngine)(nil).InitGovCache))
   304  }
   305  
   306  // InitLastGovStateBlkNum mocks base method.
   307  func (m *MockEngine) InitLastGovStateBlkNum() {
   308  	m.ctrl.T.Helper()
   309  	m.ctrl.Call(m, "InitLastGovStateBlkNum")
   310  }
   311  
   312  // InitLastGovStateBlkNum indicates an expected call of InitLastGovStateBlkNum.
   313  func (mr *MockEngineMockRecorder) InitLastGovStateBlkNum() *gomock.Call {
   314  	mr.mock.ctrl.T.Helper()
   315  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitLastGovStateBlkNum", reflect.TypeOf((*MockEngine)(nil).InitLastGovStateBlkNum))
   316  }
   317  
   318  // MyVotingPower mocks base method.
   319  func (m *MockEngine) MyVotingPower() uint64 {
   320  	m.ctrl.T.Helper()
   321  	ret := m.ctrl.Call(m, "MyVotingPower")
   322  	ret0, _ := ret[0].(uint64)
   323  	return ret0
   324  }
   325  
   326  // MyVotingPower indicates an expected call of MyVotingPower.
   327  func (mr *MockEngineMockRecorder) MyVotingPower() *gomock.Call {
   328  	mr.mock.ctrl.T.Helper()
   329  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MyVotingPower", reflect.TypeOf((*MockEngine)(nil).MyVotingPower))
   330  }
   331  
   332  // NodeAddress mocks base method.
   333  func (m *MockEngine) NodeAddress() common.Address {
   334  	m.ctrl.T.Helper()
   335  	ret := m.ctrl.Call(m, "NodeAddress")
   336  	ret0, _ := ret[0].(common.Address)
   337  	return ret0
   338  }
   339  
   340  // NodeAddress indicates an expected call of NodeAddress.
   341  func (mr *MockEngineMockRecorder) NodeAddress() *gomock.Call {
   342  	mr.mock.ctrl.T.Helper()
   343  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeAddress", reflect.TypeOf((*MockEngine)(nil).NodeAddress))
   344  }
   345  
   346  // PendingChanges mocks base method.
   347  func (m *MockEngine) PendingChanges() map[string]interface{} {
   348  	m.ctrl.T.Helper()
   349  	ret := m.ctrl.Call(m, "PendingChanges")
   350  	ret0, _ := ret[0].(map[string]interface{})
   351  	return ret0
   352  }
   353  
   354  // PendingChanges indicates an expected call of PendingChanges.
   355  func (mr *MockEngineMockRecorder) PendingChanges() *gomock.Call {
   356  	mr.mock.ctrl.T.Helper()
   357  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingChanges", reflect.TypeOf((*MockEngine)(nil).PendingChanges))
   358  }
   359  
   360  // ReadGovernance mocks base method.
   361  func (m *MockEngine) ReadGovernance(arg0 uint64) (uint64, map[string]interface{}, error) {
   362  	m.ctrl.T.Helper()
   363  	ret := m.ctrl.Call(m, "ReadGovernance", arg0)
   364  	ret0, _ := ret[0].(uint64)
   365  	ret1, _ := ret[1].(map[string]interface{})
   366  	ret2, _ := ret[2].(error)
   367  	return ret0, ret1, ret2
   368  }
   369  
   370  // ReadGovernance indicates an expected call of ReadGovernance.
   371  func (mr *MockEngineMockRecorder) ReadGovernance(arg0 interface{}) *gomock.Call {
   372  	mr.mock.ctrl.T.Helper()
   373  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadGovernance", reflect.TypeOf((*MockEngine)(nil).ReadGovernance), arg0)
   374  }
   375  
   376  // SetBlockchain mocks base method.
   377  func (m *MockEngine) SetBlockchain(arg0 blockChain) {
   378  	m.ctrl.T.Helper()
   379  	m.ctrl.Call(m, "SetBlockchain", arg0)
   380  }
   381  
   382  // SetBlockchain indicates an expected call of SetBlockchain.
   383  func (mr *MockEngineMockRecorder) SetBlockchain(arg0 interface{}) *gomock.Call {
   384  	mr.mock.ctrl.T.Helper()
   385  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockchain", reflect.TypeOf((*MockEngine)(nil).SetBlockchain), arg0)
   386  }
   387  
   388  // SetMyVotingPower mocks base method.
   389  func (m *MockEngine) SetMyVotingPower(arg0 uint64) {
   390  	m.ctrl.T.Helper()
   391  	m.ctrl.Call(m, "SetMyVotingPower", arg0)
   392  }
   393  
   394  // SetMyVotingPower indicates an expected call of SetMyVotingPower.
   395  func (mr *MockEngineMockRecorder) SetMyVotingPower(arg0 interface{}) *gomock.Call {
   396  	mr.mock.ctrl.T.Helper()
   397  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMyVotingPower", reflect.TypeOf((*MockEngine)(nil).SetMyVotingPower), arg0)
   398  }
   399  
   400  // SetNodeAddress mocks base method.
   401  func (m *MockEngine) SetNodeAddress(arg0 common.Address) {
   402  	m.ctrl.T.Helper()
   403  	m.ctrl.Call(m, "SetNodeAddress", arg0)
   404  }
   405  
   406  // SetNodeAddress indicates an expected call of SetNodeAddress.
   407  func (mr *MockEngineMockRecorder) SetNodeAddress(arg0 interface{}) *gomock.Call {
   408  	mr.mock.ctrl.T.Helper()
   409  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNodeAddress", reflect.TypeOf((*MockEngine)(nil).SetNodeAddress), arg0)
   410  }
   411  
   412  // SetTotalVotingPower mocks base method.
   413  func (m *MockEngine) SetTotalVotingPower(arg0 uint64) {
   414  	m.ctrl.T.Helper()
   415  	m.ctrl.Call(m, "SetTotalVotingPower", arg0)
   416  }
   417  
   418  // SetTotalVotingPower indicates an expected call of SetTotalVotingPower.
   419  func (mr *MockEngineMockRecorder) SetTotalVotingPower(arg0 interface{}) *gomock.Call {
   420  	mr.mock.ctrl.T.Helper()
   421  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTotalVotingPower", reflect.TypeOf((*MockEngine)(nil).SetTotalVotingPower), arg0)
   422  }
   423  
   424  // SetTxPool mocks base method.
   425  func (m *MockEngine) SetTxPool(arg0 txPool) {
   426  	m.ctrl.T.Helper()
   427  	m.ctrl.Call(m, "SetTxPool", arg0)
   428  }
   429  
   430  // SetTxPool indicates an expected call of SetTxPool.
   431  func (mr *MockEngineMockRecorder) SetTxPool(arg0 interface{}) *gomock.Call {
   432  	mr.mock.ctrl.T.Helper()
   433  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTxPool", reflect.TypeOf((*MockEngine)(nil).SetTxPool), arg0)
   434  }
   435  
   436  // TotalVotingPower mocks base method.
   437  func (m *MockEngine) TotalVotingPower() uint64 {
   438  	m.ctrl.T.Helper()
   439  	ret := m.ctrl.Call(m, "TotalVotingPower")
   440  	ret0, _ := ret[0].(uint64)
   441  	return ret0
   442  }
   443  
   444  // TotalVotingPower indicates an expected call of TotalVotingPower.
   445  func (mr *MockEngineMockRecorder) TotalVotingPower() *gomock.Call {
   446  	mr.mock.ctrl.T.Helper()
   447  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalVotingPower", reflect.TypeOf((*MockEngine)(nil).TotalVotingPower))
   448  }
   449  
   450  // UpdateCurrentSet mocks base method.
   451  func (m *MockEngine) UpdateCurrentSet(arg0 uint64) {
   452  	m.ctrl.T.Helper()
   453  	m.ctrl.Call(m, "UpdateCurrentSet", arg0)
   454  }
   455  
   456  // UpdateCurrentSet indicates an expected call of UpdateCurrentSet.
   457  func (mr *MockEngineMockRecorder) UpdateCurrentSet(arg0 interface{}) *gomock.Call {
   458  	mr.mock.ctrl.T.Helper()
   459  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentSet", reflect.TypeOf((*MockEngine)(nil).UpdateCurrentSet), arg0)
   460  }
   461  
   462  // UpdateParams mocks base method.
   463  func (m *MockEngine) UpdateParams(arg0 uint64) error {
   464  	m.ctrl.T.Helper()
   465  	ret := m.ctrl.Call(m, "UpdateParams", arg0)
   466  	ret0, _ := ret[0].(error)
   467  	return ret0
   468  }
   469  
   470  // UpdateParams indicates an expected call of UpdateParams.
   471  func (mr *MockEngineMockRecorder) UpdateParams(arg0 interface{}) *gomock.Call {
   472  	mr.mock.ctrl.T.Helper()
   473  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateParams", reflect.TypeOf((*MockEngine)(nil).UpdateParams), arg0)
   474  }
   475  
   476  // ValidateVote mocks base method.
   477  func (m *MockEngine) ValidateVote(arg0 *GovernanceVote) (*GovernanceVote, bool) {
   478  	m.ctrl.T.Helper()
   479  	ret := m.ctrl.Call(m, "ValidateVote", arg0)
   480  	ret0, _ := ret[0].(*GovernanceVote)
   481  	ret1, _ := ret[1].(bool)
   482  	return ret0, ret1
   483  }
   484  
   485  // ValidateVote indicates an expected call of ValidateVote.
   486  func (mr *MockEngineMockRecorder) ValidateVote(arg0 interface{}) *gomock.Call {
   487  	mr.mock.ctrl.T.Helper()
   488  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateVote", reflect.TypeOf((*MockEngine)(nil).ValidateVote), arg0)
   489  }
   490  
   491  // VerifyGovernance mocks base method.
   492  func (m *MockEngine) VerifyGovernance(arg0 []byte) error {
   493  	m.ctrl.T.Helper()
   494  	ret := m.ctrl.Call(m, "VerifyGovernance", arg0)
   495  	ret0, _ := ret[0].(error)
   496  	return ret0
   497  }
   498  
   499  // VerifyGovernance indicates an expected call of VerifyGovernance.
   500  func (mr *MockEngineMockRecorder) VerifyGovernance(arg0 interface{}) *gomock.Call {
   501  	mr.mock.ctrl.T.Helper()
   502  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyGovernance", reflect.TypeOf((*MockEngine)(nil).VerifyGovernance), arg0)
   503  }
   504  
   505  // Votes mocks base method.
   506  func (m *MockEngine) Votes() []GovernanceVote {
   507  	m.ctrl.T.Helper()
   508  	ret := m.ctrl.Call(m, "Votes")
   509  	ret0, _ := ret[0].([]GovernanceVote)
   510  	return ret0
   511  }
   512  
   513  // Votes indicates an expected call of Votes.
   514  func (mr *MockEngineMockRecorder) Votes() *gomock.Call {
   515  	mr.mock.ctrl.T.Helper()
   516  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Votes", reflect.TypeOf((*MockEngine)(nil).Votes))
   517  }
   518  
   519  // WriteGovernance mocks base method.
   520  func (m *MockEngine) WriteGovernance(arg0 uint64, arg1, arg2 GovernanceSet) error {
   521  	m.ctrl.T.Helper()
   522  	ret := m.ctrl.Call(m, "WriteGovernance", arg0, arg1, arg2)
   523  	ret0, _ := ret[0].(error)
   524  	return ret0
   525  }
   526  
   527  // WriteGovernance indicates an expected call of WriteGovernance.
   528  func (mr *MockEngineMockRecorder) WriteGovernance(arg0, arg1, arg2 interface{}) *gomock.Call {
   529  	mr.mock.ctrl.T.Helper()
   530  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteGovernance", reflect.TypeOf((*MockEngine)(nil).WriteGovernance), arg0, arg1, arg2)
   531  }
   532  
   533  // WriteGovernanceForNextEpoch mocks base method.
   534  func (m *MockEngine) WriteGovernanceForNextEpoch(arg0 uint64, arg1 []byte) {
   535  	m.ctrl.T.Helper()
   536  	m.ctrl.Call(m, "WriteGovernanceForNextEpoch", arg0, arg1)
   537  }
   538  
   539  // WriteGovernanceForNextEpoch indicates an expected call of WriteGovernanceForNextEpoch.
   540  func (mr *MockEngineMockRecorder) WriteGovernanceForNextEpoch(arg0, arg1 interface{}) *gomock.Call {
   541  	mr.mock.ctrl.T.Helper()
   542  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteGovernanceForNextEpoch", reflect.TypeOf((*MockEngine)(nil).WriteGovernanceForNextEpoch), arg0, arg1)
   543  }
   544  
   545  // WriteGovernanceState mocks base method.
   546  func (m *MockEngine) WriteGovernanceState(arg0 uint64, arg1 bool) error {
   547  	m.ctrl.T.Helper()
   548  	ret := m.ctrl.Call(m, "WriteGovernanceState", arg0, arg1)
   549  	ret0, _ := ret[0].(error)
   550  	return ret0
   551  }
   552  
   553  // WriteGovernanceState indicates an expected call of WriteGovernanceState.
   554  func (mr *MockEngineMockRecorder) WriteGovernanceState(arg0, arg1 interface{}) *gomock.Call {
   555  	mr.mock.ctrl.T.Helper()
   556  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteGovernanceState", reflect.TypeOf((*MockEngine)(nil).WriteGovernanceState), arg0, arg1)
   557  }