searcher_pb2_grpc.pyi 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. """
  2. @generated by mypy-protobuf. Do not edit manually!
  3. isort:skip_file
  4. """
  5. import abc
  6. import bundle_pb2
  7. import collections.abc
  8. import grpc
  9. import searcher_pb2
  10. class SearcherServiceStub:
  11. def __init__(self, channel: grpc.Channel) -> None: ...
  12. SubscribeBundleResults: grpc.UnaryStreamMultiCallable[
  13. searcher_pb2.SubscribeBundleResultsRequest,
  14. bundle_pb2.BundleResult,
  15. ]
  16. """Searchers can invoke this endpoint to subscribe to their respective bundle results.
  17. A success result would indicate the bundle won its state auction and was submitted to the validator.
  18. """
  19. SubscribePendingTransactions: grpc.UnaryStreamMultiCallable[
  20. searcher_pb2.PendingTxSubscriptionRequest,
  21. searcher_pb2.PendingTxNotification,
  22. ]
  23. """RPC endpoint to subscribe to pending transactions. Clients can provide a list of base58 encoded accounts.
  24. Any transactions that write-lock the provided accounts will be streamed to the searcher.
  25. """
  26. SendBundle: grpc.UnaryUnaryMultiCallable[
  27. searcher_pb2.SendBundleRequest,
  28. searcher_pb2.SendBundleResponse,
  29. ]
  30. GetNextScheduledLeader: grpc.UnaryUnaryMultiCallable[
  31. searcher_pb2.NextScheduledLeaderRequest,
  32. searcher_pb2.NextScheduledLeaderResponse,
  33. ]
  34. """Returns the next scheduled leader connected to the block engine."""
  35. GetConnectedLeaders: grpc.UnaryUnaryMultiCallable[
  36. searcher_pb2.ConnectedLeadersRequest,
  37. searcher_pb2.ConnectedLeadersResponse,
  38. ]
  39. """Returns information on connected leader slots"""
  40. GetTipAccounts: grpc.UnaryUnaryMultiCallable[
  41. searcher_pb2.GetTipAccountsRequest,
  42. searcher_pb2.GetTipAccountsResponse,
  43. ]
  44. """Returns the tip accounts searchers shall transfer funds to for the leader to claim."""
  45. class SearcherServiceServicer(metaclass=abc.ABCMeta):
  46. @abc.abstractmethod
  47. def SubscribeBundleResults(
  48. self,
  49. request: searcher_pb2.SubscribeBundleResultsRequest,
  50. context: grpc.ServicerContext,
  51. ) -> collections.abc.Iterator[bundle_pb2.BundleResult]:
  52. """Searchers can invoke this endpoint to subscribe to their respective bundle results.
  53. A success result would indicate the bundle won its state auction and was submitted to the validator.
  54. """
  55. @abc.abstractmethod
  56. def SubscribePendingTransactions(
  57. self,
  58. request: searcher_pb2.PendingTxSubscriptionRequest,
  59. context: grpc.ServicerContext,
  60. ) -> collections.abc.Iterator[searcher_pb2.PendingTxNotification]:
  61. """RPC endpoint to subscribe to pending transactions. Clients can provide a list of base58 encoded accounts.
  62. Any transactions that write-lock the provided accounts will be streamed to the searcher.
  63. """
  64. @abc.abstractmethod
  65. def SendBundle(
  66. self,
  67. request: searcher_pb2.SendBundleRequest,
  68. context: grpc.ServicerContext,
  69. ) -> searcher_pb2.SendBundleResponse: ...
  70. @abc.abstractmethod
  71. def GetNextScheduledLeader(
  72. self,
  73. request: searcher_pb2.NextScheduledLeaderRequest,
  74. context: grpc.ServicerContext,
  75. ) -> searcher_pb2.NextScheduledLeaderResponse:
  76. """Returns the next scheduled leader connected to the block engine."""
  77. @abc.abstractmethod
  78. def GetConnectedLeaders(
  79. self,
  80. request: searcher_pb2.ConnectedLeadersRequest,
  81. context: grpc.ServicerContext,
  82. ) -> searcher_pb2.ConnectedLeadersResponse:
  83. """Returns information on connected leader slots"""
  84. @abc.abstractmethod
  85. def GetTipAccounts(
  86. self,
  87. request: searcher_pb2.GetTipAccountsRequest,
  88. context: grpc.ServicerContext,
  89. ) -> searcher_pb2.GetTipAccountsResponse:
  90. """Returns the tip accounts searchers shall transfer funds to for the leader to claim."""
  91. def add_SearcherServiceServicer_to_server(servicer: SearcherServiceServicer, server: grpc.Server) -> None: ...