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
dcn::loader Namespace Reference

Functions

bool ensurePTBuildVersion (const std::filesystem::path &storage_path)
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > 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 > > 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 > > deployCondition (evm::EVM &evm, registry::Registry &registry, ConditionRecord condition, const std::filesystem::path &storage_path, bool persist_json=true)
asio::awaitable< bool > importJsonStorageToDatabase (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > ensureTransformationDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > ensureConditionDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > ensureConnectorDeployed (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path)
asio::awaitable< bool > loadStoredConnectors (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > loadStoredConditions (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > loadStoredTransformations (evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
asio::awaitable< bool > ensureTransformationImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > ensureConditionImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > ensureConnectorImported (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, JsonImportContext &context)
asio::awaitable< bool > ensureConnectorDeployedImpl (evm::EVM &evm, registry::Registry &registry, const std::string &name, const std::filesystem::path &storage_path, ConnectorEnsureContext &context)

Function Documentation

◆ deployCondition()

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 )

◆ deployConnector()

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 )

◆ deployTransformation()

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 )

◆ ensureConditionDeployed()

asio::awaitable< bool > dcn::loader::ensureConditionDeployed ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path )

◆ ensureConditionImported()

asio::awaitable< bool > dcn::loader::ensureConditionImported ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path,
JsonImportContext & context )

◆ ensureConnectorDeployed()

asio::awaitable< bool > dcn::loader::ensureConnectorDeployed ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path )

◆ ensureConnectorDeployedImpl()

asio::awaitable< bool > dcn::loader::ensureConnectorDeployedImpl ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path,
ConnectorEnsureContext & context )

◆ ensureConnectorImported()

asio::awaitable< bool > dcn::loader::ensureConnectorImported ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path,
JsonImportContext & context )

◆ ensurePTBuildVersion()

bool dcn::loader::ensurePTBuildVersion ( const std::filesystem::path & storage_path)

◆ ensureTransformationDeployed()

asio::awaitable< bool > dcn::loader::ensureTransformationDeployed ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path )

◆ ensureTransformationImported()

asio::awaitable< bool > dcn::loader::ensureTransformationImported ( evm::EVM & evm,
registry::Registry & registry,
const std::string & name,
const std::filesystem::path & storage_path,
JsonImportContext & context )

◆ importJsonStorageToDatabase()

asio::awaitable< bool > dcn::loader::importJsonStorageToDatabase ( evm::EVM & evm,
registry::Registry & registry,
const std::filesystem::path & storage_path )

◆ loadStoredConditions()

asio::awaitable< bool > dcn::loader::loadStoredConditions ( evm::EVM & evm,
registry::Registry & registry,
const std::filesystem::path & storage_path )

◆ loadStoredConnectors()

asio::awaitable< bool > dcn::loader::loadStoredConnectors ( evm::EVM & evm,
registry::Registry & registry,
const std::filesystem::path & storage_path )

◆ loadStoredTransformations()

asio::awaitable< bool > dcn::loader::loadStoredTransformations ( evm::EVM & evm,
registry::Registry & registry,
const std::filesystem::path & storage_path )