code.vegaprotocol.io/vega@v0.79.0/datanode/service/mocks/mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/datanode/service (interfaces: OrderStore,ChainStore,MarketStore,MarketDataStore,PositionStore,AccountStore,BalanceStore,RewardStore,AMMStore,AssetStore) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 entities "code.vegaprotocol.io/vega/datanode/entities" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockOrderStore is a mock of OrderStore interface. 17 type MockOrderStore struct { 18 ctrl *gomock.Controller 19 recorder *MockOrderStoreMockRecorder 20 } 21 22 // MockOrderStoreMockRecorder is the mock recorder for MockOrderStore. 23 type MockOrderStoreMockRecorder struct { 24 mock *MockOrderStore 25 } 26 27 // NewMockOrderStore creates a new mock instance. 28 func NewMockOrderStore(ctrl *gomock.Controller) *MockOrderStore { 29 mock := &MockOrderStore{ctrl: ctrl} 30 mock.recorder = &MockOrderStoreMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockOrderStore) EXPECT() *MockOrderStoreMockRecorder { 36 return m.recorder 37 } 38 39 // GetLiveOrders mocks base method. 40 func (m *MockOrderStore) GetLiveOrders(arg0 context.Context) ([]entities.Order, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "GetLiveOrders", arg0) 43 ret0, _ := ret[0].([]entities.Order) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // GetLiveOrders indicates an expected call of GetLiveOrders. 49 func (mr *MockOrderStoreMockRecorder) GetLiveOrders(arg0 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLiveOrders", reflect.TypeOf((*MockOrderStore)(nil).GetLiveOrders), arg0) 52 } 53 54 // MockChainStore is a mock of ChainStore interface. 55 type MockChainStore struct { 56 ctrl *gomock.Controller 57 recorder *MockChainStoreMockRecorder 58 } 59 60 // MockChainStoreMockRecorder is the mock recorder for MockChainStore. 61 type MockChainStoreMockRecorder struct { 62 mock *MockChainStore 63 } 64 65 // NewMockChainStore creates a new mock instance. 66 func NewMockChainStore(ctrl *gomock.Controller) *MockChainStore { 67 mock := &MockChainStore{ctrl: ctrl} 68 mock.recorder = &MockChainStoreMockRecorder{mock} 69 return mock 70 } 71 72 // EXPECT returns an object that allows the caller to indicate expected use. 73 func (m *MockChainStore) EXPECT() *MockChainStoreMockRecorder { 74 return m.recorder 75 } 76 77 // Get mocks base method. 78 func (m *MockChainStore) Get(arg0 context.Context) (entities.Chain, error) { 79 m.ctrl.T.Helper() 80 ret := m.ctrl.Call(m, "Get", arg0) 81 ret0, _ := ret[0].(entities.Chain) 82 ret1, _ := ret[1].(error) 83 return ret0, ret1 84 } 85 86 // Get indicates an expected call of Get. 87 func (mr *MockChainStoreMockRecorder) Get(arg0 interface{}) *gomock.Call { 88 mr.mock.ctrl.T.Helper() 89 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockChainStore)(nil).Get), arg0) 90 } 91 92 // Set mocks base method. 93 func (m *MockChainStore) Set(arg0 context.Context, arg1 entities.Chain) error { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "Set", arg0, arg1) 96 ret0, _ := ret[0].(error) 97 return ret0 98 } 99 100 // Set indicates an expected call of Set. 101 func (mr *MockChainStoreMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockChainStore)(nil).Set), arg0, arg1) 104 } 105 106 // MockMarketStore is a mock of MarketStore interface. 107 type MockMarketStore struct { 108 ctrl *gomock.Controller 109 recorder *MockMarketStoreMockRecorder 110 } 111 112 // MockMarketStoreMockRecorder is the mock recorder for MockMarketStore. 113 type MockMarketStoreMockRecorder struct { 114 mock *MockMarketStore 115 } 116 117 // NewMockMarketStore creates a new mock instance. 118 func NewMockMarketStore(ctrl *gomock.Controller) *MockMarketStore { 119 mock := &MockMarketStore{ctrl: ctrl} 120 mock.recorder = &MockMarketStoreMockRecorder{mock} 121 return mock 122 } 123 124 // EXPECT returns an object that allows the caller to indicate expected use. 125 func (m *MockMarketStore) EXPECT() *MockMarketStoreMockRecorder { 126 return m.recorder 127 } 128 129 // GetAllFees mocks base method. 130 func (m *MockMarketStore) GetAllFees(arg0 context.Context) ([]entities.Market, error) { 131 m.ctrl.T.Helper() 132 ret := m.ctrl.Call(m, "GetAllFees", arg0) 133 ret0, _ := ret[0].([]entities.Market) 134 ret1, _ := ret[1].(error) 135 return ret0, ret1 136 } 137 138 // GetAllFees indicates an expected call of GetAllFees. 139 func (mr *MockMarketStoreMockRecorder) GetAllFees(arg0 interface{}) *gomock.Call { 140 mr.mock.ctrl.T.Helper() 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllFees", reflect.TypeOf((*MockMarketStore)(nil).GetAllFees), arg0) 142 } 143 144 // GetAllPaged mocks base method. 145 func (m *MockMarketStore) GetAllPaged(arg0 context.Context, arg1 string, arg2 entities.CursorPagination, arg3 bool) ([]entities.Market, entities.PageInfo, error) { 146 m.ctrl.T.Helper() 147 ret := m.ctrl.Call(m, "GetAllPaged", arg0, arg1, arg2, arg3) 148 ret0, _ := ret[0].([]entities.Market) 149 ret1, _ := ret[1].(entities.PageInfo) 150 ret2, _ := ret[2].(error) 151 return ret0, ret1, ret2 152 } 153 154 // GetAllPaged indicates an expected call of GetAllPaged. 155 func (mr *MockMarketStoreMockRecorder) GetAllPaged(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllPaged", reflect.TypeOf((*MockMarketStore)(nil).GetAllPaged), arg0, arg1, arg2, arg3) 158 } 159 160 // GetByID mocks base method. 161 func (m *MockMarketStore) GetByID(arg0 context.Context, arg1 string) (entities.Market, error) { 162 m.ctrl.T.Helper() 163 ret := m.ctrl.Call(m, "GetByID", arg0, arg1) 164 ret0, _ := ret[0].(entities.Market) 165 ret1, _ := ret[1].(error) 166 return ret0, ret1 167 } 168 169 // GetByID indicates an expected call of GetByID. 170 func (mr *MockMarketStoreMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call { 171 mr.mock.ctrl.T.Helper() 172 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockMarketStore)(nil).GetByID), arg0, arg1) 173 } 174 175 // GetByIDs mocks base method. 176 func (m *MockMarketStore) GetByIDs(arg0 context.Context, arg1 []string) ([]entities.Market, error) { 177 m.ctrl.T.Helper() 178 ret := m.ctrl.Call(m, "GetByIDs", arg0, arg1) 179 ret0, _ := ret[0].([]entities.Market) 180 ret1, _ := ret[1].(error) 181 return ret0, ret1 182 } 183 184 // GetByIDs indicates an expected call of GetByIDs. 185 func (mr *MockMarketStoreMockRecorder) GetByIDs(arg0, arg1 interface{}) *gomock.Call { 186 mr.mock.ctrl.T.Helper() 187 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByIDs", reflect.TypeOf((*MockMarketStore)(nil).GetByIDs), arg0, arg1) 188 } 189 190 // GetByTxHash mocks base method. 191 func (m *MockMarketStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Market, error) { 192 m.ctrl.T.Helper() 193 ret := m.ctrl.Call(m, "GetByTxHash", arg0, arg1) 194 ret0, _ := ret[0].([]entities.Market) 195 ret1, _ := ret[1].(error) 196 return ret0, ret1 197 } 198 199 // GetByTxHash indicates an expected call of GetByTxHash. 200 func (mr *MockMarketStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByTxHash", reflect.TypeOf((*MockMarketStore)(nil).GetByTxHash), arg0, arg1) 203 } 204 205 // ListSuccessorMarkets mocks base method. 206 func (m *MockMarketStore) ListSuccessorMarkets(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.SuccessorMarket, entities.PageInfo, error) { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "ListSuccessorMarkets", arg0, arg1, arg2, arg3) 209 ret0, _ := ret[0].([]entities.SuccessorMarket) 210 ret1, _ := ret[1].(entities.PageInfo) 211 ret2, _ := ret[2].(error) 212 return ret0, ret1, ret2 213 } 214 215 // ListSuccessorMarkets indicates an expected call of ListSuccessorMarkets. 216 func (mr *MockMarketStoreMockRecorder) ListSuccessorMarkets(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSuccessorMarkets", reflect.TypeOf((*MockMarketStore)(nil).ListSuccessorMarkets), arg0, arg1, arg2, arg3) 219 } 220 221 // Upsert mocks base method. 222 func (m *MockMarketStore) Upsert(arg0 context.Context, arg1 *entities.Market) error { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "Upsert", arg0, arg1) 225 ret0, _ := ret[0].(error) 226 return ret0 227 } 228 229 // Upsert indicates an expected call of Upsert. 230 func (mr *MockMarketStoreMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upsert", reflect.TypeOf((*MockMarketStore)(nil).Upsert), arg0, arg1) 233 } 234 235 // MockMarketDataStore is a mock of MarketDataStore interface. 236 type MockMarketDataStore struct { 237 ctrl *gomock.Controller 238 recorder *MockMarketDataStoreMockRecorder 239 } 240 241 // MockMarketDataStoreMockRecorder is the mock recorder for MockMarketDataStore. 242 type MockMarketDataStoreMockRecorder struct { 243 mock *MockMarketDataStore 244 } 245 246 // NewMockMarketDataStore creates a new mock instance. 247 func NewMockMarketDataStore(ctrl *gomock.Controller) *MockMarketDataStore { 248 mock := &MockMarketDataStore{ctrl: ctrl} 249 mock.recorder = &MockMarketDataStoreMockRecorder{mock} 250 return mock 251 } 252 253 // EXPECT returns an object that allows the caller to indicate expected use. 254 func (m *MockMarketDataStore) EXPECT() *MockMarketDataStoreMockRecorder { 255 return m.recorder 256 } 257 258 // Add mocks base method. 259 func (m *MockMarketDataStore) Add(arg0 *entities.MarketData) error { 260 m.ctrl.T.Helper() 261 ret := m.ctrl.Call(m, "Add", arg0) 262 ret0, _ := ret[0].(error) 263 return ret0 264 } 265 266 // Add indicates an expected call of Add. 267 func (mr *MockMarketDataStoreMockRecorder) Add(arg0 interface{}) *gomock.Call { 268 mr.mock.ctrl.T.Helper() 269 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockMarketDataStore)(nil).Add), arg0) 270 } 271 272 // Flush mocks base method. 273 func (m *MockMarketDataStore) Flush(arg0 context.Context) ([]*entities.MarketData, error) { 274 m.ctrl.T.Helper() 275 ret := m.ctrl.Call(m, "Flush", arg0) 276 ret0, _ := ret[0].([]*entities.MarketData) 277 ret1, _ := ret[1].(error) 278 return ret0, ret1 279 } 280 281 // Flush indicates an expected call of Flush. 282 func (mr *MockMarketDataStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call { 283 mr.mock.ctrl.T.Helper() 284 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockMarketDataStore)(nil).Flush), arg0) 285 } 286 287 // GetHistoricMarketData mocks base method. 288 func (m *MockMarketDataStore) GetHistoricMarketData(arg0 context.Context, arg1 string, arg2, arg3 *time.Time, arg4 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error) { 289 m.ctrl.T.Helper() 290 ret := m.ctrl.Call(m, "GetHistoricMarketData", arg0, arg1, arg2, arg3, arg4) 291 ret0, _ := ret[0].([]entities.MarketData) 292 ret1, _ := ret[1].(entities.PageInfo) 293 ret2, _ := ret[2].(error) 294 return ret0, ret1, ret2 295 } 296 297 // GetHistoricMarketData indicates an expected call of GetHistoricMarketData. 298 func (mr *MockMarketDataStoreMockRecorder) GetHistoricMarketData(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 299 mr.mock.ctrl.T.Helper() 300 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistoricMarketData", reflect.TypeOf((*MockMarketDataStore)(nil).GetHistoricMarketData), arg0, arg1, arg2, arg3, arg4) 301 } 302 303 // GetMarketDataByID mocks base method. 304 func (m *MockMarketDataStore) GetMarketDataByID(arg0 context.Context, arg1 string) (entities.MarketData, error) { 305 m.ctrl.T.Helper() 306 ret := m.ctrl.Call(m, "GetMarketDataByID", arg0, arg1) 307 ret0, _ := ret[0].(entities.MarketData) 308 ret1, _ := ret[1].(error) 309 return ret0, ret1 310 } 311 312 // GetMarketDataByID indicates an expected call of GetMarketDataByID. 313 func (mr *MockMarketDataStoreMockRecorder) GetMarketDataByID(arg0, arg1 interface{}) *gomock.Call { 314 mr.mock.ctrl.T.Helper() 315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMarketDataByID", reflect.TypeOf((*MockMarketDataStore)(nil).GetMarketDataByID), arg0, arg1) 316 } 317 318 // GetMarketsData mocks base method. 319 func (m *MockMarketDataStore) GetMarketsData(arg0 context.Context) ([]entities.MarketData, error) { 320 m.ctrl.T.Helper() 321 ret := m.ctrl.Call(m, "GetMarketsData", arg0) 322 ret0, _ := ret[0].([]entities.MarketData) 323 ret1, _ := ret[1].(error) 324 return ret0, ret1 325 } 326 327 // GetMarketsData indicates an expected call of GetMarketsData. 328 func (mr *MockMarketDataStoreMockRecorder) GetMarketsData(arg0 interface{}) *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMarketsData", reflect.TypeOf((*MockMarketDataStore)(nil).GetMarketsData), arg0) 331 } 332 333 // MockPositionStore is a mock of PositionStore interface. 334 type MockPositionStore struct { 335 ctrl *gomock.Controller 336 recorder *MockPositionStoreMockRecorder 337 } 338 339 // MockPositionStoreMockRecorder is the mock recorder for MockPositionStore. 340 type MockPositionStoreMockRecorder struct { 341 mock *MockPositionStore 342 } 343 344 // NewMockPositionStore creates a new mock instance. 345 func NewMockPositionStore(ctrl *gomock.Controller) *MockPositionStore { 346 mock := &MockPositionStore{ctrl: ctrl} 347 mock.recorder = &MockPositionStoreMockRecorder{mock} 348 return mock 349 } 350 351 // EXPECT returns an object that allows the caller to indicate expected use. 352 func (m *MockPositionStore) EXPECT() *MockPositionStoreMockRecorder { 353 return m.recorder 354 } 355 356 // Add mocks base method. 357 func (m *MockPositionStore) Add(arg0 context.Context, arg1 entities.Position) error { 358 m.ctrl.T.Helper() 359 ret := m.ctrl.Call(m, "Add", arg0, arg1) 360 ret0, _ := ret[0].(error) 361 return ret0 362 } 363 364 // Add indicates an expected call of Add. 365 func (mr *MockPositionStoreMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call { 366 mr.mock.ctrl.T.Helper() 367 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockPositionStore)(nil).Add), arg0, arg1) 368 } 369 370 // Flush mocks base method. 371 func (m *MockPositionStore) Flush(arg0 context.Context) ([]entities.Position, error) { 372 m.ctrl.T.Helper() 373 ret := m.ctrl.Call(m, "Flush", arg0) 374 ret0, _ := ret[0].([]entities.Position) 375 ret1, _ := ret[1].(error) 376 return ret0, ret1 377 } 378 379 // Flush indicates an expected call of Flush. 380 func (mr *MockPositionStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call { 381 mr.mock.ctrl.T.Helper() 382 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockPositionStore)(nil).Flush), arg0) 383 } 384 385 // GetAll mocks base method. 386 func (m *MockPositionStore) GetAll(arg0 context.Context) ([]entities.Position, error) { 387 m.ctrl.T.Helper() 388 ret := m.ctrl.Call(m, "GetAll", arg0) 389 ret0, _ := ret[0].([]entities.Position) 390 ret1, _ := ret[1].(error) 391 return ret0, ret1 392 } 393 394 // GetAll indicates an expected call of GetAll. 395 func (mr *MockPositionStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call { 396 mr.mock.ctrl.T.Helper() 397 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockPositionStore)(nil).GetAll), arg0) 398 } 399 400 // GetByMarket mocks base method. 401 func (m *MockPositionStore) GetByMarket(arg0 context.Context, arg1 string) ([]entities.Position, error) { 402 m.ctrl.T.Helper() 403 ret := m.ctrl.Call(m, "GetByMarket", arg0, arg1) 404 ret0, _ := ret[0].([]entities.Position) 405 ret1, _ := ret[1].(error) 406 return ret0, ret1 407 } 408 409 // GetByMarket indicates an expected call of GetByMarket. 410 func (mr *MockPositionStoreMockRecorder) GetByMarket(arg0, arg1 interface{}) *gomock.Call { 411 mr.mock.ctrl.T.Helper() 412 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByMarket", reflect.TypeOf((*MockPositionStore)(nil).GetByMarket), arg0, arg1) 413 } 414 415 // GetByMarketAndParties mocks base method. 416 func (m *MockPositionStore) GetByMarketAndParties(arg0 context.Context, arg1 string, arg2 []string) ([]entities.Position, error) { 417 m.ctrl.T.Helper() 418 ret := m.ctrl.Call(m, "GetByMarketAndParties", arg0, arg1, arg2) 419 ret0, _ := ret[0].([]entities.Position) 420 ret1, _ := ret[1].(error) 421 return ret0, ret1 422 } 423 424 // GetByMarketAndParties indicates an expected call of GetByMarketAndParties. 425 func (mr *MockPositionStoreMockRecorder) GetByMarketAndParties(arg0, arg1, arg2 interface{}) *gomock.Call { 426 mr.mock.ctrl.T.Helper() 427 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByMarketAndParties", reflect.TypeOf((*MockPositionStore)(nil).GetByMarketAndParties), arg0, arg1, arg2) 428 } 429 430 // GetByMarketAndParty mocks base method. 431 func (m *MockPositionStore) GetByMarketAndParty(arg0 context.Context, arg1, arg2 string) (entities.Position, error) { 432 m.ctrl.T.Helper() 433 ret := m.ctrl.Call(m, "GetByMarketAndParty", arg0, arg1, arg2) 434 ret0, _ := ret[0].(entities.Position) 435 ret1, _ := ret[1].(error) 436 return ret0, ret1 437 } 438 439 // GetByMarketAndParty indicates an expected call of GetByMarketAndParty. 440 func (mr *MockPositionStoreMockRecorder) GetByMarketAndParty(arg0, arg1, arg2 interface{}) *gomock.Call { 441 mr.mock.ctrl.T.Helper() 442 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByMarketAndParty", reflect.TypeOf((*MockPositionStore)(nil).GetByMarketAndParty), arg0, arg1, arg2) 443 } 444 445 // GetByParty mocks base method. 446 func (m *MockPositionStore) GetByParty(arg0 context.Context, arg1 string) ([]entities.Position, error) { 447 m.ctrl.T.Helper() 448 ret := m.ctrl.Call(m, "GetByParty", arg0, arg1) 449 ret0, _ := ret[0].([]entities.Position) 450 ret1, _ := ret[1].(error) 451 return ret0, ret1 452 } 453 454 // GetByParty indicates an expected call of GetByParty. 455 func (mr *MockPositionStoreMockRecorder) GetByParty(arg0, arg1 interface{}) *gomock.Call { 456 mr.mock.ctrl.T.Helper() 457 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByParty", reflect.TypeOf((*MockPositionStore)(nil).GetByParty), arg0, arg1) 458 } 459 460 // GetByPartyConnection mocks base method. 461 func (m *MockPositionStore) GetByPartyConnection(arg0 context.Context, arg1, arg2 []string, arg3 entities.CursorPagination) ([]entities.Position, entities.PageInfo, error) { 462 m.ctrl.T.Helper() 463 ret := m.ctrl.Call(m, "GetByPartyConnection", arg0, arg1, arg2, arg3) 464 ret0, _ := ret[0].([]entities.Position) 465 ret1, _ := ret[1].(entities.PageInfo) 466 ret2, _ := ret[2].(error) 467 return ret0, ret1, ret2 468 } 469 470 // GetByPartyConnection indicates an expected call of GetByPartyConnection. 471 func (mr *MockPositionStoreMockRecorder) GetByPartyConnection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 472 mr.mock.ctrl.T.Helper() 473 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByPartyConnection", reflect.TypeOf((*MockPositionStore)(nil).GetByPartyConnection), arg0, arg1, arg2, arg3) 474 } 475 476 // GetByTxHash mocks base method. 477 func (m *MockPositionStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Position, error) { 478 m.ctrl.T.Helper() 479 ret := m.ctrl.Call(m, "GetByTxHash", arg0, arg1) 480 ret0, _ := ret[0].([]entities.Position) 481 ret1, _ := ret[1].(error) 482 return ret0, ret1 483 } 484 485 // GetByTxHash indicates an expected call of GetByTxHash. 486 func (mr *MockPositionStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call { 487 mr.mock.ctrl.T.Helper() 488 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByTxHash", reflect.TypeOf((*MockPositionStore)(nil).GetByTxHash), arg0, arg1) 489 } 490 491 // MockAccountStore is a mock of AccountStore interface. 492 type MockAccountStore struct { 493 ctrl *gomock.Controller 494 recorder *MockAccountStoreMockRecorder 495 } 496 497 // MockAccountStoreMockRecorder is the mock recorder for MockAccountStore. 498 type MockAccountStoreMockRecorder struct { 499 mock *MockAccountStore 500 } 501 502 // NewMockAccountStore creates a new mock instance. 503 func NewMockAccountStore(ctrl *gomock.Controller) *MockAccountStore { 504 mock := &MockAccountStore{ctrl: ctrl} 505 mock.recorder = &MockAccountStoreMockRecorder{mock} 506 return mock 507 } 508 509 // EXPECT returns an object that allows the caller to indicate expected use. 510 func (m *MockAccountStore) EXPECT() *MockAccountStoreMockRecorder { 511 return m.recorder 512 } 513 514 // GetAll mocks base method. 515 func (m *MockAccountStore) GetAll(arg0 context.Context) ([]entities.Account, error) { 516 m.ctrl.T.Helper() 517 ret := m.ctrl.Call(m, "GetAll", arg0) 518 ret0, _ := ret[0].([]entities.Account) 519 ret1, _ := ret[1].(error) 520 return ret0, ret1 521 } 522 523 // GetAll indicates an expected call of GetAll. 524 func (mr *MockAccountStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call { 525 mr.mock.ctrl.T.Helper() 526 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockAccountStore)(nil).GetAll), arg0) 527 } 528 529 // GetBalancesByTxHash mocks base method. 530 func (m *MockAccountStore) GetBalancesByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.AccountBalance, error) { 531 m.ctrl.T.Helper() 532 ret := m.ctrl.Call(m, "GetBalancesByTxHash", arg0, arg1) 533 ret0, _ := ret[0].([]entities.AccountBalance) 534 ret1, _ := ret[1].(error) 535 return ret0, ret1 536 } 537 538 // GetBalancesByTxHash indicates an expected call of GetBalancesByTxHash. 539 func (mr *MockAccountStoreMockRecorder) GetBalancesByTxHash(arg0, arg1 interface{}) *gomock.Call { 540 mr.mock.ctrl.T.Helper() 541 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBalancesByTxHash", reflect.TypeOf((*MockAccountStore)(nil).GetBalancesByTxHash), arg0, arg1) 542 } 543 544 // GetByRawID mocks base method. 545 func (m *MockAccountStore) GetByRawID(arg0 context.Context, arg1 string) (entities.Account, error) { 546 m.ctrl.T.Helper() 547 ret := m.ctrl.Call(m, "GetByRawID", arg0, arg1) 548 ret0, _ := ret[0].(entities.Account) 549 ret1, _ := ret[1].(error) 550 return ret0, ret1 551 } 552 553 // GetByRawID indicates an expected call of GetByRawID. 554 func (mr *MockAccountStoreMockRecorder) GetByRawID(arg0, arg1 interface{}) *gomock.Call { 555 mr.mock.ctrl.T.Helper() 556 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByRawID", reflect.TypeOf((*MockAccountStore)(nil).GetByRawID), arg0, arg1) 557 } 558 559 // GetByTxHash mocks base method. 560 func (m *MockAccountStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Account, error) { 561 m.ctrl.T.Helper() 562 ret := m.ctrl.Call(m, "GetByTxHash", arg0, arg1) 563 ret0, _ := ret[0].([]entities.Account) 564 ret1, _ := ret[1].(error) 565 return ret0, ret1 566 } 567 568 // GetByTxHash indicates an expected call of GetByTxHash. 569 func (mr *MockAccountStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call { 570 mr.mock.ctrl.T.Helper() 571 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByTxHash", reflect.TypeOf((*MockAccountStore)(nil).GetByTxHash), arg0, arg1) 572 } 573 574 // Obtain mocks base method. 575 func (m *MockAccountStore) Obtain(arg0 context.Context, arg1 *entities.Account) error { 576 m.ctrl.T.Helper() 577 ret := m.ctrl.Call(m, "Obtain", arg0, arg1) 578 ret0, _ := ret[0].(error) 579 return ret0 580 } 581 582 // Obtain indicates an expected call of Obtain. 583 func (mr *MockAccountStoreMockRecorder) Obtain(arg0, arg1 interface{}) *gomock.Call { 584 mr.mock.ctrl.T.Helper() 585 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Obtain", reflect.TypeOf((*MockAccountStore)(nil).Obtain), arg0, arg1) 586 } 587 588 // Query mocks base method. 589 func (m *MockAccountStore) Query(arg0 context.Context, arg1 entities.AccountFilter) ([]entities.Account, error) { 590 m.ctrl.T.Helper() 591 ret := m.ctrl.Call(m, "Query", arg0, arg1) 592 ret0, _ := ret[0].([]entities.Account) 593 ret1, _ := ret[1].(error) 594 return ret0, ret1 595 } 596 597 // Query indicates an expected call of Query. 598 func (mr *MockAccountStoreMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call { 599 mr.mock.ctrl.T.Helper() 600 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockAccountStore)(nil).Query), arg0, arg1) 601 } 602 603 // QueryBalances mocks base method. 604 func (m *MockAccountStore) QueryBalances(arg0 context.Context, arg1 entities.AccountFilter, arg2 entities.CursorPagination) ([]entities.AccountBalance, entities.PageInfo, error) { 605 m.ctrl.T.Helper() 606 ret := m.ctrl.Call(m, "QueryBalances", arg0, arg1, arg2) 607 ret0, _ := ret[0].([]entities.AccountBalance) 608 ret1, _ := ret[1].(entities.PageInfo) 609 ret2, _ := ret[2].(error) 610 return ret0, ret1, ret2 611 } 612 613 // QueryBalances indicates an expected call of QueryBalances. 614 func (mr *MockAccountStoreMockRecorder) QueryBalances(arg0, arg1, arg2 interface{}) *gomock.Call { 615 mr.mock.ctrl.T.Helper() 616 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryBalances", reflect.TypeOf((*MockAccountStore)(nil).QueryBalances), arg0, arg1, arg2) 617 } 618 619 // MockBalanceStore is a mock of BalanceStore interface. 620 type MockBalanceStore struct { 621 ctrl *gomock.Controller 622 recorder *MockBalanceStoreMockRecorder 623 } 624 625 // MockBalanceStoreMockRecorder is the mock recorder for MockBalanceStore. 626 type MockBalanceStoreMockRecorder struct { 627 mock *MockBalanceStore 628 } 629 630 // NewMockBalanceStore creates a new mock instance. 631 func NewMockBalanceStore(ctrl *gomock.Controller) *MockBalanceStore { 632 mock := &MockBalanceStore{ctrl: ctrl} 633 mock.recorder = &MockBalanceStoreMockRecorder{mock} 634 return mock 635 } 636 637 // EXPECT returns an object that allows the caller to indicate expected use. 638 func (m *MockBalanceStore) EXPECT() *MockBalanceStoreMockRecorder { 639 return m.recorder 640 } 641 642 // Add mocks base method. 643 func (m *MockBalanceStore) Add(arg0 entities.AccountBalance) error { 644 m.ctrl.T.Helper() 645 ret := m.ctrl.Call(m, "Add", arg0) 646 ret0, _ := ret[0].(error) 647 return ret0 648 } 649 650 // Add indicates an expected call of Add. 651 func (mr *MockBalanceStoreMockRecorder) Add(arg0 interface{}) *gomock.Call { 652 mr.mock.ctrl.T.Helper() 653 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockBalanceStore)(nil).Add), arg0) 654 } 655 656 // Flush mocks base method. 657 func (m *MockBalanceStore) Flush(arg0 context.Context) ([]entities.AccountBalance, error) { 658 m.ctrl.T.Helper() 659 ret := m.ctrl.Call(m, "Flush", arg0) 660 ret0, _ := ret[0].([]entities.AccountBalance) 661 ret1, _ := ret[1].(error) 662 return ret0, ret1 663 } 664 665 // Flush indicates an expected call of Flush. 666 func (mr *MockBalanceStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call { 667 mr.mock.ctrl.T.Helper() 668 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockBalanceStore)(nil).Flush), arg0) 669 } 670 671 // Query mocks base method. 672 func (m *MockBalanceStore) Query(arg0 context.Context, arg1 entities.AccountFilter, arg2 entities.DateRange, arg3 entities.CursorPagination) (*[]entities.AggregatedBalance, entities.PageInfo, error) { 673 m.ctrl.T.Helper() 674 ret := m.ctrl.Call(m, "Query", arg0, arg1, arg2, arg3) 675 ret0, _ := ret[0].(*[]entities.AggregatedBalance) 676 ret1, _ := ret[1].(entities.PageInfo) 677 ret2, _ := ret[2].(error) 678 return ret0, ret1, ret2 679 } 680 681 // Query indicates an expected call of Query. 682 func (mr *MockBalanceStoreMockRecorder) Query(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 683 mr.mock.ctrl.T.Helper() 684 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockBalanceStore)(nil).Query), arg0, arg1, arg2, arg3) 685 } 686 687 // MockRewardStore is a mock of RewardStore interface. 688 type MockRewardStore struct { 689 ctrl *gomock.Controller 690 recorder *MockRewardStoreMockRecorder 691 } 692 693 // MockRewardStoreMockRecorder is the mock recorder for MockRewardStore. 694 type MockRewardStoreMockRecorder struct { 695 mock *MockRewardStore 696 } 697 698 // NewMockRewardStore creates a new mock instance. 699 func NewMockRewardStore(ctrl *gomock.Controller) *MockRewardStore { 700 mock := &MockRewardStore{ctrl: ctrl} 701 mock.recorder = &MockRewardStoreMockRecorder{mock} 702 return mock 703 } 704 705 // EXPECT returns an object that allows the caller to indicate expected use. 706 func (m *MockRewardStore) EXPECT() *MockRewardStoreMockRecorder { 707 return m.recorder 708 } 709 710 // Add mocks base method. 711 func (m *MockRewardStore) Add(arg0 context.Context, arg1 entities.Reward) error { 712 m.ctrl.T.Helper() 713 ret := m.ctrl.Call(m, "Add", arg0, arg1) 714 ret0, _ := ret[0].(error) 715 return ret0 716 } 717 718 // Add indicates an expected call of Add. 719 func (mr *MockRewardStoreMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call { 720 mr.mock.ctrl.T.Helper() 721 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockRewardStore)(nil).Add), arg0, arg1) 722 } 723 724 // GetAll mocks base method. 725 func (m *MockRewardStore) GetAll(arg0 context.Context) ([]entities.Reward, error) { 726 m.ctrl.T.Helper() 727 ret := m.ctrl.Call(m, "GetAll", arg0) 728 ret0, _ := ret[0].([]entities.Reward) 729 ret1, _ := ret[1].(error) 730 return ret0, ret1 731 } 732 733 // GetAll indicates an expected call of GetAll. 734 func (mr *MockRewardStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call { 735 mr.mock.ctrl.T.Helper() 736 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockRewardStore)(nil).GetAll), arg0) 737 } 738 739 // GetByCursor mocks base method. 740 func (m *MockRewardStore) GetByCursor(arg0 context.Context, arg1 []string, arg2 *string, arg3, arg4 *uint64, arg5 entities.CursorPagination, arg6, arg7, arg8 *string) ([]entities.Reward, entities.PageInfo, error) { 741 m.ctrl.T.Helper() 742 ret := m.ctrl.Call(m, "GetByCursor", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 743 ret0, _ := ret[0].([]entities.Reward) 744 ret1, _ := ret[1].(entities.PageInfo) 745 ret2, _ := ret[2].(error) 746 return ret0, ret1, ret2 747 } 748 749 // GetByCursor indicates an expected call of GetByCursor. 750 func (mr *MockRewardStoreMockRecorder) GetByCursor(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call { 751 mr.mock.ctrl.T.Helper() 752 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByCursor", reflect.TypeOf((*MockRewardStore)(nil).GetByCursor), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 753 } 754 755 // GetByTxHash mocks base method. 756 func (m *MockRewardStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Reward, error) { 757 m.ctrl.T.Helper() 758 ret := m.ctrl.Call(m, "GetByTxHash", arg0, arg1) 759 ret0, _ := ret[0].([]entities.Reward) 760 ret1, _ := ret[1].(error) 761 return ret0, ret1 762 } 763 764 // GetByTxHash indicates an expected call of GetByTxHash. 765 func (mr *MockRewardStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call { 766 mr.mock.ctrl.T.Helper() 767 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByTxHash", reflect.TypeOf((*MockRewardStore)(nil).GetByTxHash), arg0, arg1) 768 } 769 770 // GetEpochSummaries mocks base method. 771 func (m *MockRewardStore) GetEpochSummaries(arg0 context.Context, arg1 entities.RewardSummaryFilter, arg2 entities.CursorPagination) ([]entities.EpochRewardSummary, entities.PageInfo, error) { 772 m.ctrl.T.Helper() 773 ret := m.ctrl.Call(m, "GetEpochSummaries", arg0, arg1, arg2) 774 ret0, _ := ret[0].([]entities.EpochRewardSummary) 775 ret1, _ := ret[1].(entities.PageInfo) 776 ret2, _ := ret[2].(error) 777 return ret0, ret1, ret2 778 } 779 780 // GetEpochSummaries indicates an expected call of GetEpochSummaries. 781 func (mr *MockRewardStoreMockRecorder) GetEpochSummaries(arg0, arg1, arg2 interface{}) *gomock.Call { 782 mr.mock.ctrl.T.Helper() 783 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEpochSummaries", reflect.TypeOf((*MockRewardStore)(nil).GetEpochSummaries), arg0, arg1, arg2) 784 } 785 786 // GetSummaries mocks base method. 787 func (m *MockRewardStore) GetSummaries(arg0 context.Context, arg1 []string, arg2 *string) ([]entities.RewardSummary, error) { 788 m.ctrl.T.Helper() 789 ret := m.ctrl.Call(m, "GetSummaries", arg0, arg1, arg2) 790 ret0, _ := ret[0].([]entities.RewardSummary) 791 ret1, _ := ret[1].(error) 792 return ret0, ret1 793 } 794 795 // GetSummaries indicates an expected call of GetSummaries. 796 func (mr *MockRewardStoreMockRecorder) GetSummaries(arg0, arg1, arg2 interface{}) *gomock.Call { 797 mr.mock.ctrl.T.Helper() 798 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSummaries", reflect.TypeOf((*MockRewardStore)(nil).GetSummaries), arg0, arg1, arg2) 799 } 800 801 // MockAMMStore is a mock of AMMStore interface. 802 type MockAMMStore struct { 803 ctrl *gomock.Controller 804 recorder *MockAMMStoreMockRecorder 805 } 806 807 // MockAMMStoreMockRecorder is the mock recorder for MockAMMStore. 808 type MockAMMStoreMockRecorder struct { 809 mock *MockAMMStore 810 } 811 812 // NewMockAMMStore creates a new mock instance. 813 func NewMockAMMStore(ctrl *gomock.Controller) *MockAMMStore { 814 mock := &MockAMMStore{ctrl: ctrl} 815 mock.recorder = &MockAMMStoreMockRecorder{mock} 816 return mock 817 } 818 819 // EXPECT returns an object that allows the caller to indicate expected use. 820 func (m *MockAMMStore) EXPECT() *MockAMMStoreMockRecorder { 821 return m.recorder 822 } 823 824 // ListActive mocks base method. 825 func (m *MockAMMStore) ListActive(arg0 context.Context) ([]entities.AMMPool, error) { 826 m.ctrl.T.Helper() 827 ret := m.ctrl.Call(m, "ListActive", arg0) 828 ret0, _ := ret[0].([]entities.AMMPool) 829 ret1, _ := ret[1].(error) 830 return ret0, ret1 831 } 832 833 // ListActive indicates an expected call of ListActive. 834 func (mr *MockAMMStoreMockRecorder) ListActive(arg0 interface{}) *gomock.Call { 835 mr.mock.ctrl.T.Helper() 836 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActive", reflect.TypeOf((*MockAMMStore)(nil).ListActive), arg0) 837 } 838 839 // MockAssetStore is a mock of AssetStore interface. 840 type MockAssetStore struct { 841 ctrl *gomock.Controller 842 recorder *MockAssetStoreMockRecorder 843 } 844 845 // MockAssetStoreMockRecorder is the mock recorder for MockAssetStore. 846 type MockAssetStoreMockRecorder struct { 847 mock *MockAssetStore 848 } 849 850 // NewMockAssetStore creates a new mock instance. 851 func NewMockAssetStore(ctrl *gomock.Controller) *MockAssetStore { 852 mock := &MockAssetStore{ctrl: ctrl} 853 mock.recorder = &MockAssetStoreMockRecorder{mock} 854 return mock 855 } 856 857 // EXPECT returns an object that allows the caller to indicate expected use. 858 func (m *MockAssetStore) EXPECT() *MockAssetStoreMockRecorder { 859 return m.recorder 860 } 861 862 // GetByID mocks base method. 863 func (m *MockAssetStore) GetByID(arg0 context.Context, arg1 string) (entities.Asset, error) { 864 m.ctrl.T.Helper() 865 ret := m.ctrl.Call(m, "GetByID", arg0, arg1) 866 ret0, _ := ret[0].(entities.Asset) 867 ret1, _ := ret[1].(error) 868 return ret0, ret1 869 } 870 871 // GetByID indicates an expected call of GetByID. 872 func (mr *MockAssetStoreMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call { 873 mr.mock.ctrl.T.Helper() 874 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockAssetStore)(nil).GetByID), arg0, arg1) 875 }