41 enum class CallStatus { More, Done, Errored };
42 using RequestType = org::xrpl::rpc::v1::GetLedgerDataRequest;
43 using ResponseType = org::xrpl::rpc::v1::GetLedgerDataResponse;
44 using StubType = org::xrpl::rpc::v1::XRPLedgerAPIService::Stub;
49 std::unique_ptr<ResponseType> cur_;
50 std::unique_ptr<ResponseType> next_;
53 std::unique_ptr<grpc::ClientContext> context_;
56 unsigned char nextPrefix_;
59 std::optional<std::string> predecessorKey_;
64 ripple::uint256
const& marker,
65 std::optional<ripple::uint256>
const& nextMarker
68 static std::vector<AsyncGrpcCall>
69 makeAsyncCalls(uint32_t
const sequence, uint32_t
const numMarkers);
73 std::unique_ptr<StubType>& stub,
74 grpc::CompletionQueue& cq,
81 std::unique_ptr<org::xrpl::rpc::v1::XRPLedgerAPIService::Stub>& stub,
82 grpc::CompletionQueue& cq