10#include <nlohmann/json.hpp>
83 std::optional<std::int64_t>
last_seq = std::nullopt;
104struct std::formatter<
dcn::feed::CursorKey> : std::formatter<std::string> {
106 return std::formatter<std::string>::format(
107 std::format(
"c{}:{}:{}:{}",
Definition feed_types.hpp:91
virtual ~IFeedRepository()=default
virtual StreamPage getStreamPage(const StreamQuery &query) const =0
virtual std::int64_t minAvailableStreamSeq() const =0
virtual FeedPage getFeedPage(const FeedQuery &query) const =0
constexpr std::size_t DEFAULT_FEED_LIMIT
Definition feed_types.hpp:16
constexpr std::size_t MAX_STREAM_LIMIT
Definition feed_types.hpp:19
constexpr std::size_t DEFAULT_STREAM_LIMIT
Definition feed_types.hpp:18
constexpr std::size_t MAX_FEED_LIMIT
Definition feed_types.hpp:17
parse::Result< CursorKey > parseHistoryCursor(const std::string &cursor)
Definition feed_types.cpp:5
std::expected< T, ParseError > Result
Definition parse_error.hpp:26
Definition decentralised_art.hpp:35
Definition feed_types.hpp:22
std::string chain_namespace
Definition feed_types.hpp:24
std::int64_t block_number
Definition feed_types.hpp:26
std::string feed_id
Definition feed_types.hpp:28
int chain_id
Definition feed_types.hpp:23
std::int64_t created_at_ms
Definition feed_types.hpp:25
std::int64_t tx_index
Definition feed_types.hpp:27
Definition feed_types.hpp:32
bool visible
Definition feed_types.hpp:36
std::int64_t tx_index
Definition feed_types.hpp:39
int projector_version
Definition feed_types.hpp:44
nlohmann::json payload
Definition feed_types.hpp:45
std::string status
Definition feed_types.hpp:35
std::int64_t updated_at_ms
Definition feed_types.hpp:43
std::string tx_hash
Definition feed_types.hpp:37
std::string history_cursor
Definition feed_types.hpp:41
std::string event_type
Definition feed_types.hpp:34
std::int64_t log_index
Definition feed_types.hpp:40
std::int64_t block_number
Definition feed_types.hpp:38
std::string feed_id
Definition feed_types.hpp:33
std::int64_t created_at_ms
Definition feed_types.hpp:42
Definition feed_types.hpp:57
std::vector< FeedItem > items
Definition feed_types.hpp:58
std::optional< std::string > next_before_cursor
Definition feed_types.hpp:59
bool has_more
Definition feed_types.hpp:60
Definition feed_types.hpp:49
bool include_unfinalized
Definition feed_types.hpp:53
std::optional< std::string > before_cursor
Definition feed_types.hpp:51
std::optional< std::string > event_type
Definition feed_types.hpp:52
std::size_t limit
Definition feed_types.hpp:50
Definition feed_types.hpp:70
std::int64_t stream_seq
Definition feed_types.hpp:71
nlohmann::json payload
Definition feed_types.hpp:77
std::string history_cursor
Definition feed_types.hpp:75
std::string status
Definition feed_types.hpp:73
std::string feed_id
Definition feed_types.hpp:74
std::string event_type
Definition feed_types.hpp:72
std::int64_t created_at_ms
Definition feed_types.hpp:76
Definition feed_types.hpp:81
std::vector< StreamDelta > deltas
Definition feed_types.hpp:82
std::int64_t replay_floor_seq
Definition feed_types.hpp:85
bool stale_since_seq
Definition feed_types.hpp:86
bool has_more
Definition feed_types.hpp:87
std::int64_t min_available_seq
Definition feed_types.hpp:84
std::optional< std::int64_t > last_seq
Definition feed_types.hpp:83
Definition feed_types.hpp:64
std::size_t limit
Definition feed_types.hpp:66
std::int64_t since_seq
Definition feed_types.hpp:65