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
loader.cpp File Reference
#include "loader.hpp"
#include "utils.hpp"
#include <algorithm>
#include <array>
#include <cstdlib>
#include <sstream>
#include <string_view>
#include <type_traits>

Namespaces

namespace  dcn
namespace  dcn::loader

Functions

asio::awaitable< bool > dcn::loader::ensureTransformationImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > dcn::loader::ensureConditionImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > dcn::loader::ensureConnectorImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > dcn::loader::ensureConnectorDeployedImpl (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, ConnectorEnsureContext &context)
bool dcn::loader::ensurePTBuildVersion (const std::filesystem::path &storage_path)
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployConnector (evm::EVM &evm, registry::Registry &registry, ConnectorRecord connector, const std::filesystem::path &storage_path, bool persist_json=true)
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployTransformation (evm::EVM &evm, registry::Registry &registry, TransformationRecord transformation, const std::filesystem::path &storage_path, bool persist_json=true)
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployCondition (evm::EVM &evm, registry::Registry &registry, ConditionRecord condition, const std::filesystem::path &storage_path, bool persist_json=true)
asio::awaitable< bool > dcn::loader::loadStoredConnectors (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::loadStoredTransformations (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::loadStoredConditions (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::ensureTransformationDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::ensureConditionDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::ensureConnectorDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > dcn::loader::importJsonStorageToDatabase (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)