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.cpp File Reference
#include <format>
#include "crypto.hpp"
#include "transformation.hpp"
#include "solidity_identifier.hpp"

Namespaces

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

Functions

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 condition 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 condition 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 condition object.
template<>
Result< TransformationRecord > dcn::parse::parseFromJson (std::string json_str, use_protobuf_t)
 Parses a JSON string to a condition object using Protobuf.