|
@@ -155,6 +155,11 @@ class BlockEngineRelayerStub(object):
|
|
|
request_serializer=block__engine__pb2.AccountsOfInterestRequest.SerializeToString,
|
|
request_serializer=block__engine__pb2.AccountsOfInterestRequest.SerializeToString,
|
|
|
response_deserializer=block__engine__pb2.AccountsOfInterestUpdate.FromString,
|
|
response_deserializer=block__engine__pb2.AccountsOfInterestUpdate.FromString,
|
|
|
)
|
|
)
|
|
|
|
|
+ self.SubscribeProgramsOfInterest = channel.unary_stream(
|
|
|
|
|
+ '/block_engine.BlockEngineRelayer/SubscribeProgramsOfInterest',
|
|
|
|
|
+ request_serializer=block__engine__pb2.ProgramsOfInterestRequest.SerializeToString,
|
|
|
|
|
+ response_deserializer=block__engine__pb2.ProgramsOfInterestUpdate.FromString,
|
|
|
|
|
+ )
|
|
|
self.StartExpiringPacketStream = channel.stream_stream(
|
|
self.StartExpiringPacketStream = channel.stream_stream(
|
|
|
'/block_engine.BlockEngineRelayer/StartExpiringPacketStream',
|
|
'/block_engine.BlockEngineRelayer/StartExpiringPacketStream',
|
|
|
request_serializer=block__engine__pb2.PacketBatchUpdate.SerializeToString,
|
|
request_serializer=block__engine__pb2.PacketBatchUpdate.SerializeToString,
|
|
@@ -176,6 +181,12 @@ class BlockEngineRelayerServicer(object):
|
|
|
context.set_details('Method not implemented!')
|
|
context.set_details('Method not implemented!')
|
|
|
raise NotImplementedError('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
|
|
|
|
|
|
+ def SubscribeProgramsOfInterest(self, request, context):
|
|
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
|
|
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
|
|
|
+ context.set_details('Method not implemented!')
|
|
|
|
|
+ raise NotImplementedError('Method not implemented!')
|
|
|
|
|
+
|
|
|
def StartExpiringPacketStream(self, request_iterator, context):
|
|
def StartExpiringPacketStream(self, request_iterator, context):
|
|
|
"""Validators can subscribe to packets from the relayer and receive a multiplexed signal that contains a mixture
|
|
"""Validators can subscribe to packets from the relayer and receive a multiplexed signal that contains a mixture
|
|
|
of packets and heartbeats.
|
|
of packets and heartbeats.
|
|
@@ -195,6 +206,11 @@ def add_BlockEngineRelayerServicer_to_server(servicer, server):
|
|
|
request_deserializer=block__engine__pb2.AccountsOfInterestRequest.FromString,
|
|
request_deserializer=block__engine__pb2.AccountsOfInterestRequest.FromString,
|
|
|
response_serializer=block__engine__pb2.AccountsOfInterestUpdate.SerializeToString,
|
|
response_serializer=block__engine__pb2.AccountsOfInterestUpdate.SerializeToString,
|
|
|
),
|
|
),
|
|
|
|
|
+ 'SubscribeProgramsOfInterest': grpc.unary_stream_rpc_method_handler(
|
|
|
|
|
+ servicer.SubscribeProgramsOfInterest,
|
|
|
|
|
+ request_deserializer=block__engine__pb2.ProgramsOfInterestRequest.FromString,
|
|
|
|
|
+ response_serializer=block__engine__pb2.ProgramsOfInterestUpdate.SerializeToString,
|
|
|
|
|
+ ),
|
|
|
'StartExpiringPacketStream': grpc.stream_stream_rpc_method_handler(
|
|
'StartExpiringPacketStream': grpc.stream_stream_rpc_method_handler(
|
|
|
servicer.StartExpiringPacketStream,
|
|
servicer.StartExpiringPacketStream,
|
|
|
request_deserializer=block__engine__pb2.PacketBatchUpdate.FromString,
|
|
request_deserializer=block__engine__pb2.PacketBatchUpdate.FromString,
|
|
@@ -229,6 +245,23 @@ class BlockEngineRelayer(object):
|
|
|
options, channel_credentials,
|
|
options, channel_credentials,
|
|
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
|
|
|
|
|
|
|
+ @staticmethod
|
|
|
|
|
+ def SubscribeProgramsOfInterest(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, '/block_engine.BlockEngineRelayer/SubscribeProgramsOfInterest',
|
|
|
|
|
+ block__engine__pb2.ProgramsOfInterestRequest.SerializeToString,
|
|
|
|
|
+ block__engine__pb2.ProgramsOfInterestUpdate.FromString,
|
|
|
|
|
+ options, channel_credentials,
|
|
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
|
|
+
|
|
|
@staticmethod
|
|
@staticmethod
|
|
|
def StartExpiringPacketStream(request_iterator,
|
|
def StartExpiringPacketStream(request_iterator,
|
|
|
target,
|
|
target,
|