github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/access/mock/access_api_client.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 context "context" 7 8 access "github.com/onflow/flow/protobuf/go/flow/access" 9 10 grpc "google.golang.org/grpc" 11 12 mock "github.com/stretchr/testify/mock" 13 ) 14 15 // AccessAPIClient is an autogenerated mock type for the AccessAPIClient type 16 type AccessAPIClient struct { 17 mock.Mock 18 } 19 20 // ExecuteScriptAtBlockHeight provides a mock function with given fields: ctx, in, opts 21 func (_m *AccessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *access.ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) { 22 _va := make([]interface{}, len(opts)) 23 for _i := range opts { 24 _va[_i] = opts[_i] 25 } 26 var _ca []interface{} 27 _ca = append(_ca, ctx, in) 28 _ca = append(_ca, _va...) 29 ret := _m.Called(_ca...) 30 31 var r0 *access.ExecuteScriptResponse 32 var r1 error 33 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest, ...grpc.CallOption) (*access.ExecuteScriptResponse, error)); ok { 34 return rf(ctx, in, opts...) 35 } 36 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok { 37 r0 = rf(ctx, in, opts...) 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(*access.ExecuteScriptResponse) 41 } 42 } 43 44 if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockHeightRequest, ...grpc.CallOption) error); ok { 45 r1 = rf(ctx, in, opts...) 46 } else { 47 r1 = ret.Error(1) 48 } 49 50 return r0, r1 51 } 52 53 // ExecuteScriptAtBlockID provides a mock function with given fields: ctx, in, opts 54 func (_m *AccessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *access.ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) { 55 _va := make([]interface{}, len(opts)) 56 for _i := range opts { 57 _va[_i] = opts[_i] 58 } 59 var _ca []interface{} 60 _ca = append(_ca, ctx, in) 61 _ca = append(_ca, _va...) 62 ret := _m.Called(_ca...) 63 64 var r0 *access.ExecuteScriptResponse 65 var r1 error 66 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest, ...grpc.CallOption) (*access.ExecuteScriptResponse, error)); ok { 67 return rf(ctx, in, opts...) 68 } 69 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok { 70 r0 = rf(ctx, in, opts...) 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(*access.ExecuteScriptResponse) 74 } 75 } 76 77 if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtBlockIDRequest, ...grpc.CallOption) error); ok { 78 r1 = rf(ctx, in, opts...) 79 } else { 80 r1 = ret.Error(1) 81 } 82 83 return r0, r1 84 } 85 86 // ExecuteScriptAtLatestBlock provides a mock function with given fields: ctx, in, opts 87 func (_m *AccessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *access.ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*access.ExecuteScriptResponse, error) { 88 _va := make([]interface{}, len(opts)) 89 for _i := range opts { 90 _va[_i] = opts[_i] 91 } 92 var _ca []interface{} 93 _ca = append(_ca, ctx, in) 94 _ca = append(_ca, _va...) 95 ret := _m.Called(_ca...) 96 97 var r0 *access.ExecuteScriptResponse 98 var r1 error 99 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest, ...grpc.CallOption) (*access.ExecuteScriptResponse, error)); ok { 100 return rf(ctx, in, opts...) 101 } 102 if rf, ok := ret.Get(0).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest, ...grpc.CallOption) *access.ExecuteScriptResponse); ok { 103 r0 = rf(ctx, in, opts...) 104 } else { 105 if ret.Get(0) != nil { 106 r0 = ret.Get(0).(*access.ExecuteScriptResponse) 107 } 108 } 109 110 if rf, ok := ret.Get(1).(func(context.Context, *access.ExecuteScriptAtLatestBlockRequest, ...grpc.CallOption) error); ok { 111 r1 = rf(ctx, in, opts...) 112 } else { 113 r1 = ret.Error(1) 114 } 115 116 return r0, r1 117 } 118 119 // GetAccount provides a mock function with given fields: ctx, in, opts 120 func (_m *AccessAPIClient) GetAccount(ctx context.Context, in *access.GetAccountRequest, opts ...grpc.CallOption) (*access.GetAccountResponse, error) { 121 _va := make([]interface{}, len(opts)) 122 for _i := range opts { 123 _va[_i] = opts[_i] 124 } 125 var _ca []interface{} 126 _ca = append(_ca, ctx, in) 127 _ca = append(_ca, _va...) 128 ret := _m.Called(_ca...) 129 130 var r0 *access.GetAccountResponse 131 var r1 error 132 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountRequest, ...grpc.CallOption) (*access.GetAccountResponse, error)); ok { 133 return rf(ctx, in, opts...) 134 } 135 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountRequest, ...grpc.CallOption) *access.GetAccountResponse); ok { 136 r0 = rf(ctx, in, opts...) 137 } else { 138 if ret.Get(0) != nil { 139 r0 = ret.Get(0).(*access.GetAccountResponse) 140 } 141 } 142 143 if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountRequest, ...grpc.CallOption) error); ok { 144 r1 = rf(ctx, in, opts...) 145 } else { 146 r1 = ret.Error(1) 147 } 148 149 return r0, r1 150 } 151 152 // GetAccountAtBlockHeight provides a mock function with given fields: ctx, in, opts 153 func (_m *AccessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *access.GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*access.AccountResponse, error) { 154 _va := make([]interface{}, len(opts)) 155 for _i := range opts { 156 _va[_i] = opts[_i] 157 } 158 var _ca []interface{} 159 _ca = append(_ca, ctx, in) 160 _ca = append(_ca, _va...) 161 ret := _m.Called(_ca...) 162 163 var r0 *access.AccountResponse 164 var r1 error 165 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtBlockHeightRequest, ...grpc.CallOption) (*access.AccountResponse, error)); ok { 166 return rf(ctx, in, opts...) 167 } 168 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtBlockHeightRequest, ...grpc.CallOption) *access.AccountResponse); ok { 169 r0 = rf(ctx, in, opts...) 170 } else { 171 if ret.Get(0) != nil { 172 r0 = ret.Get(0).(*access.AccountResponse) 173 } 174 } 175 176 if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtBlockHeightRequest, ...grpc.CallOption) error); ok { 177 r1 = rf(ctx, in, opts...) 178 } else { 179 r1 = ret.Error(1) 180 } 181 182 return r0, r1 183 } 184 185 // GetAccountAtLatestBlock provides a mock function with given fields: ctx, in, opts 186 func (_m *AccessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *access.GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*access.AccountResponse, error) { 187 _va := make([]interface{}, len(opts)) 188 for _i := range opts { 189 _va[_i] = opts[_i] 190 } 191 var _ca []interface{} 192 _ca = append(_ca, ctx, in) 193 _ca = append(_ca, _va...) 194 ret := _m.Called(_ca...) 195 196 var r0 *access.AccountResponse 197 var r1 error 198 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtLatestBlockRequest, ...grpc.CallOption) (*access.AccountResponse, error)); ok { 199 return rf(ctx, in, opts...) 200 } 201 if rf, ok := ret.Get(0).(func(context.Context, *access.GetAccountAtLatestBlockRequest, ...grpc.CallOption) *access.AccountResponse); ok { 202 r0 = rf(ctx, in, opts...) 203 } else { 204 if ret.Get(0) != nil { 205 r0 = ret.Get(0).(*access.AccountResponse) 206 } 207 } 208 209 if rf, ok := ret.Get(1).(func(context.Context, *access.GetAccountAtLatestBlockRequest, ...grpc.CallOption) error); ok { 210 r1 = rf(ctx, in, opts...) 211 } else { 212 r1 = ret.Error(1) 213 } 214 215 return r0, r1 216 } 217 218 // GetBlockByHeight provides a mock function with given fields: ctx, in, opts 219 func (_m *AccessAPIClient) GetBlockByHeight(ctx context.Context, in *access.GetBlockByHeightRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) { 220 _va := make([]interface{}, len(opts)) 221 for _i := range opts { 222 _va[_i] = opts[_i] 223 } 224 var _ca []interface{} 225 _ca = append(_ca, ctx, in) 226 _ca = append(_ca, _va...) 227 ret := _m.Called(_ca...) 228 229 var r0 *access.BlockResponse 230 var r1 error 231 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByHeightRequest, ...grpc.CallOption) (*access.BlockResponse, error)); ok { 232 return rf(ctx, in, opts...) 233 } 234 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByHeightRequest, ...grpc.CallOption) *access.BlockResponse); ok { 235 r0 = rf(ctx, in, opts...) 236 } else { 237 if ret.Get(0) != nil { 238 r0 = ret.Get(0).(*access.BlockResponse) 239 } 240 } 241 242 if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByHeightRequest, ...grpc.CallOption) error); ok { 243 r1 = rf(ctx, in, opts...) 244 } else { 245 r1 = ret.Error(1) 246 } 247 248 return r0, r1 249 } 250 251 // GetBlockByID provides a mock function with given fields: ctx, in, opts 252 func (_m *AccessAPIClient) GetBlockByID(ctx context.Context, in *access.GetBlockByIDRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) { 253 _va := make([]interface{}, len(opts)) 254 for _i := range opts { 255 _va[_i] = opts[_i] 256 } 257 var _ca []interface{} 258 _ca = append(_ca, ctx, in) 259 _ca = append(_ca, _va...) 260 ret := _m.Called(_ca...) 261 262 var r0 *access.BlockResponse 263 var r1 error 264 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByIDRequest, ...grpc.CallOption) (*access.BlockResponse, error)); ok { 265 return rf(ctx, in, opts...) 266 } 267 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockByIDRequest, ...grpc.CallOption) *access.BlockResponse); ok { 268 r0 = rf(ctx, in, opts...) 269 } else { 270 if ret.Get(0) != nil { 271 r0 = ret.Get(0).(*access.BlockResponse) 272 } 273 } 274 275 if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockByIDRequest, ...grpc.CallOption) error); ok { 276 r1 = rf(ctx, in, opts...) 277 } else { 278 r1 = ret.Error(1) 279 } 280 281 return r0, r1 282 } 283 284 // GetBlockHeaderByHeight provides a mock function with given fields: ctx, in, opts 285 func (_m *AccessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *access.GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) { 286 _va := make([]interface{}, len(opts)) 287 for _i := range opts { 288 _va[_i] = opts[_i] 289 } 290 var _ca []interface{} 291 _ca = append(_ca, ctx, in) 292 _ca = append(_ca, _va...) 293 ret := _m.Called(_ca...) 294 295 var r0 *access.BlockHeaderResponse 296 var r1 error 297 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByHeightRequest, ...grpc.CallOption) (*access.BlockHeaderResponse, error)); ok { 298 return rf(ctx, in, opts...) 299 } 300 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByHeightRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok { 301 r0 = rf(ctx, in, opts...) 302 } else { 303 if ret.Get(0) != nil { 304 r0 = ret.Get(0).(*access.BlockHeaderResponse) 305 } 306 } 307 308 if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByHeightRequest, ...grpc.CallOption) error); ok { 309 r1 = rf(ctx, in, opts...) 310 } else { 311 r1 = ret.Error(1) 312 } 313 314 return r0, r1 315 } 316 317 // GetBlockHeaderByID provides a mock function with given fields: ctx, in, opts 318 func (_m *AccessAPIClient) GetBlockHeaderByID(ctx context.Context, in *access.GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) { 319 _va := make([]interface{}, len(opts)) 320 for _i := range opts { 321 _va[_i] = opts[_i] 322 } 323 var _ca []interface{} 324 _ca = append(_ca, ctx, in) 325 _ca = append(_ca, _va...) 326 ret := _m.Called(_ca...) 327 328 var r0 *access.BlockHeaderResponse 329 var r1 error 330 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByIDRequest, ...grpc.CallOption) (*access.BlockHeaderResponse, error)); ok { 331 return rf(ctx, in, opts...) 332 } 333 if rf, ok := ret.Get(0).(func(context.Context, *access.GetBlockHeaderByIDRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok { 334 r0 = rf(ctx, in, opts...) 335 } else { 336 if ret.Get(0) != nil { 337 r0 = ret.Get(0).(*access.BlockHeaderResponse) 338 } 339 } 340 341 if rf, ok := ret.Get(1).(func(context.Context, *access.GetBlockHeaderByIDRequest, ...grpc.CallOption) error); ok { 342 r1 = rf(ctx, in, opts...) 343 } else { 344 r1 = ret.Error(1) 345 } 346 347 return r0, r1 348 } 349 350 // GetCollectionByID provides a mock function with given fields: ctx, in, opts 351 func (_m *AccessAPIClient) GetCollectionByID(ctx context.Context, in *access.GetCollectionByIDRequest, opts ...grpc.CallOption) (*access.CollectionResponse, error) { 352 _va := make([]interface{}, len(opts)) 353 for _i := range opts { 354 _va[_i] = opts[_i] 355 } 356 var _ca []interface{} 357 _ca = append(_ca, ctx, in) 358 _ca = append(_ca, _va...) 359 ret := _m.Called(_ca...) 360 361 var r0 *access.CollectionResponse 362 var r1 error 363 if rf, ok := ret.Get(0).(func(context.Context, *access.GetCollectionByIDRequest, ...grpc.CallOption) (*access.CollectionResponse, error)); ok { 364 return rf(ctx, in, opts...) 365 } 366 if rf, ok := ret.Get(0).(func(context.Context, *access.GetCollectionByIDRequest, ...grpc.CallOption) *access.CollectionResponse); ok { 367 r0 = rf(ctx, in, opts...) 368 } else { 369 if ret.Get(0) != nil { 370 r0 = ret.Get(0).(*access.CollectionResponse) 371 } 372 } 373 374 if rf, ok := ret.Get(1).(func(context.Context, *access.GetCollectionByIDRequest, ...grpc.CallOption) error); ok { 375 r1 = rf(ctx, in, opts...) 376 } else { 377 r1 = ret.Error(1) 378 } 379 380 return r0, r1 381 } 382 383 // GetEventsForBlockIDs provides a mock function with given fields: ctx, in, opts 384 func (_m *AccessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *access.GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*access.EventsResponse, error) { 385 _va := make([]interface{}, len(opts)) 386 for _i := range opts { 387 _va[_i] = opts[_i] 388 } 389 var _ca []interface{} 390 _ca = append(_ca, ctx, in) 391 _ca = append(_ca, _va...) 392 ret := _m.Called(_ca...) 393 394 var r0 *access.EventsResponse 395 var r1 error 396 if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForBlockIDsRequest, ...grpc.CallOption) (*access.EventsResponse, error)); ok { 397 return rf(ctx, in, opts...) 398 } 399 if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForBlockIDsRequest, ...grpc.CallOption) *access.EventsResponse); ok { 400 r0 = rf(ctx, in, opts...) 401 } else { 402 if ret.Get(0) != nil { 403 r0 = ret.Get(0).(*access.EventsResponse) 404 } 405 } 406 407 if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForBlockIDsRequest, ...grpc.CallOption) error); ok { 408 r1 = rf(ctx, in, opts...) 409 } else { 410 r1 = ret.Error(1) 411 } 412 413 return r0, r1 414 } 415 416 // GetEventsForHeightRange provides a mock function with given fields: ctx, in, opts 417 func (_m *AccessAPIClient) GetEventsForHeightRange(ctx context.Context, in *access.GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*access.EventsResponse, error) { 418 _va := make([]interface{}, len(opts)) 419 for _i := range opts { 420 _va[_i] = opts[_i] 421 } 422 var _ca []interface{} 423 _ca = append(_ca, ctx, in) 424 _ca = append(_ca, _va...) 425 ret := _m.Called(_ca...) 426 427 var r0 *access.EventsResponse 428 var r1 error 429 if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForHeightRangeRequest, ...grpc.CallOption) (*access.EventsResponse, error)); ok { 430 return rf(ctx, in, opts...) 431 } 432 if rf, ok := ret.Get(0).(func(context.Context, *access.GetEventsForHeightRangeRequest, ...grpc.CallOption) *access.EventsResponse); ok { 433 r0 = rf(ctx, in, opts...) 434 } else { 435 if ret.Get(0) != nil { 436 r0 = ret.Get(0).(*access.EventsResponse) 437 } 438 } 439 440 if rf, ok := ret.Get(1).(func(context.Context, *access.GetEventsForHeightRangeRequest, ...grpc.CallOption) error); ok { 441 r1 = rf(ctx, in, opts...) 442 } else { 443 r1 = ret.Error(1) 444 } 445 446 return r0, r1 447 } 448 449 // GetExecutionResultByID provides a mock function with given fields: ctx, in, opts 450 func (_m *AccessAPIClient) GetExecutionResultByID(ctx context.Context, in *access.GetExecutionResultByIDRequest, opts ...grpc.CallOption) (*access.ExecutionResultByIDResponse, error) { 451 _va := make([]interface{}, len(opts)) 452 for _i := range opts { 453 _va[_i] = opts[_i] 454 } 455 var _ca []interface{} 456 _ca = append(_ca, ctx, in) 457 _ca = append(_ca, _va...) 458 ret := _m.Called(_ca...) 459 460 var r0 *access.ExecutionResultByIDResponse 461 var r1 error 462 if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultByIDRequest, ...grpc.CallOption) (*access.ExecutionResultByIDResponse, error)); ok { 463 return rf(ctx, in, opts...) 464 } 465 if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultByIDRequest, ...grpc.CallOption) *access.ExecutionResultByIDResponse); ok { 466 r0 = rf(ctx, in, opts...) 467 } else { 468 if ret.Get(0) != nil { 469 r0 = ret.Get(0).(*access.ExecutionResultByIDResponse) 470 } 471 } 472 473 if rf, ok := ret.Get(1).(func(context.Context, *access.GetExecutionResultByIDRequest, ...grpc.CallOption) error); ok { 474 r1 = rf(ctx, in, opts...) 475 } else { 476 r1 = ret.Error(1) 477 } 478 479 return r0, r1 480 } 481 482 // GetExecutionResultForBlockID provides a mock function with given fields: ctx, in, opts 483 func (_m *AccessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in *access.GetExecutionResultForBlockIDRequest, opts ...grpc.CallOption) (*access.ExecutionResultForBlockIDResponse, error) { 484 _va := make([]interface{}, len(opts)) 485 for _i := range opts { 486 _va[_i] = opts[_i] 487 } 488 var _ca []interface{} 489 _ca = append(_ca, ctx, in) 490 _ca = append(_ca, _va...) 491 ret := _m.Called(_ca...) 492 493 var r0 *access.ExecutionResultForBlockIDResponse 494 var r1 error 495 if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultForBlockIDRequest, ...grpc.CallOption) (*access.ExecutionResultForBlockIDResponse, error)); ok { 496 return rf(ctx, in, opts...) 497 } 498 if rf, ok := ret.Get(0).(func(context.Context, *access.GetExecutionResultForBlockIDRequest, ...grpc.CallOption) *access.ExecutionResultForBlockIDResponse); ok { 499 r0 = rf(ctx, in, opts...) 500 } else { 501 if ret.Get(0) != nil { 502 r0 = ret.Get(0).(*access.ExecutionResultForBlockIDResponse) 503 } 504 } 505 506 if rf, ok := ret.Get(1).(func(context.Context, *access.GetExecutionResultForBlockIDRequest, ...grpc.CallOption) error); ok { 507 r1 = rf(ctx, in, opts...) 508 } else { 509 r1 = ret.Error(1) 510 } 511 512 return r0, r1 513 } 514 515 // GetLatestBlock provides a mock function with given fields: ctx, in, opts 516 func (_m *AccessAPIClient) GetLatestBlock(ctx context.Context, in *access.GetLatestBlockRequest, opts ...grpc.CallOption) (*access.BlockResponse, error) { 517 _va := make([]interface{}, len(opts)) 518 for _i := range opts { 519 _va[_i] = opts[_i] 520 } 521 var _ca []interface{} 522 _ca = append(_ca, ctx, in) 523 _ca = append(_ca, _va...) 524 ret := _m.Called(_ca...) 525 526 var r0 *access.BlockResponse 527 var r1 error 528 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockRequest, ...grpc.CallOption) (*access.BlockResponse, error)); ok { 529 return rf(ctx, in, opts...) 530 } 531 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockRequest, ...grpc.CallOption) *access.BlockResponse); ok { 532 r0 = rf(ctx, in, opts...) 533 } else { 534 if ret.Get(0) != nil { 535 r0 = ret.Get(0).(*access.BlockResponse) 536 } 537 } 538 539 if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockRequest, ...grpc.CallOption) error); ok { 540 r1 = rf(ctx, in, opts...) 541 } else { 542 r1 = ret.Error(1) 543 } 544 545 return r0, r1 546 } 547 548 // GetLatestBlockHeader provides a mock function with given fields: ctx, in, opts 549 func (_m *AccessAPIClient) GetLatestBlockHeader(ctx context.Context, in *access.GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*access.BlockHeaderResponse, error) { 550 _va := make([]interface{}, len(opts)) 551 for _i := range opts { 552 _va[_i] = opts[_i] 553 } 554 var _ca []interface{} 555 _ca = append(_ca, ctx, in) 556 _ca = append(_ca, _va...) 557 ret := _m.Called(_ca...) 558 559 var r0 *access.BlockHeaderResponse 560 var r1 error 561 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockHeaderRequest, ...grpc.CallOption) (*access.BlockHeaderResponse, error)); ok { 562 return rf(ctx, in, opts...) 563 } 564 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestBlockHeaderRequest, ...grpc.CallOption) *access.BlockHeaderResponse); ok { 565 r0 = rf(ctx, in, opts...) 566 } else { 567 if ret.Get(0) != nil { 568 r0 = ret.Get(0).(*access.BlockHeaderResponse) 569 } 570 } 571 572 if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestBlockHeaderRequest, ...grpc.CallOption) error); ok { 573 r1 = rf(ctx, in, opts...) 574 } else { 575 r1 = ret.Error(1) 576 } 577 578 return r0, r1 579 } 580 581 // GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx, in, opts 582 func (_m *AccessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in *access.GetLatestProtocolStateSnapshotRequest, opts ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error) { 583 _va := make([]interface{}, len(opts)) 584 for _i := range opts { 585 _va[_i] = opts[_i] 586 } 587 var _ca []interface{} 588 _ca = append(_ca, ctx, in) 589 _ca = append(_ca, _va...) 590 ret := _m.Called(_ca...) 591 592 var r0 *access.ProtocolStateSnapshotResponse 593 var r1 error 594 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest, ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error)); ok { 595 return rf(ctx, in, opts...) 596 } 597 if rf, ok := ret.Get(0).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest, ...grpc.CallOption) *access.ProtocolStateSnapshotResponse); ok { 598 r0 = rf(ctx, in, opts...) 599 } else { 600 if ret.Get(0) != nil { 601 r0 = ret.Get(0).(*access.ProtocolStateSnapshotResponse) 602 } 603 } 604 605 if rf, ok := ret.Get(1).(func(context.Context, *access.GetLatestProtocolStateSnapshotRequest, ...grpc.CallOption) error); ok { 606 r1 = rf(ctx, in, opts...) 607 } else { 608 r1 = ret.Error(1) 609 } 610 611 return r0, r1 612 } 613 614 // GetNetworkParameters provides a mock function with given fields: ctx, in, opts 615 func (_m *AccessAPIClient) GetNetworkParameters(ctx context.Context, in *access.GetNetworkParametersRequest, opts ...grpc.CallOption) (*access.GetNetworkParametersResponse, error) { 616 _va := make([]interface{}, len(opts)) 617 for _i := range opts { 618 _va[_i] = opts[_i] 619 } 620 var _ca []interface{} 621 _ca = append(_ca, ctx, in) 622 _ca = append(_ca, _va...) 623 ret := _m.Called(_ca...) 624 625 var r0 *access.GetNetworkParametersResponse 626 var r1 error 627 if rf, ok := ret.Get(0).(func(context.Context, *access.GetNetworkParametersRequest, ...grpc.CallOption) (*access.GetNetworkParametersResponse, error)); ok { 628 return rf(ctx, in, opts...) 629 } 630 if rf, ok := ret.Get(0).(func(context.Context, *access.GetNetworkParametersRequest, ...grpc.CallOption) *access.GetNetworkParametersResponse); ok { 631 r0 = rf(ctx, in, opts...) 632 } else { 633 if ret.Get(0) != nil { 634 r0 = ret.Get(0).(*access.GetNetworkParametersResponse) 635 } 636 } 637 638 if rf, ok := ret.Get(1).(func(context.Context, *access.GetNetworkParametersRequest, ...grpc.CallOption) error); ok { 639 r1 = rf(ctx, in, opts...) 640 } else { 641 r1 = ret.Error(1) 642 } 643 644 return r0, r1 645 } 646 647 // GetNodeVersionInfo provides a mock function with given fields: ctx, in, opts 648 func (_m *AccessAPIClient) GetNodeVersionInfo(ctx context.Context, in *access.GetNodeVersionInfoRequest, opts ...grpc.CallOption) (*access.GetNodeVersionInfoResponse, error) { 649 _va := make([]interface{}, len(opts)) 650 for _i := range opts { 651 _va[_i] = opts[_i] 652 } 653 var _ca []interface{} 654 _ca = append(_ca, ctx, in) 655 _ca = append(_ca, _va...) 656 ret := _m.Called(_ca...) 657 658 var r0 *access.GetNodeVersionInfoResponse 659 var r1 error 660 if rf, ok := ret.Get(0).(func(context.Context, *access.GetNodeVersionInfoRequest, ...grpc.CallOption) (*access.GetNodeVersionInfoResponse, error)); ok { 661 return rf(ctx, in, opts...) 662 } 663 if rf, ok := ret.Get(0).(func(context.Context, *access.GetNodeVersionInfoRequest, ...grpc.CallOption) *access.GetNodeVersionInfoResponse); ok { 664 r0 = rf(ctx, in, opts...) 665 } else { 666 if ret.Get(0) != nil { 667 r0 = ret.Get(0).(*access.GetNodeVersionInfoResponse) 668 } 669 } 670 671 if rf, ok := ret.Get(1).(func(context.Context, *access.GetNodeVersionInfoRequest, ...grpc.CallOption) error); ok { 672 r1 = rf(ctx, in, opts...) 673 } else { 674 r1 = ret.Error(1) 675 } 676 677 return r0, r1 678 } 679 680 // GetProtocolStateSnapshotByBlockID provides a mock function with given fields: ctx, in, opts 681 func (_m *AccessAPIClient) GetProtocolStateSnapshotByBlockID(ctx context.Context, in *access.GetProtocolStateSnapshotByBlockIDRequest, opts ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error) { 682 _va := make([]interface{}, len(opts)) 683 for _i := range opts { 684 _va[_i] = opts[_i] 685 } 686 var _ca []interface{} 687 _ca = append(_ca, ctx, in) 688 _ca = append(_ca, _va...) 689 ret := _m.Called(_ca...) 690 691 var r0 *access.ProtocolStateSnapshotResponse 692 var r1 error 693 if rf, ok := ret.Get(0).(func(context.Context, *access.GetProtocolStateSnapshotByBlockIDRequest, ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error)); ok { 694 return rf(ctx, in, opts...) 695 } 696 if rf, ok := ret.Get(0).(func(context.Context, *access.GetProtocolStateSnapshotByBlockIDRequest, ...grpc.CallOption) *access.ProtocolStateSnapshotResponse); ok { 697 r0 = rf(ctx, in, opts...) 698 } else { 699 if ret.Get(0) != nil { 700 r0 = ret.Get(0).(*access.ProtocolStateSnapshotResponse) 701 } 702 } 703 704 if rf, ok := ret.Get(1).(func(context.Context, *access.GetProtocolStateSnapshotByBlockIDRequest, ...grpc.CallOption) error); ok { 705 r1 = rf(ctx, in, opts...) 706 } else { 707 r1 = ret.Error(1) 708 } 709 710 return r0, r1 711 } 712 713 // GetProtocolStateSnapshotByHeight provides a mock function with given fields: ctx, in, opts 714 func (_m *AccessAPIClient) GetProtocolStateSnapshotByHeight(ctx context.Context, in *access.GetProtocolStateSnapshotByHeightRequest, opts ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error) { 715 _va := make([]interface{}, len(opts)) 716 for _i := range opts { 717 _va[_i] = opts[_i] 718 } 719 var _ca []interface{} 720 _ca = append(_ca, ctx, in) 721 _ca = append(_ca, _va...) 722 ret := _m.Called(_ca...) 723 724 var r0 *access.ProtocolStateSnapshotResponse 725 var r1 error 726 if rf, ok := ret.Get(0).(func(context.Context, *access.GetProtocolStateSnapshotByHeightRequest, ...grpc.CallOption) (*access.ProtocolStateSnapshotResponse, error)); ok { 727 return rf(ctx, in, opts...) 728 } 729 if rf, ok := ret.Get(0).(func(context.Context, *access.GetProtocolStateSnapshotByHeightRequest, ...grpc.CallOption) *access.ProtocolStateSnapshotResponse); ok { 730 r0 = rf(ctx, in, opts...) 731 } else { 732 if ret.Get(0) != nil { 733 r0 = ret.Get(0).(*access.ProtocolStateSnapshotResponse) 734 } 735 } 736 737 if rf, ok := ret.Get(1).(func(context.Context, *access.GetProtocolStateSnapshotByHeightRequest, ...grpc.CallOption) error); ok { 738 r1 = rf(ctx, in, opts...) 739 } else { 740 r1 = ret.Error(1) 741 } 742 743 return r0, r1 744 } 745 746 // GetSystemTransaction provides a mock function with given fields: ctx, in, opts 747 func (_m *AccessAPIClient) GetSystemTransaction(ctx context.Context, in *access.GetSystemTransactionRequest, opts ...grpc.CallOption) (*access.TransactionResponse, error) { 748 _va := make([]interface{}, len(opts)) 749 for _i := range opts { 750 _va[_i] = opts[_i] 751 } 752 var _ca []interface{} 753 _ca = append(_ca, ctx, in) 754 _ca = append(_ca, _va...) 755 ret := _m.Called(_ca...) 756 757 var r0 *access.TransactionResponse 758 var r1 error 759 if rf, ok := ret.Get(0).(func(context.Context, *access.GetSystemTransactionRequest, ...grpc.CallOption) (*access.TransactionResponse, error)); ok { 760 return rf(ctx, in, opts...) 761 } 762 if rf, ok := ret.Get(0).(func(context.Context, *access.GetSystemTransactionRequest, ...grpc.CallOption) *access.TransactionResponse); ok { 763 r0 = rf(ctx, in, opts...) 764 } else { 765 if ret.Get(0) != nil { 766 r0 = ret.Get(0).(*access.TransactionResponse) 767 } 768 } 769 770 if rf, ok := ret.Get(1).(func(context.Context, *access.GetSystemTransactionRequest, ...grpc.CallOption) error); ok { 771 r1 = rf(ctx, in, opts...) 772 } else { 773 r1 = ret.Error(1) 774 } 775 776 return r0, r1 777 } 778 779 // GetSystemTransactionResult provides a mock function with given fields: ctx, in, opts 780 func (_m *AccessAPIClient) GetSystemTransactionResult(ctx context.Context, in *access.GetSystemTransactionResultRequest, opts ...grpc.CallOption) (*access.TransactionResultResponse, error) { 781 _va := make([]interface{}, len(opts)) 782 for _i := range opts { 783 _va[_i] = opts[_i] 784 } 785 var _ca []interface{} 786 _ca = append(_ca, ctx, in) 787 _ca = append(_ca, _va...) 788 ret := _m.Called(_ca...) 789 790 var r0 *access.TransactionResultResponse 791 var r1 error 792 if rf, ok := ret.Get(0).(func(context.Context, *access.GetSystemTransactionResultRequest, ...grpc.CallOption) (*access.TransactionResultResponse, error)); ok { 793 return rf(ctx, in, opts...) 794 } 795 if rf, ok := ret.Get(0).(func(context.Context, *access.GetSystemTransactionResultRequest, ...grpc.CallOption) *access.TransactionResultResponse); ok { 796 r0 = rf(ctx, in, opts...) 797 } else { 798 if ret.Get(0) != nil { 799 r0 = ret.Get(0).(*access.TransactionResultResponse) 800 } 801 } 802 803 if rf, ok := ret.Get(1).(func(context.Context, *access.GetSystemTransactionResultRequest, ...grpc.CallOption) error); ok { 804 r1 = rf(ctx, in, opts...) 805 } else { 806 r1 = ret.Error(1) 807 } 808 809 return r0, r1 810 } 811 812 // GetTransaction provides a mock function with given fields: ctx, in, opts 813 func (_m *AccessAPIClient) GetTransaction(ctx context.Context, in *access.GetTransactionRequest, opts ...grpc.CallOption) (*access.TransactionResponse, error) { 814 _va := make([]interface{}, len(opts)) 815 for _i := range opts { 816 _va[_i] = opts[_i] 817 } 818 var _ca []interface{} 819 _ca = append(_ca, ctx, in) 820 _ca = append(_ca, _va...) 821 ret := _m.Called(_ca...) 822 823 var r0 *access.TransactionResponse 824 var r1 error 825 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) (*access.TransactionResponse, error)); ok { 826 return rf(ctx, in, opts...) 827 } 828 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) *access.TransactionResponse); ok { 829 r0 = rf(ctx, in, opts...) 830 } else { 831 if ret.Get(0) != nil { 832 r0 = ret.Get(0).(*access.TransactionResponse) 833 } 834 } 835 836 if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) error); ok { 837 r1 = rf(ctx, in, opts...) 838 } else { 839 r1 = ret.Error(1) 840 } 841 842 return r0, r1 843 } 844 845 // GetTransactionResult provides a mock function with given fields: ctx, in, opts 846 func (_m *AccessAPIClient) GetTransactionResult(ctx context.Context, in *access.GetTransactionRequest, opts ...grpc.CallOption) (*access.TransactionResultResponse, error) { 847 _va := make([]interface{}, len(opts)) 848 for _i := range opts { 849 _va[_i] = opts[_i] 850 } 851 var _ca []interface{} 852 _ca = append(_ca, ctx, in) 853 _ca = append(_ca, _va...) 854 ret := _m.Called(_ca...) 855 856 var r0 *access.TransactionResultResponse 857 var r1 error 858 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) (*access.TransactionResultResponse, error)); ok { 859 return rf(ctx, in, opts...) 860 } 861 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) *access.TransactionResultResponse); ok { 862 r0 = rf(ctx, in, opts...) 863 } else { 864 if ret.Get(0) != nil { 865 r0 = ret.Get(0).(*access.TransactionResultResponse) 866 } 867 } 868 869 if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionRequest, ...grpc.CallOption) error); ok { 870 r1 = rf(ctx, in, opts...) 871 } else { 872 r1 = ret.Error(1) 873 } 874 875 return r0, r1 876 } 877 878 // GetTransactionResultByIndex provides a mock function with given fields: ctx, in, opts 879 func (_m *AccessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *access.GetTransactionByIndexRequest, opts ...grpc.CallOption) (*access.TransactionResultResponse, error) { 880 _va := make([]interface{}, len(opts)) 881 for _i := range opts { 882 _va[_i] = opts[_i] 883 } 884 var _ca []interface{} 885 _ca = append(_ca, ctx, in) 886 _ca = append(_ca, _va...) 887 ret := _m.Called(_ca...) 888 889 var r0 *access.TransactionResultResponse 890 var r1 error 891 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionByIndexRequest, ...grpc.CallOption) (*access.TransactionResultResponse, error)); ok { 892 return rf(ctx, in, opts...) 893 } 894 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionByIndexRequest, ...grpc.CallOption) *access.TransactionResultResponse); ok { 895 r0 = rf(ctx, in, opts...) 896 } else { 897 if ret.Get(0) != nil { 898 r0 = ret.Get(0).(*access.TransactionResultResponse) 899 } 900 } 901 902 if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionByIndexRequest, ...grpc.CallOption) error); ok { 903 r1 = rf(ctx, in, opts...) 904 } else { 905 r1 = ret.Error(1) 906 } 907 908 return r0, r1 909 } 910 911 // GetTransactionResultsByBlockID provides a mock function with given fields: ctx, in, opts 912 func (_m *AccessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *access.GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*access.TransactionResultsResponse, error) { 913 _va := make([]interface{}, len(opts)) 914 for _i := range opts { 915 _va[_i] = opts[_i] 916 } 917 var _ca []interface{} 918 _ca = append(_ca, ctx, in) 919 _ca = append(_ca, _va...) 920 ret := _m.Called(_ca...) 921 922 var r0 *access.TransactionResultsResponse 923 var r1 error 924 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) (*access.TransactionResultsResponse, error)); ok { 925 return rf(ctx, in, opts...) 926 } 927 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) *access.TransactionResultsResponse); ok { 928 r0 = rf(ctx, in, opts...) 929 } else { 930 if ret.Get(0) != nil { 931 r0 = ret.Get(0).(*access.TransactionResultsResponse) 932 } 933 } 934 935 if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) error); ok { 936 r1 = rf(ctx, in, opts...) 937 } else { 938 r1 = ret.Error(1) 939 } 940 941 return r0, r1 942 } 943 944 // GetTransactionsByBlockID provides a mock function with given fields: ctx, in, opts 945 func (_m *AccessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *access.GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*access.TransactionsResponse, error) { 946 _va := make([]interface{}, len(opts)) 947 for _i := range opts { 948 _va[_i] = opts[_i] 949 } 950 var _ca []interface{} 951 _ca = append(_ca, ctx, in) 952 _ca = append(_ca, _va...) 953 ret := _m.Called(_ca...) 954 955 var r0 *access.TransactionsResponse 956 var r1 error 957 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) (*access.TransactionsResponse, error)); ok { 958 return rf(ctx, in, opts...) 959 } 960 if rf, ok := ret.Get(0).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) *access.TransactionsResponse); ok { 961 r0 = rf(ctx, in, opts...) 962 } else { 963 if ret.Get(0) != nil { 964 r0 = ret.Get(0).(*access.TransactionsResponse) 965 } 966 } 967 968 if rf, ok := ret.Get(1).(func(context.Context, *access.GetTransactionsByBlockIDRequest, ...grpc.CallOption) error); ok { 969 r1 = rf(ctx, in, opts...) 970 } else { 971 r1 = ret.Error(1) 972 } 973 974 return r0, r1 975 } 976 977 // Ping provides a mock function with given fields: ctx, in, opts 978 func (_m *AccessAPIClient) Ping(ctx context.Context, in *access.PingRequest, opts ...grpc.CallOption) (*access.PingResponse, error) { 979 _va := make([]interface{}, len(opts)) 980 for _i := range opts { 981 _va[_i] = opts[_i] 982 } 983 var _ca []interface{} 984 _ca = append(_ca, ctx, in) 985 _ca = append(_ca, _va...) 986 ret := _m.Called(_ca...) 987 988 var r0 *access.PingResponse 989 var r1 error 990 if rf, ok := ret.Get(0).(func(context.Context, *access.PingRequest, ...grpc.CallOption) (*access.PingResponse, error)); ok { 991 return rf(ctx, in, opts...) 992 } 993 if rf, ok := ret.Get(0).(func(context.Context, *access.PingRequest, ...grpc.CallOption) *access.PingResponse); ok { 994 r0 = rf(ctx, in, opts...) 995 } else { 996 if ret.Get(0) != nil { 997 r0 = ret.Get(0).(*access.PingResponse) 998 } 999 } 1000 1001 if rf, ok := ret.Get(1).(func(context.Context, *access.PingRequest, ...grpc.CallOption) error); ok { 1002 r1 = rf(ctx, in, opts...) 1003 } else { 1004 r1 = ret.Error(1) 1005 } 1006 1007 return r0, r1 1008 } 1009 1010 // SendAndSubscribeTransactionStatuses provides a mock function with given fields: ctx, in, opts 1011 func (_m *AccessAPIClient) SendAndSubscribeTransactionStatuses(ctx context.Context, in *access.SendAndSubscribeTransactionStatusesRequest, opts ...grpc.CallOption) (access.AccessAPI_SendAndSubscribeTransactionStatusesClient, error) { 1012 _va := make([]interface{}, len(opts)) 1013 for _i := range opts { 1014 _va[_i] = opts[_i] 1015 } 1016 var _ca []interface{} 1017 _ca = append(_ca, ctx, in) 1018 _ca = append(_ca, _va...) 1019 ret := _m.Called(_ca...) 1020 1021 var r0 access.AccessAPI_SendAndSubscribeTransactionStatusesClient 1022 var r1 error 1023 if rf, ok := ret.Get(0).(func(context.Context, *access.SendAndSubscribeTransactionStatusesRequest, ...grpc.CallOption) (access.AccessAPI_SendAndSubscribeTransactionStatusesClient, error)); ok { 1024 return rf(ctx, in, opts...) 1025 } 1026 if rf, ok := ret.Get(0).(func(context.Context, *access.SendAndSubscribeTransactionStatusesRequest, ...grpc.CallOption) access.AccessAPI_SendAndSubscribeTransactionStatusesClient); ok { 1027 r0 = rf(ctx, in, opts...) 1028 } else { 1029 if ret.Get(0) != nil { 1030 r0 = ret.Get(0).(access.AccessAPI_SendAndSubscribeTransactionStatusesClient) 1031 } 1032 } 1033 1034 if rf, ok := ret.Get(1).(func(context.Context, *access.SendAndSubscribeTransactionStatusesRequest, ...grpc.CallOption) error); ok { 1035 r1 = rf(ctx, in, opts...) 1036 } else { 1037 r1 = ret.Error(1) 1038 } 1039 1040 return r0, r1 1041 } 1042 1043 // SendTransaction provides a mock function with given fields: ctx, in, opts 1044 func (_m *AccessAPIClient) SendTransaction(ctx context.Context, in *access.SendTransactionRequest, opts ...grpc.CallOption) (*access.SendTransactionResponse, error) { 1045 _va := make([]interface{}, len(opts)) 1046 for _i := range opts { 1047 _va[_i] = opts[_i] 1048 } 1049 var _ca []interface{} 1050 _ca = append(_ca, ctx, in) 1051 _ca = append(_ca, _va...) 1052 ret := _m.Called(_ca...) 1053 1054 var r0 *access.SendTransactionResponse 1055 var r1 error 1056 if rf, ok := ret.Get(0).(func(context.Context, *access.SendTransactionRequest, ...grpc.CallOption) (*access.SendTransactionResponse, error)); ok { 1057 return rf(ctx, in, opts...) 1058 } 1059 if rf, ok := ret.Get(0).(func(context.Context, *access.SendTransactionRequest, ...grpc.CallOption) *access.SendTransactionResponse); ok { 1060 r0 = rf(ctx, in, opts...) 1061 } else { 1062 if ret.Get(0) != nil { 1063 r0 = ret.Get(0).(*access.SendTransactionResponse) 1064 } 1065 } 1066 1067 if rf, ok := ret.Get(1).(func(context.Context, *access.SendTransactionRequest, ...grpc.CallOption) error); ok { 1068 r1 = rf(ctx, in, opts...) 1069 } else { 1070 r1 = ret.Error(1) 1071 } 1072 1073 return r0, r1 1074 } 1075 1076 // SubscribeBlockDigestsFromLatest provides a mock function with given fields: ctx, in, opts 1077 func (_m *AccessAPIClient) SubscribeBlockDigestsFromLatest(ctx context.Context, in *access.SubscribeBlockDigestsFromLatestRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromLatestClient, error) { 1078 _va := make([]interface{}, len(opts)) 1079 for _i := range opts { 1080 _va[_i] = opts[_i] 1081 } 1082 var _ca []interface{} 1083 _ca = append(_ca, ctx, in) 1084 _ca = append(_ca, _va...) 1085 ret := _m.Called(_ca...) 1086 1087 var r0 access.AccessAPI_SubscribeBlockDigestsFromLatestClient 1088 var r1 error 1089 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromLatestRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromLatestClient, error)); ok { 1090 return rf(ctx, in, opts...) 1091 } 1092 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromLatestRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockDigestsFromLatestClient); ok { 1093 r0 = rf(ctx, in, opts...) 1094 } else { 1095 if ret.Get(0) != nil { 1096 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockDigestsFromLatestClient) 1097 } 1098 } 1099 1100 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockDigestsFromLatestRequest, ...grpc.CallOption) error); ok { 1101 r1 = rf(ctx, in, opts...) 1102 } else { 1103 r1 = ret.Error(1) 1104 } 1105 1106 return r0, r1 1107 } 1108 1109 // SubscribeBlockDigestsFromStartBlockID provides a mock function with given fields: ctx, in, opts 1110 func (_m *AccessAPIClient) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, in *access.SubscribeBlockDigestsFromStartBlockIDRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient, error) { 1111 _va := make([]interface{}, len(opts)) 1112 for _i := range opts { 1113 _va[_i] = opts[_i] 1114 } 1115 var _ca []interface{} 1116 _ca = append(_ca, ctx, in) 1117 _ca = append(_ca, _va...) 1118 ret := _m.Called(_ca...) 1119 1120 var r0 access.AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient 1121 var r1 error 1122 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromStartBlockIDRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient, error)); ok { 1123 return rf(ctx, in, opts...) 1124 } 1125 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromStartBlockIDRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient); ok { 1126 r0 = rf(ctx, in, opts...) 1127 } else { 1128 if ret.Get(0) != nil { 1129 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient) 1130 } 1131 } 1132 1133 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockDigestsFromStartBlockIDRequest, ...grpc.CallOption) error); ok { 1134 r1 = rf(ctx, in, opts...) 1135 } else { 1136 r1 = ret.Error(1) 1137 } 1138 1139 return r0, r1 1140 } 1141 1142 // SubscribeBlockDigestsFromStartHeight provides a mock function with given fields: ctx, in, opts 1143 func (_m *AccessAPIClient) SubscribeBlockDigestsFromStartHeight(ctx context.Context, in *access.SubscribeBlockDigestsFromStartHeightRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromStartHeightClient, error) { 1144 _va := make([]interface{}, len(opts)) 1145 for _i := range opts { 1146 _va[_i] = opts[_i] 1147 } 1148 var _ca []interface{} 1149 _ca = append(_ca, ctx, in) 1150 _ca = append(_ca, _va...) 1151 ret := _m.Called(_ca...) 1152 1153 var r0 access.AccessAPI_SubscribeBlockDigestsFromStartHeightClient 1154 var r1 error 1155 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromStartHeightRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockDigestsFromStartHeightClient, error)); ok { 1156 return rf(ctx, in, opts...) 1157 } 1158 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockDigestsFromStartHeightRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockDigestsFromStartHeightClient); ok { 1159 r0 = rf(ctx, in, opts...) 1160 } else { 1161 if ret.Get(0) != nil { 1162 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockDigestsFromStartHeightClient) 1163 } 1164 } 1165 1166 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockDigestsFromStartHeightRequest, ...grpc.CallOption) error); ok { 1167 r1 = rf(ctx, in, opts...) 1168 } else { 1169 r1 = ret.Error(1) 1170 } 1171 1172 return r0, r1 1173 } 1174 1175 // SubscribeBlockHeadersFromLatest provides a mock function with given fields: ctx, in, opts 1176 func (_m *AccessAPIClient) SubscribeBlockHeadersFromLatest(ctx context.Context, in *access.SubscribeBlockHeadersFromLatestRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromLatestClient, error) { 1177 _va := make([]interface{}, len(opts)) 1178 for _i := range opts { 1179 _va[_i] = opts[_i] 1180 } 1181 var _ca []interface{} 1182 _ca = append(_ca, ctx, in) 1183 _ca = append(_ca, _va...) 1184 ret := _m.Called(_ca...) 1185 1186 var r0 access.AccessAPI_SubscribeBlockHeadersFromLatestClient 1187 var r1 error 1188 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromLatestRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromLatestClient, error)); ok { 1189 return rf(ctx, in, opts...) 1190 } 1191 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromLatestRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockHeadersFromLatestClient); ok { 1192 r0 = rf(ctx, in, opts...) 1193 } else { 1194 if ret.Get(0) != nil { 1195 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockHeadersFromLatestClient) 1196 } 1197 } 1198 1199 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockHeadersFromLatestRequest, ...grpc.CallOption) error); ok { 1200 r1 = rf(ctx, in, opts...) 1201 } else { 1202 r1 = ret.Error(1) 1203 } 1204 1205 return r0, r1 1206 } 1207 1208 // SubscribeBlockHeadersFromStartBlockID provides a mock function with given fields: ctx, in, opts 1209 func (_m *AccessAPIClient) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, in *access.SubscribeBlockHeadersFromStartBlockIDRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient, error) { 1210 _va := make([]interface{}, len(opts)) 1211 for _i := range opts { 1212 _va[_i] = opts[_i] 1213 } 1214 var _ca []interface{} 1215 _ca = append(_ca, ctx, in) 1216 _ca = append(_ca, _va...) 1217 ret := _m.Called(_ca...) 1218 1219 var r0 access.AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient 1220 var r1 error 1221 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromStartBlockIDRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient, error)); ok { 1222 return rf(ctx, in, opts...) 1223 } 1224 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromStartBlockIDRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient); ok { 1225 r0 = rf(ctx, in, opts...) 1226 } else { 1227 if ret.Get(0) != nil { 1228 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient) 1229 } 1230 } 1231 1232 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockHeadersFromStartBlockIDRequest, ...grpc.CallOption) error); ok { 1233 r1 = rf(ctx, in, opts...) 1234 } else { 1235 r1 = ret.Error(1) 1236 } 1237 1238 return r0, r1 1239 } 1240 1241 // SubscribeBlockHeadersFromStartHeight provides a mock function with given fields: ctx, in, opts 1242 func (_m *AccessAPIClient) SubscribeBlockHeadersFromStartHeight(ctx context.Context, in *access.SubscribeBlockHeadersFromStartHeightRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromStartHeightClient, error) { 1243 _va := make([]interface{}, len(opts)) 1244 for _i := range opts { 1245 _va[_i] = opts[_i] 1246 } 1247 var _ca []interface{} 1248 _ca = append(_ca, ctx, in) 1249 _ca = append(_ca, _va...) 1250 ret := _m.Called(_ca...) 1251 1252 var r0 access.AccessAPI_SubscribeBlockHeadersFromStartHeightClient 1253 var r1 error 1254 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromStartHeightRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlockHeadersFromStartHeightClient, error)); ok { 1255 return rf(ctx, in, opts...) 1256 } 1257 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlockHeadersFromStartHeightRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlockHeadersFromStartHeightClient); ok { 1258 r0 = rf(ctx, in, opts...) 1259 } else { 1260 if ret.Get(0) != nil { 1261 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlockHeadersFromStartHeightClient) 1262 } 1263 } 1264 1265 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlockHeadersFromStartHeightRequest, ...grpc.CallOption) error); ok { 1266 r1 = rf(ctx, in, opts...) 1267 } else { 1268 r1 = ret.Error(1) 1269 } 1270 1271 return r0, r1 1272 } 1273 1274 // SubscribeBlocksFromLatest provides a mock function with given fields: ctx, in, opts 1275 func (_m *AccessAPIClient) SubscribeBlocksFromLatest(ctx context.Context, in *access.SubscribeBlocksFromLatestRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromLatestClient, error) { 1276 _va := make([]interface{}, len(opts)) 1277 for _i := range opts { 1278 _va[_i] = opts[_i] 1279 } 1280 var _ca []interface{} 1281 _ca = append(_ca, ctx, in) 1282 _ca = append(_ca, _va...) 1283 ret := _m.Called(_ca...) 1284 1285 var r0 access.AccessAPI_SubscribeBlocksFromLatestClient 1286 var r1 error 1287 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromLatestRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromLatestClient, error)); ok { 1288 return rf(ctx, in, opts...) 1289 } 1290 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromLatestRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlocksFromLatestClient); ok { 1291 r0 = rf(ctx, in, opts...) 1292 } else { 1293 if ret.Get(0) != nil { 1294 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlocksFromLatestClient) 1295 } 1296 } 1297 1298 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlocksFromLatestRequest, ...grpc.CallOption) error); ok { 1299 r1 = rf(ctx, in, opts...) 1300 } else { 1301 r1 = ret.Error(1) 1302 } 1303 1304 return r0, r1 1305 } 1306 1307 // SubscribeBlocksFromStartBlockID provides a mock function with given fields: ctx, in, opts 1308 func (_m *AccessAPIClient) SubscribeBlocksFromStartBlockID(ctx context.Context, in *access.SubscribeBlocksFromStartBlockIDRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromStartBlockIDClient, error) { 1309 _va := make([]interface{}, len(opts)) 1310 for _i := range opts { 1311 _va[_i] = opts[_i] 1312 } 1313 var _ca []interface{} 1314 _ca = append(_ca, ctx, in) 1315 _ca = append(_ca, _va...) 1316 ret := _m.Called(_ca...) 1317 1318 var r0 access.AccessAPI_SubscribeBlocksFromStartBlockIDClient 1319 var r1 error 1320 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromStartBlockIDRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromStartBlockIDClient, error)); ok { 1321 return rf(ctx, in, opts...) 1322 } 1323 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromStartBlockIDRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlocksFromStartBlockIDClient); ok { 1324 r0 = rf(ctx, in, opts...) 1325 } else { 1326 if ret.Get(0) != nil { 1327 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlocksFromStartBlockIDClient) 1328 } 1329 } 1330 1331 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlocksFromStartBlockIDRequest, ...grpc.CallOption) error); ok { 1332 r1 = rf(ctx, in, opts...) 1333 } else { 1334 r1 = ret.Error(1) 1335 } 1336 1337 return r0, r1 1338 } 1339 1340 // SubscribeBlocksFromStartHeight provides a mock function with given fields: ctx, in, opts 1341 func (_m *AccessAPIClient) SubscribeBlocksFromStartHeight(ctx context.Context, in *access.SubscribeBlocksFromStartHeightRequest, opts ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromStartHeightClient, error) { 1342 _va := make([]interface{}, len(opts)) 1343 for _i := range opts { 1344 _va[_i] = opts[_i] 1345 } 1346 var _ca []interface{} 1347 _ca = append(_ca, ctx, in) 1348 _ca = append(_ca, _va...) 1349 ret := _m.Called(_ca...) 1350 1351 var r0 access.AccessAPI_SubscribeBlocksFromStartHeightClient 1352 var r1 error 1353 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromStartHeightRequest, ...grpc.CallOption) (access.AccessAPI_SubscribeBlocksFromStartHeightClient, error)); ok { 1354 return rf(ctx, in, opts...) 1355 } 1356 if rf, ok := ret.Get(0).(func(context.Context, *access.SubscribeBlocksFromStartHeightRequest, ...grpc.CallOption) access.AccessAPI_SubscribeBlocksFromStartHeightClient); ok { 1357 r0 = rf(ctx, in, opts...) 1358 } else { 1359 if ret.Get(0) != nil { 1360 r0 = ret.Get(0).(access.AccessAPI_SubscribeBlocksFromStartHeightClient) 1361 } 1362 } 1363 1364 if rf, ok := ret.Get(1).(func(context.Context, *access.SubscribeBlocksFromStartHeightRequest, ...grpc.CallOption) error); ok { 1365 r1 = rf(ctx, in, opts...) 1366 } else { 1367 r1 = ret.Error(1) 1368 } 1369 1370 return r0, r1 1371 } 1372 1373 type mockConstructorTestingTNewAccessAPIClient interface { 1374 mock.TestingT 1375 Cleanup(func()) 1376 } 1377 1378 // NewAccessAPIClient creates a new instance of AccessAPIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 1379 func NewAccessAPIClient(t mockConstructorTestingTNewAccessAPIClient) *AccessAPIClient { 1380 mock := &AccessAPIClient{} 1381 mock.Mock.Test(t) 1382 1383 t.Cleanup(func() { mock.AssertExpectations(t) }) 1384 1385 return mock 1386 }