46 std::array<std::optional<std::string>, 4>
topics{};
75 Result<dcn::events::EventState>
parseEventState(
const std::string & value);
76 Result<dcn::events::EventType>
parseEventType(
const std::string & value);
78 Result<dcn::events::RawChainLog>
parseRawLog(
const json & log_json,
const std::int64_t seen_at_ms,
int chain_id);
Definition decoded_event.hpp:11
EventType
Definition decoded_event.hpp:30
EventState
Definition decoded_event.hpp:22
constexpr std::string_view TRANSFORMATION_ADDED_TYPE
Definition decoded_event.hpp:13
constexpr std::string_view OBSERVED_STATE
Definition decoded_event.hpp:16
constexpr std::string_view SAFE_STATE
Definition decoded_event.hpp:17
constexpr std::string_view FINALIZED_STATE
Definition decoded_event.hpp:18
constexpr std::string_view REMOVED_STATE
Definition decoded_event.hpp:19
std::string toString(EventState state)
Definition decoded_events.cpp:8
constexpr std::string_view CONNECTOR_ADDED_TYPE
Definition decoded_event.hpp:12
constexpr std::string_view CONDITION_ADDED_TYPE
Definition decoded_event.hpp:14
Result< dcn::events::EventType > parseEventType(const std::string &value)
Definition decoded_events.cpp:65
Result< dcn::events::EventState > parseEventState(const std::string &value)
Definition decoded_events.cpp:43
Result< dcn::events::RawChainLog > parseRawLog(const json &log_json, const std::int64_t seen_at_ms, int chain_id)
Definition decoded_events.cpp:83
nlohmann::json json
Definition parser.hpp:7
Definition decoded_event.hpp:54
std::string owner
Definition decoded_event.hpp:61
std::optional< std::uint32_t > args_count
Definition decoded_event.hpp:63
std::string entity_address
Definition decoded_event.hpp:62
std::string name
Definition decoded_event.hpp:59
EventState state
Definition decoded_event.hpp:57
std::string caller
Definition decoded_event.hpp:60
std::optional< std::string > format_hash
Definition decoded_event.hpp:64
EventType event_type
Definition decoded_event.hpp:56
std::string decoded_json
Definition decoded_event.hpp:66
RawChainLog raw
Definition decoded_event.hpp:55
Definition decoded_event.hpp:37
std::int64_t tx_index
Definition decoded_event.hpp:42
std::int64_t block_number
Definition decoded_event.hpp:39
std::string tx_hash
Definition decoded_event.hpp:43
std::int64_t log_index
Definition decoded_event.hpp:44
int chain_id
Definition decoded_event.hpp:38
std::optional< std::int64_t > block_time
Definition decoded_event.hpp:49
std::string address
Definition decoded_event.hpp:45
std::array< std::optional< std::string >, 4 > topics
Definition decoded_event.hpp:46
std::string data_hex
Definition decoded_event.hpp:47
std::string parent_hash
Definition decoded_event.hpp:41
std::string block_hash
Definition decoded_event.hpp:40
bool removed
Definition decoded_event.hpp:48
std::int64_t seen_at_ms
Definition decoded_event.hpp:50