| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- """
- @generated by mypy-protobuf. Do not edit manually!
- isort:skip_file
- """
- import builtins
- import collections.abc
- import google.protobuf.descriptor
- import google.protobuf.internal.containers
- import google.protobuf.message
- import packet_pb2
- import shared_pb2
- import sys
- if sys.version_info >= (3, 8):
- import typing as typing_extensions
- else:
- import typing_extensions
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- @typing_extensions.final
- class Bundle(google.protobuf.message.Message):
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- HEADER_FIELD_NUMBER: builtins.int
- PACKETS_FIELD_NUMBER: builtins.int
- @property
- def header(self) -> shared_pb2.Header: ...
- @property
- def packets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[packet_pb2.Packet]: ...
- def __init__(
- self,
- *,
- header: shared_pb2.Header | None = ...,
- packets: collections.abc.Iterable[packet_pb2.Packet] | None = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["header", b"header"]) -> builtins.bool: ...
- def ClearField(self, field_name: typing_extensions.Literal["header", b"header", "packets", b"packets"]) -> None: ...
- global___Bundle = Bundle
- @typing_extensions.final
- class BundleUuid(google.protobuf.message.Message):
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- BUNDLE_FIELD_NUMBER: builtins.int
- UUID_FIELD_NUMBER: builtins.int
- @property
- def bundle(self) -> global___Bundle: ...
- uuid: builtins.str
- def __init__(
- self,
- *,
- bundle: global___Bundle | None = ...,
- uuid: builtins.str = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["bundle", b"bundle"]) -> builtins.bool: ...
- def ClearField(self, field_name: typing_extensions.Literal["bundle", b"bundle", "uuid", b"uuid"]) -> None: ...
- global___BundleUuid = BundleUuid
- @typing_extensions.final
- class Accepted(google.protobuf.message.Message):
- """Bundle Result Types
- Indicates the bundle was accepted and forwarded to a validator.
- NOTE: A single bundle may have multiple events emitted if forwarded to many validators.
- """
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- SLOT_FIELD_NUMBER: builtins.int
- VALIDATOR_IDENTITY_FIELD_NUMBER: builtins.int
- slot: builtins.int
- """Slot at which bundle was forwarded."""
- validator_identity: builtins.str
- """Validator identity bundle was forwarded to."""
- def __init__(
- self,
- *,
- slot: builtins.int = ...,
- validator_identity: builtins.str = ...,
- ) -> None: ...
- def ClearField(self, field_name: typing_extensions.Literal["slot", b"slot", "validator_identity", b"validator_identity"]) -> None: ...
- global___Accepted = Accepted
- @typing_extensions.final
- class Rejected(google.protobuf.message.Message):
- """Indicates the bundle was dropped and therefore not forwarded to any validator."""
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- STATE_AUCTION_BID_REJECTED_FIELD_NUMBER: builtins.int
- WINNING_BATCH_BID_REJECTED_FIELD_NUMBER: builtins.int
- SIMULATION_FAILURE_FIELD_NUMBER: builtins.int
- INTERNAL_ERROR_FIELD_NUMBER: builtins.int
- @property
- def state_auction_bid_rejected(self) -> global___StateAuctionBidRejected: ...
- @property
- def winning_batch_bid_rejected(self) -> global___WinningBatchBidRejected: ...
- @property
- def simulation_failure(self) -> global___SimulationFailure: ...
- @property
- def internal_error(self) -> global___InternalError: ...
- def __init__(
- self,
- *,
- state_auction_bid_rejected: global___StateAuctionBidRejected | None = ...,
- winning_batch_bid_rejected: global___WinningBatchBidRejected | None = ...,
- simulation_failure: global___SimulationFailure | None = ...,
- internal_error: global___InternalError | None = ...,
- ) -> None: ...
- 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: ...
- 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: ...
- 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: ...
- global___Rejected = Rejected
- @typing_extensions.final
- class WinningBatchBidRejected(google.protobuf.message.Message):
- """Indicates the bundle's bid was high enough to win its state auction.
- However, not high enough relative to other state auction winners and therefore excluded from being forwarded.
- """
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- AUCTION_ID_FIELD_NUMBER: builtins.int
- SIMULATED_BID_LAMPORTS_FIELD_NUMBER: builtins.int
- MSG_FIELD_NUMBER: builtins.int
- auction_id: builtins.str
- """Auction's unique identifier."""
- simulated_bid_lamports: builtins.int
- """Bundle's simulated bid."""
- msg: builtins.str
- def __init__(
- self,
- *,
- auction_id: builtins.str = ...,
- simulated_bid_lamports: builtins.int = ...,
- msg: builtins.str | None = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
- 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: ...
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
- global___WinningBatchBidRejected = WinningBatchBidRejected
- @typing_extensions.final
- class StateAuctionBidRejected(google.protobuf.message.Message):
- """Indicates the bundle's bid was __not__ high enough to be included in its state auction's set of winners."""
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- AUCTION_ID_FIELD_NUMBER: builtins.int
- SIMULATED_BID_LAMPORTS_FIELD_NUMBER: builtins.int
- MSG_FIELD_NUMBER: builtins.int
- auction_id: builtins.str
- """Auction's unique identifier."""
- simulated_bid_lamports: builtins.int
- """Bundle's simulated bid."""
- msg: builtins.str
- def __init__(
- self,
- *,
- auction_id: builtins.str = ...,
- simulated_bid_lamports: builtins.int = ...,
- msg: builtins.str | None = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
- 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: ...
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
- global___StateAuctionBidRejected = StateAuctionBidRejected
- @typing_extensions.final
- class SimulationFailure(google.protobuf.message.Message):
- """Bundle dropped due to simulation failure."""
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- TX_SIGNATURE_FIELD_NUMBER: builtins.int
- MSG_FIELD_NUMBER: builtins.int
- tx_signature: builtins.str
- """Signature of the offending transaction."""
- msg: builtins.str
- def __init__(
- self,
- *,
- tx_signature: builtins.str = ...,
- msg: builtins.str | None = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg"]) -> builtins.bool: ...
- def ClearField(self, field_name: typing_extensions.Literal["_msg", b"_msg", "msg", b"msg", "tx_signature", b"tx_signature"]) -> None: ...
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_msg", b"_msg"]) -> typing_extensions.Literal["msg"] | None: ...
- global___SimulationFailure = SimulationFailure
- @typing_extensions.final
- class InternalError(google.protobuf.message.Message):
- """Bundle dropped due to an internal error."""
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- MSG_FIELD_NUMBER: builtins.int
- msg: builtins.str
- def __init__(
- self,
- *,
- msg: builtins.str = ...,
- ) -> None: ...
- def ClearField(self, field_name: typing_extensions.Literal["msg", b"msg"]) -> None: ...
- global___InternalError = InternalError
- @typing_extensions.final
- class BundleResult(google.protobuf.message.Message):
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- BUNDLE_ID_FIELD_NUMBER: builtins.int
- ACCEPTED_FIELD_NUMBER: builtins.int
- REJECTED_FIELD_NUMBER: builtins.int
- bundle_id: builtins.str
- """Bundle's Uuid."""
- @property
- def accepted(self) -> global___Accepted: ...
- @property
- def rejected(self) -> global___Rejected: ...
- def __init__(
- self,
- *,
- bundle_id: builtins.str = ...,
- accepted: global___Accepted | None = ...,
- rejected: global___Rejected | None = ...,
- ) -> None: ...
- def HasField(self, field_name: typing_extensions.Literal["accepted", b"accepted", "rejected", b"rejected", "result", b"result"]) -> builtins.bool: ...
- def ClearField(self, field_name: typing_extensions.Literal["accepted", b"accepted", "bundle_id", b"bundle_id", "rejected", b"rejected", "result", b"result"]) -> None: ...
- def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["accepted", "rejected"] | None: ...
- global___BundleResult = BundleResult
|