github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/genesis_contract_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/ethereum/go-ethereum/consensus/bor (interfaces: GenesisContract) 3 4 // Package bor is a generated GoMock package. 5 package bor 6 7 import ( 8 big "math/big" 9 reflect "reflect" 10 11 common "github.com/ethereum/go-ethereum/common" 12 clerk "github.com/ethereum/go-ethereum/consensus/bor/clerk" 13 statefull "github.com/ethereum/go-ethereum/consensus/bor/statefull" 14 state "github.com/ethereum/go-ethereum/core/state" 15 types "github.com/ethereum/go-ethereum/core/types" 16 gomock "github.com/golang/mock/gomock" 17 ) 18 19 // MockGenesisContract is a mock of GenesisContract interface. 20 type MockGenesisContract struct { 21 ctrl *gomock.Controller 22 recorder *MockGenesisContractMockRecorder 23 } 24 25 // MockGenesisContractMockRecorder is the mock recorder for MockGenesisContract. 26 type MockGenesisContractMockRecorder struct { 27 mock *MockGenesisContract 28 } 29 30 // NewMockGenesisContract creates a new mock instance. 31 func NewMockGenesisContract(ctrl *gomock.Controller) *MockGenesisContract { 32 mock := &MockGenesisContract{ctrl: ctrl} 33 mock.recorder = &MockGenesisContractMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockGenesisContract) EXPECT() *MockGenesisContractMockRecorder { 39 return m.recorder 40 } 41 42 // CommitState mocks base method. 43 func (m *MockGenesisContract) CommitState(arg0 *clerk.EventRecordWithTime, arg1 *state.StateDB, arg2 *types.Header, arg3 statefull.ChainContext) (uint64, error) { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "CommitState", arg0, arg1, arg2, arg3) 46 ret0, _ := ret[0].(uint64) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // CommitState indicates an expected call of CommitState. 52 func (mr *MockGenesisContractMockRecorder) CommitState(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitState", reflect.TypeOf((*MockGenesisContract)(nil).CommitState), arg0, arg1, arg2, arg3) 55 } 56 57 // LastStateId mocks base method. 58 func (m *MockGenesisContract) LastStateId(arg0 *state.StateDB, arg1 uint64, arg2 common.Hash) (*big.Int, error) { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "LastStateId", arg0, arg1, arg2) 61 ret0, _ := ret[0].(*big.Int) 62 ret1, _ := ret[1].(error) 63 return ret0, ret1 64 } 65 66 // LastStateId indicates an expected call of LastStateId. 67 func (mr *MockGenesisContractMockRecorder) LastStateId(arg0, arg1, arg2 interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastStateId", reflect.TypeOf((*MockGenesisContract)(nil).LastStateId), arg0, arg1, arg2) 70 }