bundle_pb2.pyi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. """
  2. @generated by mypy-protobuf. Do not edit manually!
  3. isort:skip_file
  4. """
  5. import builtins
  6. import collections.abc
  7. import google.protobuf.descriptor
  8. import google.protobuf.internal.containers
  9. import google.protobuf.message
  10. import packet_pb2
  11. import shared_pb2
  12. import sys
  13. if sys.version_info >= (3, 8):
  14. import typing as typing_extensions
  15. else:
  16. import typing_extensions
  17. DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
  18. @typing_extensions.final
  19. class Bundle(google.protobuf.message.Message):
  20. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  21. HEADER_FIELD_NUMBER: builtins.int
  22. PACKETS_FIELD_NUMBER: builtins.int
  23. @property
  24. def header(self) -> shared_pb2.Header: ...
  25. @property
  26. def packets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[packet_pb2.Packet]: ...
  27. def __init__(
  28. self,
  29. *,
  30. header: shared_pb2.Header | None = ...,
  31. packets: collections.abc.Iterable[packet_pb2.Packet] | None = ...,
  32. ) -> None: ...
  33. def HasField(self, field_name: typing_extensions.Literal["header", b"header"]) -> builtins.bool: ...
  34. def ClearField(self, field_name: typing_extensions.Literal["header", b"header", "packets", b"packets"]) -> None: ...
  35. global___Bundle = Bundle
  36. @typing_extensions.final
  37. class BundleUuid(google.protobuf.message.Message):
  38. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  39. BUNDLE_FIELD_NUMBER: builtins.int
  40. UUID_FIELD_NUMBER: builtins.int
  41. @property
  42. def bundle(self) -> global___Bundle: ...
  43. uuid: builtins.str
  44. def __init__(
  45. self,
  46. *,
  47. bundle: global___Bundle | None = ...,
  48. uuid: builtins.str = ...,
  49. ) -> None: ...
  50. def HasField(self, field_name: typing_extensions.Literal["bundle", b"bundle"]) -> builtins.bool: ...
  51. def ClearField(self, field_name: typing_extensions.Literal["bundle", b"bundle", "uuid", b"uuid"]) -> None: ...
  52. global___BundleUuid = BundleUuid
  53. @typing_extensions.final
  54. class Accepted(google.protobuf.message.Message):
  55. """Bundle Result Types
  56. Indicates the bundle was accepted and forwarded to a validator.
  57. NOTE: A single bundle may have multiple events emitted if forwarded to many validators.
  58. """
  59. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  60. SLOT_FIELD_NUMBER: builtins.int
  61. VALIDATOR_IDENTITY_FIELD_NUMBER: builtins.int
  62. slot: builtins.int
  63. """Slot at which bundle was forwarded."""
  64. validator_identity: builtins.str
  65. """Validator identity bundle was forwarded to."""
  66. def __init__(
  67. self,
  68. *,
  69. slot: builtins.int = ...,
  70. validator_identity: builtins.str = ...,
  71. ) -> None: ...
  72. def ClearField(self, field_name: typing_extensions.Literal["slot", b"slot", "validator_identity", b"validator_identity"]) -> None: ...
  73. global___Accepted = Accepted
  74. @typing_extensions.final
  75. class Rejected(google.protobuf.message.Message):
  76. """Indicates the bundle was dropped and therefore not forwarded to any validator."""
  77. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  78. STATE_AUCTION_BID_REJECTED_FIELD_NUMBER: builtins.int
  79. WINNING_BATCH_BID_REJECTED_FIELD_NUMBER: builtins.int
  80. SIMULATION_FAILURE_FIELD_NUMBER: builtins.int
  81. INTERNAL_ERROR_FIELD_NUMBER: builtins.int
  82. @property
  83. def state_auction_bid_rejected(self) -> global___StateAuctionBidRejected: ...
  84. @property
  85. def winning_batch_bid_rejected(self) -> global___WinningBatchBidRejected: ...
  86. @property
  87. def simulation_failure(self) -> global___SimulationFailure: ...
  88. @property
  89. def internal_error(self) -> global___InternalError: ...
  90. def __init__(
  91. self,
  92. *,
  93. state_auction_bid_rejected: global___StateAuctionBidRejected | None = ...,
  94. winning_batch_bid_rejected: global___WinningBatchBidRejected | None = ...,
  95. simulation_failure: global___SimulationFailure | None = ...,
  96. internal_error: global___InternalError | None = ...,
  97. ) -> None: ...
  98. def HasField(self, field_name: typing_extensions.Literal["internal_error", b"internal_error", "reason", b"reason", "simulation_failure", b"simulation_failure", "state_auction_bid_rejected", b"state_auction_bid_rejected", "winning_batch_bid_rejected", b"winning_batch_bid_rejected"]) -> builtins.bool: ...
  99. def ClearField(self, field_name: typing_extensions.Literal["internal_error", b"internal_error", "reason", b"reason", "simulation_failure", b"simulation_failure", "state_auction_bid_rejected", b"state_auction_bid_rejected", "winning_batch_bid_rejected", b"winning_batch_bid_rejected"]) -> None: ...
  100. def WhichOneof(self, oneof_group: typing_extensions.Literal["reason", b"reason"]) -> typing_extensions.Literal["state_auction_bid_rejected", "winning_batch_bid_rejected", "simulation_failure", "internal_error"] | None: ...
  101. global___Rejected = Rejected
  102. @typing_extensions.final
  103. class WinningBatchBidRejected(google.protobuf.message.Message):
  104. """Indicates the bundle's bid was high enough to win its state auction.
  105. However, not high enough relative to other state auction winners and therefore excluded from being forwarded.
  106. """
  107. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  108. AUCTION_ID_FIELD_NUMBER: builtins.int
  109. SIMULATED_BID_LAMPORTS_FIELD_NUMBER: builtins.int
  110. MSG_FIELD_NUMBER: builtins.int
  111. auction_id: builtins.str
  112. """Auction's unique identifier."""
  113. simulated_bid_lamports: builtins.int
  114. """Bundle's simulated bid."""
  115. msg: builtins.str
  116. def __init__(
  117. self,
  118. *,
  119. auction_id: builtins.str = ...,
  120. simulated_bid_lamports: builtins.int = ...,
  121. msg: builtins.str | None = ...,
  122. ) -> None: ...
  123. def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
  124. def ClearField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "auction_id", b"auction_id", "msg", b"msg", "simulated_bid_lamports", b"simulated_bid_lamports"]) -> None: ...
  125. def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
  126. global___WinningBatchBidRejected = WinningBatchBidRejected
  127. @typing_extensions.final
  128. class StateAuctionBidRejected(google.protobuf.message.Message):
  129. """Indicates the bundle's bid was __not__ high enough to be included in its state auction's set of winners."""
  130. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  131. AUCTION_ID_FIELD_NUMBER: builtins.int
  132. SIMULATED_BID_LAMPORTS_FIELD_NUMBER: builtins.int
  133. MSG_FIELD_NUMBER: builtins.int
  134. auction_id: builtins.str
  135. """Auction's unique identifier."""
  136. simulated_bid_lamports: builtins.int
  137. """Bundle's simulated bid."""
  138. msg: builtins.str
  139. def __init__(
  140. self,
  141. *,
  142. auction_id: builtins.str = ...,
  143. simulated_bid_lamports: builtins.int = ...,
  144. msg: builtins.str | None = ...,
  145. ) -> None: ...
  146. def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
  147. def ClearField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "auction_id", b"auction_id", "msg", b"msg", "simulated_bid_lamports", b"simulated_bid_lamports"]) -> None: ...
  148. def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
  149. global___StateAuctionBidRejected = StateAuctionBidRejected
  150. @typing_extensions.final
  151. class SimulationFailure(google.protobuf.message.Message):
  152. """Bundle dropped due to simulation failure."""
  153. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  154. TX_SIGNATURE_FIELD_NUMBER: builtins.int
  155. MSG_FIELD_NUMBER: builtins.int
  156. tx_signature: builtins.str
  157. """Signature of the offending transaction."""
  158. msg: builtins.str
  159. def __init__(
  160. self,
  161. *,
  162. tx_signature: builtins.str = ...,
  163. msg: builtins.str | None = ...,
  164. ) -> None: ...
  165. def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
  166. def ClearField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg", "tx_signature", b"tx_signature"]) -> None: ...
  167. def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
  168. global___SimulationFailure = SimulationFailure
  169. @typing_extensions.final
  170. class InternalError(google.protobuf.message.Message):
  171. """Bundle dropped due to an internal error."""
  172. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  173. MSG_FIELD_NUMBER: builtins.int
  174. msg: builtins.str
  175. def __init__(
  176. self,
  177. *,
  178. msg: builtins.str = ...,
  179. ) -> None: ...
  180. def ClearField(self, field_name: typing_extensions.Literal["msg", b"msg"]) -> None: ...
  181. global___InternalError = InternalError
  182. @typing_extensions.final
  183. class BundleResult(google.protobuf.message.Message):
  184. DESCRIPTOR: google.protobuf.descriptor.Descriptor
  185. BUNDLE_ID_FIELD_NUMBER: builtins.int
  186. ACCEPTED_FIELD_NUMBER: builtins.int
  187. REJECTED_FIELD_NUMBER: builtins.int
  188. bundle_id: builtins.str
  189. """Bundle's Uuid."""
  190. @property
  191. def accepted(self) -> global___Accepted: ...
  192. @property
  193. def rejected(self) -> global___Rejected: ...
  194. def __init__(
  195. self,
  196. *,
  197. bundle_id: builtins.str = ...,
  198. accepted: global___Accepted | None = ...,
  199. rejected: global___Rejected | None = ...,
  200. ) -> None: ...
  201. def HasField(self, field_name: typing_extensions.Literal["accepted", b"accepted", "rejected", b"rejected", "result", b"result"]) -> builtins.bool: ...
  202. def ClearField(self, field_name: typing_extensions.Literal["accepted", b"accepted", "bundle_id", b"bundle_id", "rejected", b"rejected", "result", b"result"]) -> None: ...
  203. def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["accepted", "rejected"] | None: ...
  204. global___BundleResult = BundleResult