12#include <nlohmann/json_fwd.hpp>
19 using RpcCall = std::function<std::optional<nlohmann::json>(
const std::string & rpc_url,
const nlohmann::json & request)>;
39 std::optional<std::size_t>
max_polls = std::nullopt;
Definition address.hpp:17
evmc::address Address
Definition address.hpp:18
std::function< std::optional< nlohmann::json >(const std::string &rpc_url, const nlohmann::json &request)> RpcCall
Definition ingestion.hpp:19
Definition ingestion.hpp:22
std::uint64_t block_batch_size
Definition ingestion.hpp:31
bool enabled
Definition ingestion.hpp:23
chain::Address registry_address
Definition ingestion.hpp:26
std::uint64_t poll_interval_ms
Definition ingestion.hpp:29
std::optional< std::uint64_t > start_block
Definition ingestion.hpp:28
std::filesystem::path storage_path
Definition ingestion.hpp:33
std::string rpc_url
Definition ingestion.hpp:25
std::uint64_t confirmations
Definition ingestion.hpp:30
Definition ingestion.hpp:37
bool skip_sleep
Definition ingestion.hpp:40
std::optional< std::size_t > max_polls
Definition ingestion.hpp:39
RpcCall rpc_call
Definition ingestion.hpp:38