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
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4
5#include "native.h"
6#include <asio.hpp>
7#include <spdlog/spdlog.h>
8
9#include "pt.hpp"
10#include "registry.hpp"
11#include "parser.hpp"
12#include "file.hpp"
13#include "evm.hpp"
14
15namespace dcn::loader
16{
17 asio::awaitable<std::expected<evm::Address, evm::DeployError>> deployParticle(evm::EVM & evm, registry::Registry & registry, ParticleRecord particle, const std::filesystem::path & storage_path);
18 asio::awaitable<std::expected<evm::Address, evm::DeployError>> deployFeature(evm::EVM & evm, registry::Registry & registry, FeatureRecord feature, const std::filesystem::path & storage_path);
19 asio::awaitable<std::expected<evm::Address, evm::DeployError>> deployTransformation(evm::EVM & evm, registry::Registry & registry, TransformationRecord transformation, const std::filesystem::path & storage_path);
20 asio::awaitable<std::expected<evm::Address, evm::DeployError>> deployCondition(evm::EVM & evm, registry::Registry & registry, ConditionRecord condition, const std::filesystem::path & storage_path);
21
22
23 asio::awaitable<bool> loadStoredParticles(evm::EVM & evm, registry::Registry & registry, const std::filesystem::path & storage_path);
24 asio::awaitable<bool> loadStoredConditions(evm::EVM & evm, registry::Registry & registry, const std::filesystem::path & storage_path);
25 asio::awaitable<bool> loadStoredTransformations(evm::EVM & evm, registry::Registry & registry, const std::filesystem::path & storage_path);
26 asio::awaitable<bool> loadStoredFeatures(evm::EVM & evm, registry::Registry & registry, const std::filesystem::path & storage_path);
27}
Definition evm.hpp:93
A class that represents a registry of features, transformations, and conditions.
Definition registry.hpp:28
Definition loader.hpp:16
asio::awaitable< std::expected< evm::Address, evm::DeployError > > deployParticle(evm::EVM &evm, registry::Registry &registry, ParticleRecord particle, const std::filesystem::path &storage_path)
Definition loader.cpp:129
asio::awaitable< bool > loadStoredConditions(evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
Definition loader.cpp:747
asio::awaitable< std::expected< evm::Address, evm::DeployError > > deployFeature(evm::EVM &evm, registry::Registry &registry, FeatureRecord feature, const std::filesystem::path &storage_path)
Definition loader.cpp:263
asio::awaitable< bool > loadStoredFeatures(evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
Definition loader.cpp:689
asio::awaitable< std::expected< evm::Address, evm::DeployError > > deployCondition(evm::EVM &evm, registry::Registry &registry, ConditionRecord condition, const std::filesystem::path &storage_path)
Definition loader.cpp:523
asio::awaitable< bool > loadStoredTransformations(evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
Definition loader.cpp:718
asio::awaitable< std::expected< evm::Address, evm::DeployError > > deployTransformation(evm::EVM &evm, registry::Registry &registry, TransformationRecord transformation, const std::filesystem::path &storage_path)
Definition loader.cpp:393
asio::awaitable< bool > loadStoredParticles(evm::EVM &evm, registry::Registry &registry, const std::filesystem::path &storage_path)
Definition loader.cpp:653