|
Clio
develop
The XRP Ledger API server.
|
This namespace contains everything to do with the ETL and ETL sources. More...
Namespaces | |
| namespace | model |
| This namespace contains the data models used by the ETL pipeline and its extensions. | |
Classes | |
| struct | AmendmentBlockHandlerInterface |
| The interface of a handler for amendment blocking. More... | |
| class | CacheLoader |
| Cache loading interface. More... | |
| struct | CacheLoaderInterface |
| An interface for the Cache Loader. More... | |
| struct | CacheLoaderSettings |
| Settings for the cache loader. More... | |
| struct | CacheUpdaterInterface |
| An interface for the Cache Updater. More... | |
| class | CorruptionDetector |
| A helper to notify Clio operator about a corruption in the DB. More... | |
| class | ETLService |
| This class is responsible for continuously extracting data from a p2p node, and writing that data to the databases. More... | |
| struct | ETLServiceInterface |
| This is a base class for any ETL service implementations. More... | |
| struct | ETLState |
| This class is responsible for fetching and storing the state of the ETL information, such as the network id. More... | |
| struct | ExtractorInterface |
| An interface for the Extractor. More... | |
| struct | InitialLoadObserverInterface |
| The interface for observing the initial ledger load. More... | |
| struct | LedgerFetcherInterface |
| An interface for LedgerFetcher. More... | |
| struct | LedgerPublisherInterface |
| The interface of a scheduler for the extraction process. More... | |
| class | LoadBalancer |
| This class is used to manage connections to transaction processing processes. More... | |
| class | LoadBalancerInterface |
| An interface for LoadBalancer. More... | |
| struct | LoadBalancerTag |
| A tag class to help identify LoadBalancer in templated code. More... | |
| struct | LoaderInterface |
| An interface for a ETL Loader. More... | |
| class | MonitorInterface |
| An interface for the monitor service An implementation of this service is responsible for periodically checking various datasources to detect newly ingested ledgers. More... | |
| struct | MonitorProviderInterface |
| An interface for providing Monitor instances. More... | |
| class | NetworkValidatedLedgers |
| This datastructure is used to keep track of the sequence of the most recent ledger validated by the network. More... | |
| class | NetworkValidatedLedgersInterface |
| An interface for NetworkValidatedLedgers. More... | |
| struct | RegistryInterface |
| The interface for a registry that can dispatch transactions and objects to extensions. More... | |
| struct | SchedulerInterface |
| The interface of a scheduler for the extraction process. More... | |
| class | SourceBase |
| Provides an implementation of a ETL source. More... | |
| struct | SystemState |
| Represents the state of the ETL subsystem. More... | |
| struct | TaskManagerInterface |
| An interface for the Task Manager. More... | |
| struct | TaskManagerProviderInterface |
| An interface for providing the Task Manager. More... | |
| class | ThreadSafeQueue |
| Generic thread-safe queue with a max capacity. More... | |
| class | WriterState |
| Implementation of WriterStateInterface that manages ETL writer state. More... | |
| class | WriterStateInterface |
| Interface for managing writer state in the ETL subsystem. More... | |
Concepts | |
| concept | SomeLoadBalancer |
| Concept for load balancer implementations. | |
Typedefs | |
| using | InitialLedgerLoadResult = std::expected<std::vector<std::string>, InitialLedgerLoadError> |
| The result type of the initial ledger load. | |
| using | SourcePtr = std::unique_ptr<SourceBase> |
| Owning pointer to an ETL source. | |
| using | SourceFactory |
| Factory function creating an ETL source from its configuration and hooks. | |
Enumerations | |
| enum class | InitialLedgerLoadError { Cancelled , Errored } |
| Represents possible errors for initial ledger load. More... | |
| enum class | LoaderError { AmendmentBlocked , WriteConflict } |
| Enumeration of possible errors that can occur during loading operations. More... | |
Functions | |
| CacheLoaderSettings | makeCacheLoaderSettings (util::config::ClioConfigDefinition const &config) |
| Create a CacheLoaderSettings object from a Config object. | |
| std::vector< xrpl::uint256 > | getMarkers (size_t numMarkers) |
| Partitions the uint256 keyspace into numMarkers partitions, each of equal size. | |
| ETLState | tag_invoke (boost::json::value_to_tag< ETLState >, boost::json::value const &jv) |
| Parse a boost::json::value into a ETLState. | |
| std::vector< MPTHolderData > | getMPTHolderFromTx (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Pull MPT data from TX via ETLService. | |
| std::vector< MPTokenIssuanceTransactionsData > | getMPTokenIssuanceTxsFromTx (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Pull MPT issuance transaction index data from a transaction. | |
| std::optional< MPTHolderData > | getMPTHolderFromObj (std::string const &key, std::string const &blob) |
| Pull MPT data from ledger object via loadInitialLedger. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNftokenModifyData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT URI change data from a NFToken Modify transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTokenMintData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT Token mint data from a transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTokenBurnData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT Token burn data from a transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTokenAcceptOfferData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT Token accept offer data from a transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTokenCancelOfferData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT Token cancel offer data from a transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTokenCreateOfferData (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Get the NFT Token create offer data from a transaction. | |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > | getNFTDataFromTx (xrpl::TxMeta const &txMeta, xrpl::STTx const &sttx) |
| Pull NFT data from TX via ETLService. | |
| std::vector< NFTsData > | getNFTDataFromObj (std::uint32_t seq, std::string const &key, std::string const &blob) |
| Pull NFT data from ledger object via loadInitialLedger. | |
| std::vector< NFTsData > | getUniqueNFTsDatas (std::vector< NFTsData > const &nfts) |
| Get the unique NFTs data from a vector of NFTsData happening in the same ledger. For example, if a NFT has both accept offer and burn happening in the same ledger,we only keep the final state of the NFT. | |
| SourcePtr | makeSource (util::config::ObjectView const &config, boost::asio::io_context &ioc, std::shared_ptr< feed::SubscriptionManagerInterface > subscriptions, std::shared_ptr< NetworkValidatedLedgersInterface > validatedLedgers, std::chrono::steady_clock::duration forwardingTimeout, SourceBase::OnConnectHook onConnect, SourceBase::OnDisconnectHook onDisconnect, SourceBase::OnLedgerClosedHook onLedgerClosed) |
| Create a source. | |
This namespace contains everything to do with the ETL and ETL sources.
| using etl::InitialLedgerLoadResult = std::expected<std::vector<std::string>, InitialLedgerLoadError> |
The result type of the initial ledger load.
| using etl::SourceFactory |
Factory function creating an ETL source from its configuration and hooks.
|
strong |
|
strong |
| std::vector< xrpl::uint256 > etl::getMarkers | ( | size_t | numMarkers | ) |
Partitions the uint256 keyspace into numMarkers partitions, each of equal size.
| numMarkers | Total markers to partition for |
| std::optional< MPTHolderData > etl::getMPTHolderFromObj | ( | std::string const & | key, |
| std::string const & | blob ) |
Pull MPT data from ledger object via loadInitialLedger.
| key | The owner key |
| blob | Object data as blob |
| std::vector< MPTHolderData > etl::getMPTHolderFromTx | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Pull MPT data from TX via ETLService.
| txMeta | Transaction metadata |
| sttx | The transaction (unused in current implementation) |
| std::vector< MPTokenIssuanceTransactionsData > etl::getMPTokenIssuanceTxsFromTx | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Pull MPT issuance transaction index data from a transaction.
| txMeta | Transaction metadata. |
| sttx | The transaction. |
| std::vector< NFTsData > etl::getNFTDataFromObj | ( | std::uint32_t | seq, |
| std::string const & | key, | ||
| std::string const & | blob ) |
Pull NFT data from ledger object via loadInitialLedger.
| seq | The ledger sequence to pull for |
| key | The owner key |
| blob | Object data as blob |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTDataFromTx | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Pull NFT data from TX via ETLService.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTokenAcceptOfferData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT Token accept offer data from a transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTokenBurnData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT Token burn data from a transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTokenCancelOfferData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT Token cancel offer data from a transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTokenCreateOfferData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT Token create offer data from a transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNFTokenMintData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT Token mint data from a transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
| std::pair< std::vector< NFTTransactionsData >, std::optional< NFTsData > > etl::getNftokenModifyData | ( | xrpl::TxMeta const & | txMeta, |
| xrpl::STTx const & | sttx ) |
Get the NFT URI change data from a NFToken Modify transaction.
| txMeta | Transaction metadata |
| sttx | The transaction |
Get the unique NFTs data from a vector of NFTsData happening in the same ledger. For example, if a NFT has both accept offer and burn happening in the same ledger,we only keep the final state of the NFT.
| nfts | The NFTs data to filter, happening in the same ledger |
|
nodiscard |
Create a CacheLoaderSettings object from a Config object.
| config | The configuration object |
|
nodiscard |
Create a source.
| config | The configuration to use |
| ioc | The io_context to run on |
| subscriptions | Subscription manager |
| validatedLedgers | The network validated ledgers data structure |
| forwardingTimeout | The timeout for forwarding to rippled |
| onConnect | The hook to call on connect |
| onDisconnect | The hook to call on disconnect |
| onLedgerClosed | The hook to call on ledger closed. This is called when a ledger is closed and the source is set as forwarding. |