-
Notifications
You must be signed in to change notification settings - Fork 6
/
validator_pb2_grpc.py
698 lines (636 loc) · 33.5 KB
/
validator_pb2_grpc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import attestation_pb2 as attestation__pb2
import beacon_block_pb2 as beacon__block__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import validator_pb2 as validator__pb2
class BeaconNodeValidatorStub(object):
"""Beacon node validator API
The beacon node validator API enables a validator to connect
and perform its obligations on the Ethereum 2.0 phase 0 beacon chain.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetDuties = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/GetDuties',
request_serializer=validator__pb2.DutiesRequest.SerializeToString,
response_deserializer=validator__pb2.DutiesResponse.FromString,
)
self.StreamDuties = channel.unary_stream(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/StreamDuties',
request_serializer=validator__pb2.DutiesRequest.SerializeToString,
response_deserializer=validator__pb2.DutiesResponse.FromString,
)
self.DomainData = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/DomainData',
request_serializer=validator__pb2.DomainRequest.SerializeToString,
response_deserializer=validator__pb2.DomainResponse.FromString,
)
self.WaitForChainStart = channel.unary_stream(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForChainStart',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=validator__pb2.ChainStartResponse.FromString,
)
self.WaitForSynced = channel.unary_stream(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForSynced',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=validator__pb2.SyncedResponse.FromString,
)
self.WaitForActivation = channel.unary_stream(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForActivation',
request_serializer=validator__pb2.ValidatorActivationRequest.SerializeToString,
response_deserializer=validator__pb2.ValidatorActivationResponse.FromString,
)
self.ValidatorIndex = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorIndex',
request_serializer=validator__pb2.ValidatorIndexRequest.SerializeToString,
response_deserializer=validator__pb2.ValidatorIndexResponse.FromString,
)
self.ValidatorStatus = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorStatus',
request_serializer=validator__pb2.ValidatorStatusRequest.SerializeToString,
response_deserializer=validator__pb2.ValidatorStatusResponse.FromString,
)
self.MultipleValidatorStatus = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/MultipleValidatorStatus',
request_serializer=validator__pb2.MultipleValidatorStatusRequest.SerializeToString,
response_deserializer=validator__pb2.MultipleValidatorStatusResponse.FromString,
)
self.GetBlock = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/GetBlock',
request_serializer=validator__pb2.BlockRequest.SerializeToString,
response_deserializer=beacon__block__pb2.BeaconBlock.FromString,
)
self.ProposeBlock = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeBlock',
request_serializer=beacon__block__pb2.SignedBeaconBlock.SerializeToString,
response_deserializer=validator__pb2.ProposeResponse.FromString,
)
self.GetAttestationData = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/GetAttestationData',
request_serializer=validator__pb2.AttestationDataRequest.SerializeToString,
response_deserializer=attestation__pb2.AttestationData.FromString,
)
self.ProposeAttestation = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeAttestation',
request_serializer=attestation__pb2.Attestation.SerializeToString,
response_deserializer=validator__pb2.AttestResponse.FromString,
)
self.SubmitAggregateSelectionProof = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitAggregateSelectionProof',
request_serializer=validator__pb2.AggregateSelectionRequest.SerializeToString,
response_deserializer=validator__pb2.AggregateSelectionResponse.FromString,
)
self.SubmitSignedAggregateSelectionProof = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitSignedAggregateSelectionProof',
request_serializer=validator__pb2.SignedAggregateSubmitRequest.SerializeToString,
response_deserializer=validator__pb2.SignedAggregateSubmitResponse.FromString,
)
self.ProposeExit = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeExit',
request_serializer=beacon__block__pb2.SignedVoluntaryExit.SerializeToString,
response_deserializer=validator__pb2.ProposeExitResponse.FromString,
)
self.SubscribeCommitteeSubnets = channel.unary_unary(
'/ethereum.eth.v1alpha1.BeaconNodeValidator/SubscribeCommitteeSubnets',
request_serializer=validator__pb2.CommitteeSubnetsSubscribeRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
class BeaconNodeValidatorServicer(object):
"""Beacon node validator API
The beacon node validator API enables a validator to connect
and perform its obligations on the Ethereum 2.0 phase 0 beacon chain.
"""
def GetDuties(self, request, context):
"""Retrieves validator duties for the requested validators.
The duties consist of:
Proposer - the validator that creates a beacon chain block.
Attester — a validator that is part of a committee that needs to sign off on a beacon chain
block while simultaneously creating a cross link to a recent shard block on a particular shard chain.
The server returns a list of duties which are the actions should be performed by validators for a given epoch.
Validator duties should be polled every epoch, but due to chain reorg of >MIN_SEED_LOOKAHEAD could occur,
the validator duties could chain. For complete safety, it is recommended to poll at every slot to ensure
validator is fully aware of any sudden chain reorg.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StreamDuties(self, request, context):
"""Stream validator duties for the requested validators.
The duties consist of:
Proposer - the validator that creates a beacon chain block.
Attester — a validator that is part of a committee that needs to sign off on a beacon chain
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DomainData(self, request, context):
"""DomainData fetches the current BLS signature domain version information from the
running beacon node's state. This information is used when validators sign
blocks and attestations appropriately based on their duty.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WaitForChainStart(self, request, context):
"""WaitForChainStart queries the logs of the Validator Deposit Contract on the Ethereum
proof-of-work chain to verify the beacon chain has started its runtime and
validators are ready to begin their responsibilities.
If the chain has not yet started, this endpoint starts a server-side stream which updates
the client when the beacon chain is ready.
This RPC is deprecated. Please use WaitForSynced.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WaitForSynced(self, request, context):
"""WaitForSynced checks if the beacon node is synced and ready to communicate with the validator.
If the node is not synced yet, this endpoint starts a server-side stream which updates
the validator client when the beacon chain is ready.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WaitForActivation(self, request, context):
"""WaitForActivation checks if a validator public key exists in the active validator
registry of the current beacon state. If the validator is NOT yet active, it starts a
server-side stream which updates the client whenever the validator becomes active in
the beacon node's state.
The input to this endpoint is a list of validator public keys, and the corresponding
stream will respond until at least a single corresponding validator to those
keys is activated.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ValidatorIndex(self, request, context):
"""ValidatorIndex retrieves a validator's index location in the beacon state's
validator registry looking up whether the validator exists based on its
public key. This method returns NOT_FOUND if no index is found for the public key
specified in the request.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ValidatorStatus(self, request, context):
"""ValidatorStatus returns a validator's status based on the current epoch.
The request can specify either a validator's public key or validator index.
The status response can be one of the following:
DEPOSITED - validator's deposit has been recognized by Ethereum 1, not yet recognized by Ethereum 2.
PENDING - validator is in Ethereum 2's activation queue.
ACTIVE - validator is active.
EXITING - validator has initiated an an exit request, or has dropped below the ejection balance and is being kicked out.
EXITED - validator is no longer validating.
SLASHING - validator has been kicked out due to meeting a slashing condition.
UNKNOWN_STATUS - validator does not have a known status in the network.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def MultipleValidatorStatus(self, request, context):
"""MultipleValidatorStatus returns a list of validator statuses on the current epoch.
The request can specify a list of validator public keys.
Returns a list of ValidatorStatusResponses.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetBlock(self, request, context):
"""Retrieves the latest valid beacon block to be proposed on the beacon chain.
The server returns a new beacon block, without proposer signature, that can be
proposed on the beacon chain. The block should be filled with all the necessary
data for proposer to sign.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ProposeBlock(self, request, context):
"""Sends the newly signed beacon block to beacon node.
The validator sends the newly signed beacon block to the beacon node so the beacon block can
be included in the beacon chain. The beacon node is expected to validate and process the
beacon block into its state.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetAttestationData(self, request, context):
"""Retrieves the latest valid attestation data to be attested on the beacon chain.
The server returns the latest valid data which represents the correct vote
for the head of the beacon chain,
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ProposeAttestation(self, request, context):
"""Sends the newly signed attestation to beacon node.
The validator sends the newly signed attestation to the beacon node for the attestation to
be included in the beacon chain. The beacon node is expected to validate and publish attestation on
appropriate committee subnet.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SubmitAggregateSelectionProof(self, request, context):
"""Submit selection proof to the beacon node to aggregate all matching wire attestations with the same data root.
the beacon node responses with an aggregate and proof object back to validator to sign over.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SubmitSignedAggregateSelectionProof(self, request, context):
"""Submit a signed aggregate and proof object, the beacon node will broadcast the
signed aggregated attestation and proof object.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ProposeExit(self, request, context):
"""Propose to leave the list of active validators.
The beacon node is expected to validate the request and make it available for inclusion in
the next proposed block.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SubscribeCommitteeSubnets(self, request, context):
"""Subscribe to particular committee ID subnets given validator's duty.
The beacon node is expected to subscribe to the committee ID subnet given by the request. With this,
beacon node serving attesters can find persistent peers on the subnet to publish attestation,
and beacon node serving aggregator can join the subnet.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_BeaconNodeValidatorServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetDuties': grpc.unary_unary_rpc_method_handler(
servicer.GetDuties,
request_deserializer=validator__pb2.DutiesRequest.FromString,
response_serializer=validator__pb2.DutiesResponse.SerializeToString,
),
'StreamDuties': grpc.unary_stream_rpc_method_handler(
servicer.StreamDuties,
request_deserializer=validator__pb2.DutiesRequest.FromString,
response_serializer=validator__pb2.DutiesResponse.SerializeToString,
),
'DomainData': grpc.unary_unary_rpc_method_handler(
servicer.DomainData,
request_deserializer=validator__pb2.DomainRequest.FromString,
response_serializer=validator__pb2.DomainResponse.SerializeToString,
),
'WaitForChainStart': grpc.unary_stream_rpc_method_handler(
servicer.WaitForChainStart,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=validator__pb2.ChainStartResponse.SerializeToString,
),
'WaitForSynced': grpc.unary_stream_rpc_method_handler(
servicer.WaitForSynced,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=validator__pb2.SyncedResponse.SerializeToString,
),
'WaitForActivation': grpc.unary_stream_rpc_method_handler(
servicer.WaitForActivation,
request_deserializer=validator__pb2.ValidatorActivationRequest.FromString,
response_serializer=validator__pb2.ValidatorActivationResponse.SerializeToString,
),
'ValidatorIndex': grpc.unary_unary_rpc_method_handler(
servicer.ValidatorIndex,
request_deserializer=validator__pb2.ValidatorIndexRequest.FromString,
response_serializer=validator__pb2.ValidatorIndexResponse.SerializeToString,
),
'ValidatorStatus': grpc.unary_unary_rpc_method_handler(
servicer.ValidatorStatus,
request_deserializer=validator__pb2.ValidatorStatusRequest.FromString,
response_serializer=validator__pb2.ValidatorStatusResponse.SerializeToString,
),
'MultipleValidatorStatus': grpc.unary_unary_rpc_method_handler(
servicer.MultipleValidatorStatus,
request_deserializer=validator__pb2.MultipleValidatorStatusRequest.FromString,
response_serializer=validator__pb2.MultipleValidatorStatusResponse.SerializeToString,
),
'GetBlock': grpc.unary_unary_rpc_method_handler(
servicer.GetBlock,
request_deserializer=validator__pb2.BlockRequest.FromString,
response_serializer=beacon__block__pb2.BeaconBlock.SerializeToString,
),
'ProposeBlock': grpc.unary_unary_rpc_method_handler(
servicer.ProposeBlock,
request_deserializer=beacon__block__pb2.SignedBeaconBlock.FromString,
response_serializer=validator__pb2.ProposeResponse.SerializeToString,
),
'GetAttestationData': grpc.unary_unary_rpc_method_handler(
servicer.GetAttestationData,
request_deserializer=validator__pb2.AttestationDataRequest.FromString,
response_serializer=attestation__pb2.AttestationData.SerializeToString,
),
'ProposeAttestation': grpc.unary_unary_rpc_method_handler(
servicer.ProposeAttestation,
request_deserializer=attestation__pb2.Attestation.FromString,
response_serializer=validator__pb2.AttestResponse.SerializeToString,
),
'SubmitAggregateSelectionProof': grpc.unary_unary_rpc_method_handler(
servicer.SubmitAggregateSelectionProof,
request_deserializer=validator__pb2.AggregateSelectionRequest.FromString,
response_serializer=validator__pb2.AggregateSelectionResponse.SerializeToString,
),
'SubmitSignedAggregateSelectionProof': grpc.unary_unary_rpc_method_handler(
servicer.SubmitSignedAggregateSelectionProof,
request_deserializer=validator__pb2.SignedAggregateSubmitRequest.FromString,
response_serializer=validator__pb2.SignedAggregateSubmitResponse.SerializeToString,
),
'ProposeExit': grpc.unary_unary_rpc_method_handler(
servicer.ProposeExit,
request_deserializer=beacon__block__pb2.SignedVoluntaryExit.FromString,
response_serializer=validator__pb2.ProposeExitResponse.SerializeToString,
),
'SubscribeCommitteeSubnets': grpc.unary_unary_rpc_method_handler(
servicer.SubscribeCommitteeSubnets,
request_deserializer=validator__pb2.CommitteeSubnetsSubscribeRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ethereum.eth.v1alpha1.BeaconNodeValidator', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class BeaconNodeValidator(object):
"""Beacon node validator API
The beacon node validator API enables a validator to connect
and perform its obligations on the Ethereum 2.0 phase 0 beacon chain.
"""
@staticmethod
def GetDuties(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/GetDuties',
validator__pb2.DutiesRequest.SerializeToString,
validator__pb2.DutiesResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def StreamDuties(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/StreamDuties',
validator__pb2.DutiesRequest.SerializeToString,
validator__pb2.DutiesResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def DomainData(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/DomainData',
validator__pb2.DomainRequest.SerializeToString,
validator__pb2.DomainResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def WaitForChainStart(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForChainStart',
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
validator__pb2.ChainStartResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def WaitForSynced(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForSynced',
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
validator__pb2.SyncedResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def WaitForActivation(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForActivation',
validator__pb2.ValidatorActivationRequest.SerializeToString,
validator__pb2.ValidatorActivationResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ValidatorIndex(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorIndex',
validator__pb2.ValidatorIndexRequest.SerializeToString,
validator__pb2.ValidatorIndexResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ValidatorStatus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorStatus',
validator__pb2.ValidatorStatusRequest.SerializeToString,
validator__pb2.ValidatorStatusResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def MultipleValidatorStatus(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/MultipleValidatorStatus',
validator__pb2.MultipleValidatorStatusRequest.SerializeToString,
validator__pb2.MultipleValidatorStatusResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetBlock(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/GetBlock',
validator__pb2.BlockRequest.SerializeToString,
beacon__block__pb2.BeaconBlock.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ProposeBlock(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeBlock',
beacon__block__pb2.SignedBeaconBlock.SerializeToString,
validator__pb2.ProposeResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetAttestationData(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/GetAttestationData',
validator__pb2.AttestationDataRequest.SerializeToString,
attestation__pb2.AttestationData.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ProposeAttestation(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeAttestation',
attestation__pb2.Attestation.SerializeToString,
validator__pb2.AttestResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SubmitAggregateSelectionProof(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitAggregateSelectionProof',
validator__pb2.AggregateSelectionRequest.SerializeToString,
validator__pb2.AggregateSelectionResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SubmitSignedAggregateSelectionProof(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitSignedAggregateSelectionProof',
validator__pb2.SignedAggregateSubmitRequest.SerializeToString,
validator__pb2.SignedAggregateSubmitResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ProposeExit(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeExit',
beacon__block__pb2.SignedVoluntaryExit.SerializeToString,
validator__pb2.ProposeExitResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SubscribeCommitteeSubnets(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ethereum.eth.v1alpha1.BeaconNodeValidator/SubscribeCommitteeSubnets',
validator__pb2.CommitteeSubnetsSubscribeRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)