block_engine_pb2.pyi 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. """
  2. @generated by mypy-protobuf. Do not edit manually!
  3. isort:skip_file
  4. """
  5. import builtins
  6. import bundle_pb2
  7. import collections.abc
  8. import google.protobuf.descriptor
  9. import google.protobuf.internal.containers
  10. import google.protobuf.message
  11. import packet_pb2
  12. import shared_pb2
  13. import sys
  14. if sys.version_info >= (3, 8):
  15. import typing as typing_extensions
  16. else:
  17. import typing_extensions
  18. DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
  19. @typing_extensions.final
  20. class SubscribePacketsRequest(google.protobuf.message.Message):
  21. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  22. def __init__(
  23. self,
  24. ) -> None: ...
  25. global___SubscribePacketsRequest = SubscribePacketsRequest
  26. @typing_extensions.final
  27. class SubscribePacketsResponse(google.protobuf.message.Message):
  28. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  29. HEADER_FIELD_NUMBER: builtins.int
  30. BATCH_FIELD_NUMBER: builtins.int
  31. @property
  32. def header(self) -> shared_pb2.Header: ...
  33. @property
  34. def batch(self) -> packet_pb2.PacketBatch: ...
  35. def __init__(
  36. self,
  37. *,
  38. header: shared_pb2.Header | None = ...,
  39. batch: packet_pb2.PacketBatch | None = ...,
  40. ) -> None: ...
  41. def HasField(self, field_name: typing_extensions.Literal["batch", b"batch", "header", b"header"]) -> builtins.bool: ...
  42. def ClearField(self, field_name: typing_extensions.Literal["batch", b"batch", "header", b"header"]) -> None: ...
  43. global___SubscribePacketsResponse = SubscribePacketsResponse
  44. @typing_extensions.final
  45. class SubscribeBundlesRequest(google.protobuf.message.Message):
  46. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  47. def __init__(
  48. self,
  49. ) -> None: ...
  50. global___SubscribeBundlesRequest = SubscribeBundlesRequest
  51. @typing_extensions.final
  52. class SubscribeBundlesResponse(google.protobuf.message.Message):
  53. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  54. BUNDLES_FIELD_NUMBER: builtins.int
  55. @property
  56. def bundles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[bundle_pb2.BundleUuid]: ...
  57. def __init__(
  58. self,
  59. *,
  60. bundles: collections.abc.Iterable[bundle_pb2.BundleUuid] | None = ...,
  61. ) -> None: ...
  62. def ClearField(self, field_name: typing_extensions.Literal["bundles", b"bundles"]) -> None: ...
  63. global___SubscribeBundlesResponse = SubscribeBundlesResponse
  64. @typing_extensions.final
  65. class BlockBuilderFeeInfoRequest(google.protobuf.message.Message):
  66. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  67. def __init__(
  68. self,
  69. ) -> None: ...
  70. global___BlockBuilderFeeInfoRequest = BlockBuilderFeeInfoRequest
  71. @typing_extensions.final
  72. class BlockBuilderFeeInfoResponse(google.protobuf.message.Message):
  73. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  74. PUBKEY_FIELD_NUMBER: builtins.int
  75. COMMISSION_FIELD_NUMBER: builtins.int
  76. pubkey: builtins.str
  77. commission: builtins.int
  78. """commission (0-100)"""
  79. def __init__(
  80. self,
  81. *,
  82. pubkey: builtins.str = ...,
  83. commission: builtins.int = ...,
  84. ) -> None: ...
  85. def ClearField(self, field_name: typing_extensions.Literal["commission", b"commission", "pubkey", b"pubkey"]) -> None: ...
  86. global___BlockBuilderFeeInfoResponse = BlockBuilderFeeInfoResponse
  87. @typing_extensions.final
  88. class AccountsOfInterest(google.protobuf.message.Message):
  89. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  90. ACCOUNTS_FIELD_NUMBER: builtins.int
  91. @property
  92. def accounts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
  93. """use * for all accounts"""
  94. def __init__(
  95. self,
  96. *,
  97. accounts: collections.abc.Iterable[builtins.str] | None = ...,
  98. ) -> None: ...
  99. def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts"]) -> None: ...
  100. global___AccountsOfInterest = AccountsOfInterest
  101. @typing_extensions.final
  102. class AccountsOfInterestRequest(google.protobuf.message.Message):
  103. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  104. def __init__(
  105. self,
  106. ) -> None: ...
  107. global___AccountsOfInterestRequest = AccountsOfInterestRequest
  108. @typing_extensions.final
  109. class AccountsOfInterestUpdate(google.protobuf.message.Message):
  110. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  111. ACCOUNTS_FIELD_NUMBER: builtins.int
  112. @property
  113. def accounts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
  114. def __init__(
  115. self,
  116. *,
  117. accounts: collections.abc.Iterable[builtins.str] | None = ...,
  118. ) -> None: ...
  119. def ClearField(self, field_name: typing_extensions.Literal["accounts", b"accounts"]) -> None: ...
  120. global___AccountsOfInterestUpdate = AccountsOfInterestUpdate
  121. @typing_extensions.final
  122. class ExpiringPacketBatch(google.protobuf.message.Message):
  123. """A series of packets with an expiration attached to them.
  124. The header contains a timestamp for when this packet was generated.
  125. The expiry is how long the packet batches have before they expire and are forwarded to the validator.
  126. This provides a more censorship resistant method to MEV than block engines receiving packets directly.
  127. """
  128. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  129. HEADER_FIELD_NUMBER: builtins.int
  130. BATCH_FIELD_NUMBER: builtins.int
  131. EXPIRY_MS_FIELD_NUMBER: builtins.int
  132. @property
  133. def header(self) -> shared_pb2.Header: ...
  134. @property
  135. def batch(self) -> packet_pb2.PacketBatch: ...
  136. expiry_ms: builtins.int
  137. def __init__(
  138. self,
  139. *,
  140. header: shared_pb2.Header | None = ...,
  141. batch: packet_pb2.PacketBatch | None = ...,
  142. expiry_ms: builtins.int = ...,
  143. ) -> None: ...
  144. def HasField(self, field_name: typing_extensions.Literal["batch", b"batch", "header", b"header"]) -> builtins.bool: ...
  145. def ClearField(self, field_name: typing_extensions.Literal["batch", b"batch", "expiry_ms", b"expiry_ms", "header", b"header"]) -> None: ...
  146. global___ExpiringPacketBatch = ExpiringPacketBatch
  147. @typing_extensions.final
  148. class PacketBatchUpdate(google.protobuf.message.Message):
  149. """Packets and heartbeats are sent over the same stream.
  150. ExpiringPacketBatches have an expiration attached to them so the block engine can track
  151. how long it has until the relayer forwards the packets to the validator.
  152. Heartbeats contain a timestamp from the system and is used as a simple and naive time-sync mechanism
  153. so the block engine has some idea on how far their clocks are apart.
  154. """
  155. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  156. BATCHES_FIELD_NUMBER: builtins.int
  157. HEARTBEAT_FIELD_NUMBER: builtins.int
  158. @property
  159. def batches(self) -> global___ExpiringPacketBatch: ...
  160. @property
  161. def heartbeat(self) -> shared_pb2.Heartbeat: ...
  162. def __init__(
  163. self,
  164. *,
  165. batches: global___ExpiringPacketBatch | None = ...,
  166. heartbeat: shared_pb2.Heartbeat | None = ...,
  167. ) -> None: ...
  168. def HasField(self, field_name: typing_extensions.Literal["batches", b"batches", "heartbeat", b"heartbeat", "msg", b"msg"]) -> builtins.bool: ...
  169. def ClearField(self, field_name: typing_extensions.Literal["batches", b"batches", "heartbeat", b"heartbeat", "msg", b"msg"]) -> None: ...
  170. def WhichOneof(self, oneof_group: typing_extensions.Literal["msg", b"msg"]) -> typing_extensions.Literal["batches", "heartbeat"] | None: ...
  171. global___PacketBatchUpdate = PacketBatchUpdate
  172. @typing_extensions.final
  173. class StartExpiringPacketStreamResponse(google.protobuf.message.Message):
  174. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  175. HEARTBEAT_FIELD_NUMBER: builtins.int
  176. @property
  177. def heartbeat(self) -> shared_pb2.Heartbeat: ...
  178. def __init__(
  179. self,
  180. *,
  181. heartbeat: shared_pb2.Heartbeat | None = ...,
  182. ) -> None: ...
  183. def HasField(self, field_name: typing_extensions.Literal["heartbeat", b"heartbeat"]) -> builtins.bool: ...
  184. def ClearField(self, field_name: typing_extensions.Literal["heartbeat", b"heartbeat"]) -> None: ...
  185. global___StartExpiringPacketStreamResponse = StartExpiringPacketStreamResponse