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
config.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3#include <filesystem>
4#include <optional>
5#include <string>
6
7namespace dcn::config
8{
10 {
11 bool enabled = false;
13
14 std::string rpc_url;
15 std::string registry_address;
16 std::optional<std::uint64_t> start_block = std::nullopt;
17
18 unsigned int poll_interval_ms;
19 unsigned int confirmations;
20 unsigned int block_batch_size;
21 };
22
23 struct Config
24 {
25 std::filesystem::path bin_path;
26 std::filesystem::path logs_path;
27 std::filesystem::path resources_path;
28 std::filesystem::path storage_path;
29
30 bool verbose;
31
32 std::uint32_t port;
33
37
39
41 std::filesystem::path registry_db;
42
43 std::filesystem::path events_db;
44 std::filesystem::path events_archive_root;
45 unsigned int events_chain_id = 1;
46 unsigned int events_hot_window_days = 90;
47 unsigned int events_projector_interval_ms = 200;
48 unsigned int events_archive_interval_ms = 30000;
49 unsigned int events_reorg_window_blocks = 2048;
51 };
52}
Definition config.hpp:8
Definition config.hpp:24
std::filesystem::path bin_path
Definition config.hpp:25
unsigned int events_projector_interval_ms
Definition config.hpp:47
unsigned int events_hot_window_days
Definition config.hpp:46
std::filesystem::path storage_path
Definition config.hpp:28
std::filesystem::path logs_path
Definition config.hpp:26
IngestionConfig chain_ingestion
Definition config.hpp:38
unsigned int events_archive_interval_ms
Definition config.hpp:48
unsigned int events_outbox_retention_days
Definition config.hpp:50
unsigned int loader_batch_connectors
Definition config.hpp:34
std::filesystem::path resources_path
Definition config.hpp:27
bool verbose
Definition config.hpp:30
unsigned int events_reorg_window_blocks
Definition config.hpp:49
std::filesystem::path registry_db
Definition config.hpp:41
std::filesystem::path events_db
Definition config.hpp:43
std::uint32_t port
Definition config.hpp:32
std::filesystem::path events_archive_root
Definition config.hpp:44
unsigned int events_chain_id
Definition config.hpp:45
unsigned int loader_batch_transformations
Definition config.hpp:35
unsigned int loader_batch_conditions
Definition config.hpp:36
unsigned int registry_wal_sync_ms
Definition config.hpp:40
Definition config.hpp:10
std::string rpc_url
Definition config.hpp:14
std::string registry_address
Definition config.hpp:15
bool use_local_evm_source
Definition config.hpp:12
unsigned int block_batch_size
Definition config.hpp:20
std::optional< std::uint64_t > start_block
Definition config.hpp:16
unsigned int poll_interval_ms
Definition config.hpp:18
unsigned int confirmations
Definition config.hpp:19
bool enabled
Definition config.hpp:11