22 enum class CallStatus { More, Done, Errored };
23 using RequestType = org::xrpl::rpc::v1::GetLedgerDataRequest;
24 using ResponseType = org::xrpl::rpc::v1::GetLedgerDataResponse;
25 using StubType = org::xrpl::rpc::v1::XRPLedgerAPIService::Stub;
30 std::unique_ptr<ResponseType> cur_;
31 std::unique_ptr<ResponseType> next_;
34 std::unique_ptr<grpc::ClientContext> context_;
37 unsigned char nextPrefix_;
40 std::optional<std::string> predecessorKey_;
45 ripple::uint256
const& marker,
46 std::optional<ripple::uint256>
const& nextMarker
49 static std::vector<AsyncGrpcCall>
50 makeAsyncCalls(uint32_t
const sequence, uint32_t
const numMarkers);
54 std::unique_ptr<StubType>& stub,
55 grpc::CompletionQueue& cq,
62 std::unique_ptr<org::xrpl::rpc::v1::XRPLedgerAPIService::Stub>& stub,
63 grpc::CompletionQueue& cq