code.vegaprotocol.io/vega@v0.79.0/datanode/api/mocks/amm_service_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/datanode/api (interfaces: AMMService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 entities "code.vegaprotocol.io/vega/datanode/entities" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockAMMService is a mock of AMMService interface. 16 type MockAMMService struct { 17 ctrl *gomock.Controller 18 recorder *MockAMMServiceMockRecorder 19 } 20 21 // MockAMMServiceMockRecorder is the mock recorder for MockAMMService. 22 type MockAMMServiceMockRecorder struct { 23 mock *MockAMMService 24 } 25 26 // NewMockAMMService creates a new mock instance. 27 func NewMockAMMService(ctrl *gomock.Controller) *MockAMMService { 28 mock := &MockAMMService{ctrl: ctrl} 29 mock.recorder = &MockAMMServiceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockAMMService) EXPECT() *MockAMMServiceMockRecorder { 35 return m.recorder 36 } 37 38 // GetSubKeysForParties mocks base method. 39 func (m *MockAMMService) GetSubKeysForParties(arg0 context.Context, arg1, arg2 []string) ([]string, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "GetSubKeysForParties", arg0, arg1, arg2) 42 ret0, _ := ret[0].([]string) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // GetSubKeysForParties indicates an expected call of GetSubKeysForParties. 48 func (mr *MockAMMServiceMockRecorder) GetSubKeysForParties(arg0, arg1, arg2 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubKeysForParties", reflect.TypeOf((*MockAMMService)(nil).GetSubKeysForParties), arg0, arg1, arg2) 51 } 52 53 // ListAll mocks base method. 54 func (m *MockAMMService) ListAll(arg0 context.Context, arg1 bool, arg2 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "ListAll", arg0, arg1, arg2) 57 ret0, _ := ret[0].([]entities.AMMPool) 58 ret1, _ := ret[1].(entities.PageInfo) 59 ret2, _ := ret[2].(error) 60 return ret0, ret1, ret2 61 } 62 63 // ListAll indicates an expected call of ListAll. 64 func (mr *MockAMMServiceMockRecorder) ListAll(arg0, arg1, arg2 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAll", reflect.TypeOf((*MockAMMService)(nil).ListAll), arg0, arg1, arg2) 67 } 68 69 // ListByMarket mocks base method. 70 func (m *MockAMMService) ListByMarket(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "ListByMarket", arg0, arg1, arg2, arg3) 73 ret0, _ := ret[0].([]entities.AMMPool) 74 ret1, _ := ret[1].(entities.PageInfo) 75 ret2, _ := ret[2].(error) 76 return ret0, ret1, ret2 77 } 78 79 // ListByMarket indicates an expected call of ListByMarket. 80 func (mr *MockAMMServiceMockRecorder) ListByMarket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByMarket", reflect.TypeOf((*MockAMMService)(nil).ListByMarket), arg0, arg1, arg2, arg3) 83 } 84 85 // ListByParty mocks base method. 86 func (m *MockAMMService) ListByParty(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "ListByParty", arg0, arg1, arg2, arg3) 89 ret0, _ := ret[0].([]entities.AMMPool) 90 ret1, _ := ret[1].(entities.PageInfo) 91 ret2, _ := ret[2].(error) 92 return ret0, ret1, ret2 93 } 94 95 // ListByParty indicates an expected call of ListByParty. 96 func (mr *MockAMMServiceMockRecorder) ListByParty(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByParty", reflect.TypeOf((*MockAMMService)(nil).ListByParty), arg0, arg1, arg2, arg3) 99 } 100 101 // ListByPartyMarketStatus mocks base method. 102 func (m *MockAMMService) ListByPartyMarketStatus(arg0 context.Context, arg1, arg2 *string, arg3 *entities.AMMStatus, arg4 bool, arg5 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "ListByPartyMarketStatus", arg0, arg1, arg2, arg3, arg4, arg5) 105 ret0, _ := ret[0].([]entities.AMMPool) 106 ret1, _ := ret[1].(entities.PageInfo) 107 ret2, _ := ret[2].(error) 108 return ret0, ret1, ret2 109 } 110 111 // ListByPartyMarketStatus indicates an expected call of ListByPartyMarketStatus. 112 func (mr *MockAMMServiceMockRecorder) ListByPartyMarketStatus(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByPartyMarketStatus", reflect.TypeOf((*MockAMMService)(nil).ListByPartyMarketStatus), arg0, arg1, arg2, arg3, arg4, arg5) 115 } 116 117 // ListByPool mocks base method. 118 func (m *MockAMMService) ListByPool(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "ListByPool", arg0, arg1, arg2, arg3) 121 ret0, _ := ret[0].([]entities.AMMPool) 122 ret1, _ := ret[1].(entities.PageInfo) 123 ret2, _ := ret[2].(error) 124 return ret0, ret1, ret2 125 } 126 127 // ListByPool indicates an expected call of ListByPool. 128 func (mr *MockAMMServiceMockRecorder) ListByPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 129 mr.mock.ctrl.T.Helper() 130 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByPool", reflect.TypeOf((*MockAMMService)(nil).ListByPool), arg0, arg1, arg2, arg3) 131 } 132 133 // ListByStatus mocks base method. 134 func (m *MockAMMService) ListByStatus(arg0 context.Context, arg1 entities.AMMStatus, arg2 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 135 m.ctrl.T.Helper() 136 ret := m.ctrl.Call(m, "ListByStatus", arg0, arg1, arg2) 137 ret0, _ := ret[0].([]entities.AMMPool) 138 ret1, _ := ret[1].(entities.PageInfo) 139 ret2, _ := ret[2].(error) 140 return ret0, ret1, ret2 141 } 142 143 // ListByStatus indicates an expected call of ListByStatus. 144 func (mr *MockAMMServiceMockRecorder) ListByStatus(arg0, arg1, arg2 interface{}) *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByStatus", reflect.TypeOf((*MockAMMService)(nil).ListByStatus), arg0, arg1, arg2) 147 } 148 149 // ListBySubAccount mocks base method. 150 func (m *MockAMMService) ListBySubAccount(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.AMMPool, entities.PageInfo, error) { 151 m.ctrl.T.Helper() 152 ret := m.ctrl.Call(m, "ListBySubAccount", arg0, arg1, arg2, arg3) 153 ret0, _ := ret[0].([]entities.AMMPool) 154 ret1, _ := ret[1].(entities.PageInfo) 155 ret2, _ := ret[2].(error) 156 return ret0, ret1, ret2 157 } 158 159 // ListBySubAccount indicates an expected call of ListBySubAccount. 160 func (mr *MockAMMServiceMockRecorder) ListBySubAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBySubAccount", reflect.TypeOf((*MockAMMService)(nil).ListBySubAccount), arg0, arg1, arg2, arg3) 163 }