6#include <absl/hash/hash.h>
7#include <spdlog/spdlog.h>
9#include "transformation.pb.h"
26 return H::combine(std::move(h), t.name(), t.sol_src());
44 const std::uint8_t* data,
45 std::size_t data_size,
46 const evmc::bytes32 topics[],
47 std::size_t num_topics);
50 const std::string & data_hex,
51 const std::vector<std::string> & topics_hex);
62 Result<json>
parseToJson(Transformation transformation, use_json_t);
77 Result<std::string>
parseToJson(Transformation transformation, use_protobuf_t);
84 Result<Transformation>
parseFromJson(std::string json_str, use_protobuf_t);
92 Result<json>
parseToJson(TransformationRecord transformation_record, use_json_t);
99 Result<std::string>
parseToJson(TransformationRecord transformation_record, use_protobuf_t);
113 Result<TransformationRecord>
parseFromJson(std::string json_str, use_protobuf_t);
evmc::address Address
Definition address.hpp:18
Result< json > parseToJson(T message, use_json_t)
Converts a T to a JSON object using JSON.
Result< T > parseFromJson(json json, use_json_t)
Converts a JSON string to a T using JSON.
Definition condition.hpp:33
std::optional< TransformationAddedEvent > decodeTransformationAddedEvent(const std::uint8_t *data, std::size_t data_size, const evmc::bytes32 topics[], std::size_t num_topics)
Definition transformation.cpp:84
Definition decentralised_art.hpp:33
parse::Result< std::string > constructTransformationSolidityCode(const Transformation &transformation)
Definition transformation.cpp:10
H AbslHashValue(H h, const Condition &c)
Combines hash values for a Condition object.
Definition condition.hpp:25
nlohmann::json json
Definition parser.hpp:7