github.com/prysmaticlabs/prysm@v1.4.4/shared/mock/beacon_validator_client_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/prysmaticlabs/prysm/proto/eth/v1alpha1 (interfaces: BeaconNodeValidatorClient,BeaconNodeValidator_WaitForChainStartClient,BeaconNodeValidator_WaitForActivationClient,BeaconNodeValidator_StreamDutiesClient) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 13 grpc "google.golang.org/grpc" 14 metadata "google.golang.org/grpc/metadata" 15 emptypb "google.golang.org/protobuf/types/known/emptypb" 16 ) 17 18 // MockBeaconNodeValidatorClient is a mock of BeaconNodeValidatorClient interface 19 type MockBeaconNodeValidatorClient struct { 20 ctrl *gomock.Controller 21 recorder *MockBeaconNodeValidatorClientMockRecorder 22 } 23 24 // MockBeaconNodeValidatorClientMockRecorder is the mock recorder for MockBeaconNodeValidatorClient 25 type MockBeaconNodeValidatorClientMockRecorder struct { 26 mock *MockBeaconNodeValidatorClient 27 } 28 29 // NewMockBeaconNodeValidatorClient creates a new mock instance 30 func NewMockBeaconNodeValidatorClient(ctrl *gomock.Controller) *MockBeaconNodeValidatorClient { 31 mock := &MockBeaconNodeValidatorClient{ctrl: ctrl} 32 mock.recorder = &MockBeaconNodeValidatorClientMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use 37 func (m *MockBeaconNodeValidatorClient) EXPECT() *MockBeaconNodeValidatorClientMockRecorder { 38 return m.recorder 39 } 40 41 // CheckDoppelGanger mocks base method 42 func (m *MockBeaconNodeValidatorClient) CheckDoppelGanger(arg0 context.Context, arg1 *v1alpha1.DoppelGangerRequest, arg2 ...grpc.CallOption) (*v1alpha1.DoppelGangerResponse, error) { 43 m.ctrl.T.Helper() 44 varargs := []interface{}{arg0, arg1} 45 for _, a := range arg2 { 46 varargs = append(varargs, a) 47 } 48 ret := m.ctrl.Call(m, "CheckDoppelGanger", varargs...) 49 ret0, _ := ret[0].(*v1alpha1.DoppelGangerResponse) 50 ret1, _ := ret[1].(error) 51 return ret0, ret1 52 } 53 54 // CheckDoppelGanger indicates an expected call of CheckDoppelGanger 55 func (mr *MockBeaconNodeValidatorClientMockRecorder) CheckDoppelGanger(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 56 mr.mock.ctrl.T.Helper() 57 varargs := append([]interface{}{arg0, arg1}, arg2...) 58 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckDoppelGanger", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).CheckDoppelGanger), varargs...) 59 } 60 61 // DomainData mocks base method 62 func (m *MockBeaconNodeValidatorClient) DomainData(arg0 context.Context, arg1 *v1alpha1.DomainRequest, arg2 ...grpc.CallOption) (*v1alpha1.DomainResponse, error) { 63 m.ctrl.T.Helper() 64 varargs := []interface{}{arg0, arg1} 65 for _, a := range arg2 { 66 varargs = append(varargs, a) 67 } 68 ret := m.ctrl.Call(m, "DomainData", varargs...) 69 ret0, _ := ret[0].(*v1alpha1.DomainResponse) 70 ret1, _ := ret[1].(error) 71 return ret0, ret1 72 } 73 74 // DomainData indicates an expected call of DomainData 75 func (mr *MockBeaconNodeValidatorClientMockRecorder) DomainData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 varargs := append([]interface{}{arg0, arg1}, arg2...) 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainData", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).DomainData), varargs...) 79 } 80 81 // GetAttestationData mocks base method 82 func (m *MockBeaconNodeValidatorClient) GetAttestationData(arg0 context.Context, arg1 *v1alpha1.AttestationDataRequest, arg2 ...grpc.CallOption) (*v1alpha1.AttestationData, error) { 83 m.ctrl.T.Helper() 84 varargs := []interface{}{arg0, arg1} 85 for _, a := range arg2 { 86 varargs = append(varargs, a) 87 } 88 ret := m.ctrl.Call(m, "GetAttestationData", varargs...) 89 ret0, _ := ret[0].(*v1alpha1.AttestationData) 90 ret1, _ := ret[1].(error) 91 return ret0, ret1 92 } 93 94 // GetAttestationData indicates an expected call of GetAttestationData 95 func (mr *MockBeaconNodeValidatorClientMockRecorder) GetAttestationData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 varargs := append([]interface{}{arg0, arg1}, arg2...) 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttestationData", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).GetAttestationData), varargs...) 99 } 100 101 // GetBlock mocks base method 102 func (m *MockBeaconNodeValidatorClient) GetBlock(arg0 context.Context, arg1 *v1alpha1.BlockRequest, arg2 ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { 103 m.ctrl.T.Helper() 104 varargs := []interface{}{arg0, arg1} 105 for _, a := range arg2 { 106 varargs = append(varargs, a) 107 } 108 ret := m.ctrl.Call(m, "GetBlock", varargs...) 109 ret0, _ := ret[0].(*v1alpha1.BeaconBlock) 110 ret1, _ := ret[1].(error) 111 return ret0, ret1 112 } 113 114 // GetBlock indicates an expected call of GetBlock 115 func (mr *MockBeaconNodeValidatorClientMockRecorder) GetBlock(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 varargs := append([]interface{}{arg0, arg1}, arg2...) 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).GetBlock), varargs...) 119 } 120 121 // GetDuties mocks base method 122 func (m *MockBeaconNodeValidatorClient) GetDuties(arg0 context.Context, arg1 *v1alpha1.DutiesRequest, arg2 ...grpc.CallOption) (*v1alpha1.DutiesResponse, error) { 123 m.ctrl.T.Helper() 124 varargs := []interface{}{arg0, arg1} 125 for _, a := range arg2 { 126 varargs = append(varargs, a) 127 } 128 ret := m.ctrl.Call(m, "GetDuties", varargs...) 129 ret0, _ := ret[0].(*v1alpha1.DutiesResponse) 130 ret1, _ := ret[1].(error) 131 return ret0, ret1 132 } 133 134 // GetDuties indicates an expected call of GetDuties 135 func (mr *MockBeaconNodeValidatorClientMockRecorder) GetDuties(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 136 mr.mock.ctrl.T.Helper() 137 varargs := append([]interface{}{arg0, arg1}, arg2...) 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDuties", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).GetDuties), varargs...) 139 } 140 141 // MultipleValidatorStatus mocks base method 142 func (m *MockBeaconNodeValidatorClient) MultipleValidatorStatus(arg0 context.Context, arg1 *v1alpha1.MultipleValidatorStatusRequest, arg2 ...grpc.CallOption) (*v1alpha1.MultipleValidatorStatusResponse, error) { 143 m.ctrl.T.Helper() 144 varargs := []interface{}{arg0, arg1} 145 for _, a := range arg2 { 146 varargs = append(varargs, a) 147 } 148 ret := m.ctrl.Call(m, "MultipleValidatorStatus", varargs...) 149 ret0, _ := ret[0].(*v1alpha1.MultipleValidatorStatusResponse) 150 ret1, _ := ret[1].(error) 151 return ret0, ret1 152 } 153 154 // MultipleValidatorStatus indicates an expected call of MultipleValidatorStatus 155 func (mr *MockBeaconNodeValidatorClientMockRecorder) MultipleValidatorStatus(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 varargs := append([]interface{}{arg0, arg1}, arg2...) 158 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultipleValidatorStatus", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).MultipleValidatorStatus), varargs...) 159 } 160 161 // ProposeAttestation mocks base method 162 func (m *MockBeaconNodeValidatorClient) ProposeAttestation(arg0 context.Context, arg1 *v1alpha1.Attestation, arg2 ...grpc.CallOption) (*v1alpha1.AttestResponse, error) { 163 m.ctrl.T.Helper() 164 varargs := []interface{}{arg0, arg1} 165 for _, a := range arg2 { 166 varargs = append(varargs, a) 167 } 168 ret := m.ctrl.Call(m, "ProposeAttestation", varargs...) 169 ret0, _ := ret[0].(*v1alpha1.AttestResponse) 170 ret1, _ := ret[1].(error) 171 return ret0, ret1 172 } 173 174 // ProposeAttestation indicates an expected call of ProposeAttestation 175 func (mr *MockBeaconNodeValidatorClientMockRecorder) ProposeAttestation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 varargs := append([]interface{}{arg0, arg1}, arg2...) 178 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeAttestation", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).ProposeAttestation), varargs...) 179 } 180 181 // ProposeBlock mocks base method 182 func (m *MockBeaconNodeValidatorClient) ProposeBlock(arg0 context.Context, arg1 *v1alpha1.SignedBeaconBlock, arg2 ...grpc.CallOption) (*v1alpha1.ProposeResponse, error) { 183 m.ctrl.T.Helper() 184 varargs := []interface{}{arg0, arg1} 185 for _, a := range arg2 { 186 varargs = append(varargs, a) 187 } 188 ret := m.ctrl.Call(m, "ProposeBlock", varargs...) 189 ret0, _ := ret[0].(*v1alpha1.ProposeResponse) 190 ret1, _ := ret[1].(error) 191 return ret0, ret1 192 } 193 194 // ProposeBlock indicates an expected call of ProposeBlock 195 func (mr *MockBeaconNodeValidatorClientMockRecorder) ProposeBlock(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 196 mr.mock.ctrl.T.Helper() 197 varargs := append([]interface{}{arg0, arg1}, arg2...) 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeBlock", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).ProposeBlock), varargs...) 199 } 200 201 // ProposeExit mocks base method 202 func (m *MockBeaconNodeValidatorClient) ProposeExit(arg0 context.Context, arg1 *v1alpha1.SignedVoluntaryExit, arg2 ...grpc.CallOption) (*v1alpha1.ProposeExitResponse, error) { 203 m.ctrl.T.Helper() 204 varargs := []interface{}{arg0, arg1} 205 for _, a := range arg2 { 206 varargs = append(varargs, a) 207 } 208 ret := m.ctrl.Call(m, "ProposeExit", varargs...) 209 ret0, _ := ret[0].(*v1alpha1.ProposeExitResponse) 210 ret1, _ := ret[1].(error) 211 return ret0, ret1 212 } 213 214 // ProposeExit indicates an expected call of ProposeExit 215 func (mr *MockBeaconNodeValidatorClientMockRecorder) ProposeExit(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 216 mr.mock.ctrl.T.Helper() 217 varargs := append([]interface{}{arg0, arg1}, arg2...) 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeExit", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).ProposeExit), varargs...) 219 } 220 221 // StreamDuties mocks base method 222 func (m *MockBeaconNodeValidatorClient) StreamDuties(arg0 context.Context, arg1 *v1alpha1.DutiesRequest, arg2 ...grpc.CallOption) (v1alpha1.BeaconNodeValidator_StreamDutiesClient, error) { 223 m.ctrl.T.Helper() 224 varargs := []interface{}{arg0, arg1} 225 for _, a := range arg2 { 226 varargs = append(varargs, a) 227 } 228 ret := m.ctrl.Call(m, "StreamDuties", varargs...) 229 ret0, _ := ret[0].(v1alpha1.BeaconNodeValidator_StreamDutiesClient) 230 ret1, _ := ret[1].(error) 231 return ret0, ret1 232 } 233 234 // StreamDuties indicates an expected call of StreamDuties 235 func (mr *MockBeaconNodeValidatorClientMockRecorder) StreamDuties(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 236 mr.mock.ctrl.T.Helper() 237 varargs := append([]interface{}{arg0, arg1}, arg2...) 238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamDuties", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).StreamDuties), varargs...) 239 } 240 241 // SubmitAggregateSelectionProof mocks base method 242 func (m *MockBeaconNodeValidatorClient) SubmitAggregateSelectionProof(arg0 context.Context, arg1 *v1alpha1.AggregateSelectionRequest, arg2 ...grpc.CallOption) (*v1alpha1.AggregateSelectionResponse, error) { 243 m.ctrl.T.Helper() 244 varargs := []interface{}{arg0, arg1} 245 for _, a := range arg2 { 246 varargs = append(varargs, a) 247 } 248 ret := m.ctrl.Call(m, "SubmitAggregateSelectionProof", varargs...) 249 ret0, _ := ret[0].(*v1alpha1.AggregateSelectionResponse) 250 ret1, _ := ret[1].(error) 251 return ret0, ret1 252 } 253 254 // SubmitAggregateSelectionProof indicates an expected call of SubmitAggregateSelectionProof 255 func (mr *MockBeaconNodeValidatorClientMockRecorder) SubmitAggregateSelectionProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 256 mr.mock.ctrl.T.Helper() 257 varargs := append([]interface{}{arg0, arg1}, arg2...) 258 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAggregateSelectionProof", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).SubmitAggregateSelectionProof), varargs...) 259 } 260 261 // SubmitSignedAggregateSelectionProof mocks base method 262 func (m *MockBeaconNodeValidatorClient) SubmitSignedAggregateSelectionProof(arg0 context.Context, arg1 *v1alpha1.SignedAggregateSubmitRequest, arg2 ...grpc.CallOption) (*v1alpha1.SignedAggregateSubmitResponse, error) { 263 m.ctrl.T.Helper() 264 varargs := []interface{}{arg0, arg1} 265 for _, a := range arg2 { 266 varargs = append(varargs, a) 267 } 268 ret := m.ctrl.Call(m, "SubmitSignedAggregateSelectionProof", varargs...) 269 ret0, _ := ret[0].(*v1alpha1.SignedAggregateSubmitResponse) 270 ret1, _ := ret[1].(error) 271 return ret0, ret1 272 } 273 274 // SubmitSignedAggregateSelectionProof indicates an expected call of SubmitSignedAggregateSelectionProof 275 func (mr *MockBeaconNodeValidatorClientMockRecorder) SubmitSignedAggregateSelectionProof(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 276 mr.mock.ctrl.T.Helper() 277 varargs := append([]interface{}{arg0, arg1}, arg2...) 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitSignedAggregateSelectionProof", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).SubmitSignedAggregateSelectionProof), varargs...) 279 } 280 281 // SubscribeCommitteeSubnets mocks base method 282 func (m *MockBeaconNodeValidatorClient) SubscribeCommitteeSubnets(arg0 context.Context, arg1 *v1alpha1.CommitteeSubnetsSubscribeRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error) { 283 m.ctrl.T.Helper() 284 varargs := []interface{}{arg0, arg1} 285 for _, a := range arg2 { 286 varargs = append(varargs, a) 287 } 288 ret := m.ctrl.Call(m, "SubscribeCommitteeSubnets", varargs...) 289 ret0, _ := ret[0].(*emptypb.Empty) 290 ret1, _ := ret[1].(error) 291 return ret0, ret1 292 } 293 294 // SubscribeCommitteeSubnets indicates an expected call of SubscribeCommitteeSubnets 295 func (mr *MockBeaconNodeValidatorClientMockRecorder) SubscribeCommitteeSubnets(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 296 mr.mock.ctrl.T.Helper() 297 varargs := append([]interface{}{arg0, arg1}, arg2...) 298 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeCommitteeSubnets", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).SubscribeCommitteeSubnets), varargs...) 299 } 300 301 // ValidatorIndex mocks base method 302 func (m *MockBeaconNodeValidatorClient) ValidatorIndex(arg0 context.Context, arg1 *v1alpha1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1alpha1.ValidatorIndexResponse, error) { 303 m.ctrl.T.Helper() 304 varargs := []interface{}{arg0, arg1} 305 for _, a := range arg2 { 306 varargs = append(varargs, a) 307 } 308 ret := m.ctrl.Call(m, "ValidatorIndex", varargs...) 309 ret0, _ := ret[0].(*v1alpha1.ValidatorIndexResponse) 310 ret1, _ := ret[1].(error) 311 return ret0, ret1 312 } 313 314 // ValidatorIndex indicates an expected call of ValidatorIndex 315 func (mr *MockBeaconNodeValidatorClientMockRecorder) ValidatorIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 316 mr.mock.ctrl.T.Helper() 317 varargs := append([]interface{}{arg0, arg1}, arg2...) 318 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorIndex", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).ValidatorIndex), varargs...) 319 } 320 321 // ValidatorStatus mocks base method 322 func (m *MockBeaconNodeValidatorClient) ValidatorStatus(arg0 context.Context, arg1 *v1alpha1.ValidatorStatusRequest, arg2 ...grpc.CallOption) (*v1alpha1.ValidatorStatusResponse, error) { 323 m.ctrl.T.Helper() 324 varargs := []interface{}{arg0, arg1} 325 for _, a := range arg2 { 326 varargs = append(varargs, a) 327 } 328 ret := m.ctrl.Call(m, "ValidatorStatus", varargs...) 329 ret0, _ := ret[0].(*v1alpha1.ValidatorStatusResponse) 330 ret1, _ := ret[1].(error) 331 return ret0, ret1 332 } 333 334 // ValidatorStatus indicates an expected call of ValidatorStatus 335 func (mr *MockBeaconNodeValidatorClientMockRecorder) ValidatorStatus(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 336 mr.mock.ctrl.T.Helper() 337 varargs := append([]interface{}{arg0, arg1}, arg2...) 338 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorStatus", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).ValidatorStatus), varargs...) 339 } 340 341 // WaitForActivation mocks base method 342 func (m *MockBeaconNodeValidatorClient) WaitForActivation(arg0 context.Context, arg1 *v1alpha1.ValidatorActivationRequest, arg2 ...grpc.CallOption) (v1alpha1.BeaconNodeValidator_WaitForActivationClient, error) { 343 m.ctrl.T.Helper() 344 varargs := []interface{}{arg0, arg1} 345 for _, a := range arg2 { 346 varargs = append(varargs, a) 347 } 348 ret := m.ctrl.Call(m, "WaitForActivation", varargs...) 349 ret0, _ := ret[0].(v1alpha1.BeaconNodeValidator_WaitForActivationClient) 350 ret1, _ := ret[1].(error) 351 return ret0, ret1 352 } 353 354 // WaitForActivation indicates an expected call of WaitForActivation 355 func (mr *MockBeaconNodeValidatorClientMockRecorder) WaitForActivation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 356 mr.mock.ctrl.T.Helper() 357 varargs := append([]interface{}{arg0, arg1}, arg2...) 358 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForActivation", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).WaitForActivation), varargs...) 359 } 360 361 // WaitForChainStart mocks base method 362 func (m *MockBeaconNodeValidatorClient) WaitForChainStart(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (v1alpha1.BeaconNodeValidator_WaitForChainStartClient, error) { 363 m.ctrl.T.Helper() 364 varargs := []interface{}{arg0, arg1} 365 for _, a := range arg2 { 366 varargs = append(varargs, a) 367 } 368 ret := m.ctrl.Call(m, "WaitForChainStart", varargs...) 369 ret0, _ := ret[0].(v1alpha1.BeaconNodeValidator_WaitForChainStartClient) 370 ret1, _ := ret[1].(error) 371 return ret0, ret1 372 } 373 374 // WaitForChainStart indicates an expected call of WaitForChainStart 375 func (mr *MockBeaconNodeValidatorClientMockRecorder) WaitForChainStart(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 376 mr.mock.ctrl.T.Helper() 377 varargs := append([]interface{}{arg0, arg1}, arg2...) 378 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForChainStart", reflect.TypeOf((*MockBeaconNodeValidatorClient)(nil).WaitForChainStart), varargs...) 379 } 380 381 // MockBeaconNodeValidator_WaitForChainStartClient is a mock of BeaconNodeValidator_WaitForChainStartClient interface 382 type MockBeaconNodeValidator_WaitForChainStartClient struct { 383 ctrl *gomock.Controller 384 recorder *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder 385 } 386 387 // MockBeaconNodeValidator_WaitForChainStartClientMockRecorder is the mock recorder for MockBeaconNodeValidator_WaitForChainStartClient 388 type MockBeaconNodeValidator_WaitForChainStartClientMockRecorder struct { 389 mock *MockBeaconNodeValidator_WaitForChainStartClient 390 } 391 392 // NewMockBeaconNodeValidator_WaitForChainStartClient creates a new mock instance 393 func NewMockBeaconNodeValidator_WaitForChainStartClient(ctrl *gomock.Controller) *MockBeaconNodeValidator_WaitForChainStartClient { 394 mock := &MockBeaconNodeValidator_WaitForChainStartClient{ctrl: ctrl} 395 mock.recorder = &MockBeaconNodeValidator_WaitForChainStartClientMockRecorder{mock} 396 return mock 397 } 398 399 // EXPECT returns an object that allows the caller to indicate expected use 400 func (m *MockBeaconNodeValidator_WaitForChainStartClient) EXPECT() *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder { 401 return m.recorder 402 } 403 404 // CloseSend mocks base method 405 func (m *MockBeaconNodeValidator_WaitForChainStartClient) CloseSend() error { 406 m.ctrl.T.Helper() 407 ret := m.ctrl.Call(m, "CloseSend") 408 ret0, _ := ret[0].(error) 409 return ret0 410 } 411 412 // CloseSend indicates an expected call of CloseSend 413 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) CloseSend() *gomock.Call { 414 mr.mock.ctrl.T.Helper() 415 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).CloseSend)) 416 } 417 418 // Context mocks base method 419 func (m *MockBeaconNodeValidator_WaitForChainStartClient) Context() context.Context { 420 m.ctrl.T.Helper() 421 ret := m.ctrl.Call(m, "Context") 422 ret0, _ := ret[0].(context.Context) 423 return ret0 424 } 425 426 // Context indicates an expected call of Context 427 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) Context() *gomock.Call { 428 mr.mock.ctrl.T.Helper() 429 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).Context)) 430 } 431 432 // Header mocks base method 433 func (m *MockBeaconNodeValidator_WaitForChainStartClient) Header() (metadata.MD, error) { 434 m.ctrl.T.Helper() 435 ret := m.ctrl.Call(m, "Header") 436 ret0, _ := ret[0].(metadata.MD) 437 ret1, _ := ret[1].(error) 438 return ret0, ret1 439 } 440 441 // Header indicates an expected call of Header 442 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) Header() *gomock.Call { 443 mr.mock.ctrl.T.Helper() 444 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).Header)) 445 } 446 447 // Recv mocks base method 448 func (m *MockBeaconNodeValidator_WaitForChainStartClient) Recv() (*v1alpha1.ChainStartResponse, error) { 449 m.ctrl.T.Helper() 450 ret := m.ctrl.Call(m, "Recv") 451 ret0, _ := ret[0].(*v1alpha1.ChainStartResponse) 452 ret1, _ := ret[1].(error) 453 return ret0, ret1 454 } 455 456 // Recv indicates an expected call of Recv 457 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) Recv() *gomock.Call { 458 mr.mock.ctrl.T.Helper() 459 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).Recv)) 460 } 461 462 // RecvMsg mocks base method 463 func (m *MockBeaconNodeValidator_WaitForChainStartClient) RecvMsg(arg0 interface{}) error { 464 m.ctrl.T.Helper() 465 ret := m.ctrl.Call(m, "RecvMsg", arg0) 466 ret0, _ := ret[0].(error) 467 return ret0 468 } 469 470 // RecvMsg indicates an expected call of RecvMsg 471 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 472 mr.mock.ctrl.T.Helper() 473 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).RecvMsg), arg0) 474 } 475 476 // SendMsg mocks base method 477 func (m *MockBeaconNodeValidator_WaitForChainStartClient) SendMsg(arg0 interface{}) error { 478 m.ctrl.T.Helper() 479 ret := m.ctrl.Call(m, "SendMsg", arg0) 480 ret0, _ := ret[0].(error) 481 return ret0 482 } 483 484 // SendMsg indicates an expected call of SendMsg 485 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 486 mr.mock.ctrl.T.Helper() 487 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).SendMsg), arg0) 488 } 489 490 // Trailer mocks base method 491 func (m *MockBeaconNodeValidator_WaitForChainStartClient) Trailer() metadata.MD { 492 m.ctrl.T.Helper() 493 ret := m.ctrl.Call(m, "Trailer") 494 ret0, _ := ret[0].(metadata.MD) 495 return ret0 496 } 497 498 // Trailer indicates an expected call of Trailer 499 func (mr *MockBeaconNodeValidator_WaitForChainStartClientMockRecorder) Trailer() *gomock.Call { 500 mr.mock.ctrl.T.Helper() 501 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockBeaconNodeValidator_WaitForChainStartClient)(nil).Trailer)) 502 } 503 504 // MockBeaconNodeValidator_WaitForActivationClient is a mock of BeaconNodeValidator_WaitForActivationClient interface 505 type MockBeaconNodeValidator_WaitForActivationClient struct { 506 ctrl *gomock.Controller 507 recorder *MockBeaconNodeValidator_WaitForActivationClientMockRecorder 508 } 509 510 // MockBeaconNodeValidator_WaitForActivationClientMockRecorder is the mock recorder for MockBeaconNodeValidator_WaitForActivationClient 511 type MockBeaconNodeValidator_WaitForActivationClientMockRecorder struct { 512 mock *MockBeaconNodeValidator_WaitForActivationClient 513 } 514 515 // NewMockBeaconNodeValidator_WaitForActivationClient creates a new mock instance 516 func NewMockBeaconNodeValidator_WaitForActivationClient(ctrl *gomock.Controller) *MockBeaconNodeValidator_WaitForActivationClient { 517 mock := &MockBeaconNodeValidator_WaitForActivationClient{ctrl: ctrl} 518 mock.recorder = &MockBeaconNodeValidator_WaitForActivationClientMockRecorder{mock} 519 return mock 520 } 521 522 // EXPECT returns an object that allows the caller to indicate expected use 523 func (m *MockBeaconNodeValidator_WaitForActivationClient) EXPECT() *MockBeaconNodeValidator_WaitForActivationClientMockRecorder { 524 return m.recorder 525 } 526 527 // CloseSend mocks base method 528 func (m *MockBeaconNodeValidator_WaitForActivationClient) CloseSend() error { 529 m.ctrl.T.Helper() 530 ret := m.ctrl.Call(m, "CloseSend") 531 ret0, _ := ret[0].(error) 532 return ret0 533 } 534 535 // CloseSend indicates an expected call of CloseSend 536 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) CloseSend() *gomock.Call { 537 mr.mock.ctrl.T.Helper() 538 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).CloseSend)) 539 } 540 541 // Context mocks base method 542 func (m *MockBeaconNodeValidator_WaitForActivationClient) Context() context.Context { 543 m.ctrl.T.Helper() 544 ret := m.ctrl.Call(m, "Context") 545 ret0, _ := ret[0].(context.Context) 546 return ret0 547 } 548 549 // Context indicates an expected call of Context 550 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) Context() *gomock.Call { 551 mr.mock.ctrl.T.Helper() 552 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).Context)) 553 } 554 555 // Header mocks base method 556 func (m *MockBeaconNodeValidator_WaitForActivationClient) Header() (metadata.MD, error) { 557 m.ctrl.T.Helper() 558 ret := m.ctrl.Call(m, "Header") 559 ret0, _ := ret[0].(metadata.MD) 560 ret1, _ := ret[1].(error) 561 return ret0, ret1 562 } 563 564 // Header indicates an expected call of Header 565 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) Header() *gomock.Call { 566 mr.mock.ctrl.T.Helper() 567 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).Header)) 568 } 569 570 // Recv mocks base method 571 func (m *MockBeaconNodeValidator_WaitForActivationClient) Recv() (*v1alpha1.ValidatorActivationResponse, error) { 572 m.ctrl.T.Helper() 573 ret := m.ctrl.Call(m, "Recv") 574 ret0, _ := ret[0].(*v1alpha1.ValidatorActivationResponse) 575 ret1, _ := ret[1].(error) 576 return ret0, ret1 577 } 578 579 // Recv indicates an expected call of Recv 580 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) Recv() *gomock.Call { 581 mr.mock.ctrl.T.Helper() 582 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).Recv)) 583 } 584 585 // RecvMsg mocks base method 586 func (m *MockBeaconNodeValidator_WaitForActivationClient) RecvMsg(arg0 interface{}) error { 587 m.ctrl.T.Helper() 588 ret := m.ctrl.Call(m, "RecvMsg", arg0) 589 ret0, _ := ret[0].(error) 590 return ret0 591 } 592 593 // RecvMsg indicates an expected call of RecvMsg 594 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 595 mr.mock.ctrl.T.Helper() 596 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).RecvMsg), arg0) 597 } 598 599 // SendMsg mocks base method 600 func (m *MockBeaconNodeValidator_WaitForActivationClient) SendMsg(arg0 interface{}) error { 601 m.ctrl.T.Helper() 602 ret := m.ctrl.Call(m, "SendMsg", arg0) 603 ret0, _ := ret[0].(error) 604 return ret0 605 } 606 607 // SendMsg indicates an expected call of SendMsg 608 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 609 mr.mock.ctrl.T.Helper() 610 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).SendMsg), arg0) 611 } 612 613 // Trailer mocks base method 614 func (m *MockBeaconNodeValidator_WaitForActivationClient) Trailer() metadata.MD { 615 m.ctrl.T.Helper() 616 ret := m.ctrl.Call(m, "Trailer") 617 ret0, _ := ret[0].(metadata.MD) 618 return ret0 619 } 620 621 // Trailer indicates an expected call of Trailer 622 func (mr *MockBeaconNodeValidator_WaitForActivationClientMockRecorder) Trailer() *gomock.Call { 623 mr.mock.ctrl.T.Helper() 624 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockBeaconNodeValidator_WaitForActivationClient)(nil).Trailer)) 625 } 626 627 // MockBeaconNodeValidator_StreamDutiesClient is a mock of BeaconNodeValidator_StreamDutiesClient interface 628 type MockBeaconNodeValidator_StreamDutiesClient struct { 629 ctrl *gomock.Controller 630 recorder *MockBeaconNodeValidator_StreamDutiesClientMockRecorder 631 } 632 633 // MockBeaconNodeValidator_StreamDutiesClientMockRecorder is the mock recorder for MockBeaconNodeValidator_StreamDutiesClient 634 type MockBeaconNodeValidator_StreamDutiesClientMockRecorder struct { 635 mock *MockBeaconNodeValidator_StreamDutiesClient 636 } 637 638 // NewMockBeaconNodeValidator_StreamDutiesClient creates a new mock instance 639 func NewMockBeaconNodeValidator_StreamDutiesClient(ctrl *gomock.Controller) *MockBeaconNodeValidator_StreamDutiesClient { 640 mock := &MockBeaconNodeValidator_StreamDutiesClient{ctrl: ctrl} 641 mock.recorder = &MockBeaconNodeValidator_StreamDutiesClientMockRecorder{mock} 642 return mock 643 } 644 645 // EXPECT returns an object that allows the caller to indicate expected use 646 func (m *MockBeaconNodeValidator_StreamDutiesClient) EXPECT() *MockBeaconNodeValidator_StreamDutiesClientMockRecorder { 647 return m.recorder 648 } 649 650 // CloseSend mocks base method 651 func (m *MockBeaconNodeValidator_StreamDutiesClient) CloseSend() error { 652 m.ctrl.T.Helper() 653 ret := m.ctrl.Call(m, "CloseSend") 654 ret0, _ := ret[0].(error) 655 return ret0 656 } 657 658 // CloseSend indicates an expected call of CloseSend 659 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) CloseSend() *gomock.Call { 660 mr.mock.ctrl.T.Helper() 661 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).CloseSend)) 662 } 663 664 // Context mocks base method 665 func (m *MockBeaconNodeValidator_StreamDutiesClient) Context() context.Context { 666 m.ctrl.T.Helper() 667 ret := m.ctrl.Call(m, "Context") 668 ret0, _ := ret[0].(context.Context) 669 return ret0 670 } 671 672 // Context indicates an expected call of Context 673 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) Context() *gomock.Call { 674 mr.mock.ctrl.T.Helper() 675 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).Context)) 676 } 677 678 // Header mocks base method 679 func (m *MockBeaconNodeValidator_StreamDutiesClient) Header() (metadata.MD, error) { 680 m.ctrl.T.Helper() 681 ret := m.ctrl.Call(m, "Header") 682 ret0, _ := ret[0].(metadata.MD) 683 ret1, _ := ret[1].(error) 684 return ret0, ret1 685 } 686 687 // Header indicates an expected call of Header 688 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) Header() *gomock.Call { 689 mr.mock.ctrl.T.Helper() 690 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).Header)) 691 } 692 693 // Recv mocks base method 694 func (m *MockBeaconNodeValidator_StreamDutiesClient) Recv() (*v1alpha1.DutiesResponse, error) { 695 m.ctrl.T.Helper() 696 ret := m.ctrl.Call(m, "Recv") 697 ret0, _ := ret[0].(*v1alpha1.DutiesResponse) 698 ret1, _ := ret[1].(error) 699 return ret0, ret1 700 } 701 702 // Recv indicates an expected call of Recv 703 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) Recv() *gomock.Call { 704 mr.mock.ctrl.T.Helper() 705 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).Recv)) 706 } 707 708 // RecvMsg mocks base method 709 func (m *MockBeaconNodeValidator_StreamDutiesClient) RecvMsg(arg0 interface{}) error { 710 m.ctrl.T.Helper() 711 ret := m.ctrl.Call(m, "RecvMsg", arg0) 712 ret0, _ := ret[0].(error) 713 return ret0 714 } 715 716 // RecvMsg indicates an expected call of RecvMsg 717 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 718 mr.mock.ctrl.T.Helper() 719 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).RecvMsg), arg0) 720 } 721 722 // SendMsg mocks base method 723 func (m *MockBeaconNodeValidator_StreamDutiesClient) SendMsg(arg0 interface{}) error { 724 m.ctrl.T.Helper() 725 ret := m.ctrl.Call(m, "SendMsg", arg0) 726 ret0, _ := ret[0].(error) 727 return ret0 728 } 729 730 // SendMsg indicates an expected call of SendMsg 731 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 732 mr.mock.ctrl.T.Helper() 733 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).SendMsg), arg0) 734 } 735 736 // Trailer mocks base method 737 func (m *MockBeaconNodeValidator_StreamDutiesClient) Trailer() metadata.MD { 738 m.ctrl.T.Helper() 739 ret := m.ctrl.Call(m, "Trailer") 740 ret0, _ := ret[0].(metadata.MD) 741 return ret0 742 } 743 744 // Trailer indicates an expected call of Trailer 745 func (mr *MockBeaconNodeValidator_StreamDutiesClientMockRecorder) Trailer() *gomock.Call { 746 mr.mock.ctrl.T.Helper() 747 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockBeaconNodeValidator_StreamDutiesClient)(nil).Trailer)) 748 }