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
35
37 std::filesystem::path registry_db;
38
39 std::filesystem::path events_db;
40
41 std::filesystem::path feed_db;
42 std::filesystem::path feed_archive_root;
43 unsigned int events_chain_id = 1;
44 unsigned int events_hot_window_days = 90;
45 unsigned int events_projector_interval_ms = 200;
46 unsigned int events_archive_interval_ms = 30000;
47 unsigned int events_reorg_window_blocks = 2048;
50 unsigned int events_dead_letter_sweep_ms = 60000;
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:45
unsigned int events_hot_window_days
Definition config.hpp:44
std::filesystem::path storage_path
Definition config.hpp:28
std::filesystem::path logs_path
Definition config.hpp:26
IngestionConfig chain_ingestion
Definition config.hpp:34
unsigned int events_dead_letter_sweep_ms
Definition config.hpp:50
std::filesystem::path feed_db
Definition config.hpp:41
unsigned int events_archive_interval_ms
Definition config.hpp:46
std::filesystem::path feed_archive_root
Definition config.hpp:42
unsigned int events_outbox_retention_days
Definition config.hpp:48
std::filesystem::path resources_path
Definition config.hpp:27
bool verbose
Definition config.hpp:30
unsigned int events_reorg_window_blocks
Definition config.hpp:47
std::filesystem::path registry_db
Definition config.hpp:37
unsigned int events_projector_retry_attempts
Definition config.hpp:49
std::filesystem::path events_db
Definition config.hpp:39
std::uint32_t port
Definition config.hpp:32
unsigned int events_chain_id
Definition config.hpp:43
unsigned int registry_wal_sync_ms
Definition config.hpp:36
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