8#include <spdlog/spdlog.h>
27 asio::awaitable<std::expected<chain::Address, pt::PTDeployError>>
deployConnector(
30 ConnectorRecord connector,
31 const std::filesystem::path & storage_path,
32 bool register_in_registry =
true,
33 bool persist_json =
true);
37 TransformationRecord transformation,
38 const std::filesystem::path & storage_path,
39 bool register_in_registry =
true,
40 bool persist_json =
true);
41 asio::awaitable<std::expected<chain::Address, pt::PTDeployError>>
deployCondition(
44 ConditionRecord condition,
45 const std::filesystem::path & storage_path,
46 bool register_in_registry =
true,
47 bool persist_json =
true);
52 const std::filesystem::path & storage_path,
58 const std::string &
name,
59 const std::filesystem::path & storage_path);
63 const std::string &
name,
64 const std::filesystem::path & storage_path);
68 const std::string &
name,
69 const std::filesystem::path & storage_path);
75 const std::filesystem::path & storage_path,
76 std::size_t registry_batch_size = 1000);
80 const std::filesystem::path & storage_path,
81 std::size_t registry_batch_size = 5000);
85 const std::filesystem::path & storage_path,
86 std::size_t registry_batch_size = 5000);
Definition registry.hpp:40
std::string name
Definition ingestion.cpp:29
LoaderBatchConfig batch_config
Definition loader.cpp:40
asio::awaitable< bool > ensureTransformationDeployed(evm::EVM &evm, storage::Registry ®istry, const std::string &name, const std::filesystem::path &storage_path)
Definition loader.cpp:1188
asio::awaitable< bool > ensureConnectorDeployed(evm::EVM &evm, storage::Registry ®istry, const std::string &name, const std::filesystem::path &storage_path)
Definition loader.cpp:1285
bool ensurePTBuildVersion(const std::filesystem::path &storage_path)
Definition loader.cpp:404
asio::awaitable< bool > ensureConditionDeployed(evm::EVM &evm, storage::Registry ®istry, const std::string &name, const std::filesystem::path &storage_path)
Definition loader.cpp:1237
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > deployTransformation(evm::EVM &evm, storage::Registry ®istry, TransformationRecord transformation, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
Definition loader.cpp:898
asio::awaitable< bool > loadStoredConditions(evm::EVM &evm, storage::Registry ®istry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=5000)
Definition loader.cpp:1118
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > deployConnector(evm::EVM &evm, storage::Registry ®istry, ConnectorRecord connector, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
Definition loader.cpp:877
asio::awaitable< bool > loadStoredTransformations(evm::EVM &evm, storage::Registry ®istry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=5000)
Definition loader.cpp:1048
asio::awaitable< bool > loadStoredConnectors(evm::EVM &evm, storage::Registry ®istry, const std::filesystem::path &storage_path, std::size_t registry_batch_size=1000)
Definition loader.cpp:938
asio::awaitable< std::expected< chain::Address, pt::PTDeployError > > deployCondition(evm::EVM &evm, storage::Registry ®istry, ConditionRecord condition, const std::filesystem::path &storage_path, bool register_in_registry=true, bool persist_json=true)
Definition loader.cpp:918
asio::awaitable< bool > importJsonStorageToDatabase(evm::EVM &evm, storage::Registry ®istry, const std::filesystem::path &storage_path, LoaderBatchConfig batch_config={})
Definition loader.cpp:1297
std::size_t transformations
Definition loader.hpp:21
std::size_t conditions
Definition loader.hpp:22
std::size_t connectors
Definition loader.hpp:20