Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Core.hpp
1#pragma once
2
3#include "data/BackendInterface.hpp"
4#include "etl/Models.hpp"
5#include "util/log/Logger.hpp"
6
7#include <xrpl/basics/base_uint.h>
8
9#include <cstdint>
10#include <memory>
11
12namespace etl::impl {
13
14class CoreExt {
15 std::shared_ptr<BackendInterface> backend_;
16
17 util::Logger log_{"ETL"};
18
19public:
20 CoreExt(std::shared_ptr<BackendInterface> backend);
21
22 void
23 onLedgerData(model::LedgerData const& data);
24
25 void
26 onInitialData(model::LedgerData const& data);
27
28 void
29 onInitialObject(uint32_t seq, model::Object const& obj);
30
31 void
32 onObject(uint32_t seq, model::Object const& obj);
33
34private:
35 void
36 insertTransactions(model::LedgerData const& data);
37};
38
39} // namespace etl::impl
A simple thread-safe logger for the channel specified in the constructor.
Definition Logger.hpp:77
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:56
Represents an entire ledger diff worth of transactions and objects.
Definition Models.hpp:124
Represents a single object on the ledger.
Definition Models.hpp:86