code.vegaprotocol.io/vega@v0.79.0/core/client/eth/mocks/ethereum_client_confirmations_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/staking (interfaces: EthereumClientConfirmations) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 big "math/big" 10 reflect "reflect" 11 12 types "github.com/ethereum/go-ethereum/core/types" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockEthereumClientConfirmations is a mock of EthereumClientConfirmations interface. 17 type MockEthereumClientConfirmations struct { 18 ctrl *gomock.Controller 19 recorder *MockEthereumClientConfirmationsMockRecorder 20 } 21 22 // MockEthereumClientConfirmationsMockRecorder is the mock recorder for MockEthereumClientConfirmations. 23 type MockEthereumClientConfirmationsMockRecorder struct { 24 mock *MockEthereumClientConfirmations 25 } 26 27 // NewMockEthereumClientConfirmations creates a new mock instance. 28 func NewMockEthereumClientConfirmations(ctrl *gomock.Controller) *MockEthereumClientConfirmations { 29 mock := &MockEthereumClientConfirmations{ctrl: ctrl} 30 mock.recorder = &MockEthereumClientConfirmationsMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockEthereumClientConfirmations) EXPECT() *MockEthereumClientConfirmationsMockRecorder { 36 return m.recorder 37 } 38 39 // HeaderByNumber mocks base method. 40 func (m *MockEthereumClientConfirmations) HeaderByNumber(arg0 context.Context, arg1 *big.Int) (*types.Header, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "HeaderByNumber", arg0, arg1) 43 ret0, _ := ret[0].(*types.Header) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // HeaderByNumber indicates an expected call of HeaderByNumber. 49 func (mr *MockEthereumClientConfirmationsMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeaderByNumber", reflect.TypeOf((*MockEthereumClientConfirmations)(nil).HeaderByNumber), arg0, arg1) 52 }