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.args_count());
51 const std::uint8_t* data,
52 std::size_t data_size,
53 const evmc::bytes32 topics[],
54 std::size_t num_topics);
57 const std::string & data_hex,
58 const std::vector<std::string> & topics_hex);
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.
std::expected< T, ParseError > Result
Definition parse_error.hpp:26
Definition condition.hpp:40
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:95
Definition decentralised_art.hpp:35
parse::Result< std::string > constructTransformationSolidityCode(const Transformation &transformation)
Definition transformation.cpp:45
parse::Result< std::uint32_t > countTransformationArgs(const std::string &sol_src)
Counts the number of distinct args[N] slots referenced by a transformation's source....
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