Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
Loading...
Searching...
No Matches
transformation.hpp File Reference
#include <string>
#include <regex>
#include <algorithm>
#include <absl/hash/hash.h>
#include <spdlog/spdlog.h>
#include "transformation.pb.h"
#include "parser.hpp"
#include "chain.hpp"

Go to the source code of this file.

Classes

struct  dcn::pt::TransformationAddedEvent

Namespaces

namespace  dcn
namespace  dcn::pt
namespace  dcn::parse

Functions

template<typename H>
dcn::AbslHashValue (H h, const Transformation &t)
 Combines hash values for a Transformation object.
parse::Result< std::uint32_t > dcn::countTransformationArgs (const std::string &sol_src)
 Counts the number of distinct args[N] slots referenced by a transformation's source. This is the chain-derivable args_count (it matches the value registered on chain).
parse::Result< std::string > dcn::constructTransformationSolidityCode (const Transformation &transformation)
std::optional< TransformationAddedEventdcn::pt::decodeTransformationAddedEvent (const std::uint8_t *data, std::size_t data_size, const evmc::bytes32 topics[], std::size_t num_topics)
std::optional< TransformationAddedEventdcn::pt::decodeTransformationAddedEvent (const std::string &data_hex, const std::vector< std::string > &topics_hex)
template<>
Result< jsondcn::parse::parseToJson (Transformation transformation, use_json_t)
 Parses a Transformation object to a JSON object.
template<>
Result< Transformation > dcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a Transformation object.
template<>
Result< std::string > dcn::parse::parseToJson (Transformation transformation, use_protobuf_t)
 Converts a Transformation object to a JSON string using protobuf.
template<>
Result< Transformation > dcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a Transformation object using Protobuf.
template<>
Result< jsondcn::parse::parseToJson (TransformationRecord transformation_record, use_json_t)
 Converts a TransformationRecord object to a JSON object.
template<>
Result< std::string > dcn::parse::parseToJson (TransformationRecord transformation_record, use_protobuf_t)
 Converts a TransformationRecord object to a JSON string using Protobuf.
template<>
Result< TransformationRecord > dcn::parse::parseFromJson (json json_obj, use_json_t)
 Parses a JSON object to a TransformationRecord object.
template<>
Result< TransformationRecord > dcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a TransformationRecord object using Protobuf.