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.hpp File Reference
#include <cstddef>
#include <fstream>
#include "native.h"
#include <asio.hpp>
#include <spdlog/spdlog.h>
#include "pt.hpp"
#include "storage.hpp"
#include "parser.hpp"
#include "evm.hpp"
#include "chain.hpp"

Go to the source code of this file.

Classes

struct  dcn::loader::LoaderBatchConfig
 

Namespaces

namespace  dcn
 
namespace  dcn::loader
 

Functions

bool dcn::loader::ensurePTBuildVersion (const std::filesystem::path &storage_path)
 
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployConnector (evm::EVM &evm, storage::Registry &registry, ConnectorRecord connector, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
 
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployTransformation (evm::EVM &evm, storage::Registry &registry, TransformationRecord transformation, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
 
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > dcn::loader::deployCondition (evm::EVM &evm, storage::Registry &registry, ConditionRecord condition, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
 
asio::awaitable< bool > dcn::loader::importJsonStorageToDatabase (evm::EVM &evm, storage::Registry &registry, const std::filesystem::path &storage_path, LoaderBatchConfig batch_config={})
 
asio::awaitable< bool > dcn::loader::ensureTransformationDeployed (evm::EVM &evm, storage::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
 
asio::awaitable< bool > dcn::loader::ensureConditionDeployed (evm::EVM &evm, storage::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
 
asio::awaitable< bool > dcn::loader::ensureConnectorDeployed (evm::EVM &evm, storage::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
 
asio::awaitable< bool > dcn::loader::loadStoredConnectors (evm::EVM &evm, storage::Registry &registry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=1000)
 
asio::awaitable< bool > dcn::loader::loadStoredConditions (evm::EVM &evm, storage::Registry &registry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=5000)
 
asio::awaitable< bool > dcn::loader::loadStoredTransformations (evm::EVM &evm, storage::Registry &registry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=5000)