|
rippled
|
Concepts | |
| concept | ValidConstructSTArgs |
| concept | some_integral_constant |
Typedefs | |
| using | seed_pair = std::pair< std::uint64_t, std::uint64_t > |
| template<class Engine , class Result = typename Engine::result_type> | |
| using | is_engine = std::is_invocable_r< Result, Engine > |
| template<class T > | |
| using | test_hardened_unordered_set = std::unordered_set< T, hardened_hash<> > |
| template<class T > | |
| using | test_hardened_unordered_map = std::unordered_map< T, int, hardened_hash<> > |
| template<class T > | |
| using | test_hardened_unordered_multiset = std::unordered_multiset< T, hardened_hash<> > |
| template<class T > | |
| using | test_hardened_unordered_multimap = std::unordered_multimap< T, int, hardened_hash<> > |
| using | clock_type = std::chrono::steady_clock |
| using | response_type = boost::beast::http::response< boost::beast::http::string_body > |
Enumerations | |
| enum class | PaymentSpecialCase { none , final , extra } |
| enum class | TableType { Ledgers , Transactions , AccountTransactions } |
Functions | |
| template<bool = true> | |
| seed_pair | make_seed_pair () noexcept |
| template<class = void> | |
| boost::thread_specific_ptr< detail::LocalValues > & | getLocalValues () |
| void | spin_pause () noexcept |
| Inform the processor that we are in a tight spin-wait loop. | |
| template<class T , class... Args> | |
| STVar | make_stvar (Args &&... args) |
| bool | operator== (STVar const &lhs, STVar const &rhs) |
| bool | operator!= (STVar const &lhs, STVar const &rhs) |
| std::map< std::string, VoteBehavior > const & | supportedAmendments () |
| Amendments that this server supports and the default voting behavior. | |
| std::size_t | numDownVotedAmendments () |
| Amendments that this server won't vote for by default. | |
| std::size_t | numUpVotedAmendments () |
| Amendments that this server will vote for by default. | |
| constexpr std::uint32_t | make_hash_prefix (char a, char b, char c) |
| SlabAllocatorSet< SHAMapItem > | slabber ({ { 128, megabytes(std::size_t(60)) }, { 192, megabytes(std::size_t(46)) }, { 272, megabytes(std::size_t(60)) }, { 384, megabytes(std::size_t(56)) }, { 564, megabytes(std::size_t(40)) }, { 772, megabytes(std::size_t(46)) }, { 1052, megabytes(std::size_t(60)) }, }) |
| template<class V , class N , class = std::enable_if_t< std::is_same_v<std::remove_cv_t<N>, SLE> && std::is_base_of_v<ReadView, V>>> | |
| bool | internalDirNext (V &view, uint256 const &root, std::shared_ptr< N > &page, unsigned int &index, uint256 &entry) |
| template<class V , class N , class = std::enable_if_t< std::is_same_v<std::remove_cv_t<N>, SLE> && std::is_base_of_v<ReadView, V>>> | |
| bool | internalDirFirst (V &view, uint256 const &root, std::shared_ptr< N > &page, unsigned int &index, uint256 &entry) |
| STAmount | as_amount (Rate const &rate) |
| void | copy_uint32 (std::uint8_t *out, std::uint32_t v) |
| uint256 | deriveDeterministicRootKey (Seed const &seed) |
| constexpr char const * | realValidatorContents () |
| std::string | configContents (std::string const &dbPath, std::string const &validatorsFile) |
| std::string | valFileContents () |
| std::uint32_t | owned_count_of (ReadView const &view, AccountID const &id, LedgerEntryType type) |
| void | owned_count_helper (test::jtx::Env &env, AccountID const &id, LedgerEntryType type, std::uint32_t value) |
| template<class Cond , class... Args> | |
| void | require_args (test::jtx::requires_t &vec, Cond const &cond, Args const &... args) |
| template<class Rep , class Period > | |
| std::ostream & | pretty_time (std::ostream &os, std::chrono::duration< Rep, Period > d) |
| template<class Period , class Rep > | |
| std::string | fmtdur (std::chrono::duration< Period, Rep > const &d) |
| std::string | fmtdur (typename clock_type::duration const &d) |
| Number | reduceOffer (auto const &amount) |
| Number::rounding_mode | getLPTokenRounding (IsDeposit isDeposit) |
| Number::rounding_mode | getAssetRounding (IsDeposit isDeposit) |
| Number | computeRaisedRate (Number const &periodicRate, std::uint32_t paymentsRemaining) |
| Number | computePaymentFactor (Number const &periodicRate, std::uint32_t paymentsRemaining) |
| Number | loanPeriodicPayment (Number const &principalOutstanding, Number const &periodicRate, std::uint32_t paymentsRemaining) |
| Number | loanPeriodicPayment (Number const &principalOutstanding, TenthBips32 interestRate, std::uint32_t paymentInterval, std::uint32_t paymentsRemaining) |
| Number | loanPrincipalFromPeriodicPayment (Number const &periodicPayment, Number const &periodicRate, std::uint32_t paymentsRemaining) |
| std::pair< Number, Number > | computeInterestAndFeeParts (Number const &interest, TenthBips16 managementFeeRate) |
| std::pair< Number, Number > | computeInterestAndFeeParts (Asset const &asset, Number const &interest, TenthBips16 managementFeeRate, std::int32_t loanScale) |
| Number | loanLatePaymentInterest (Number const &principalOutstanding, TenthBips32 lateInterestRate, NetClock::time_point parentCloseTime, std::uint32_t nextPaymentDueDate) |
| Number | loanAccruedInterest (Number const &principalOutstanding, Number const &periodicRate, NetClock::time_point parentCloseTime, std::uint32_t startDate, std::uint32_t prevPaymentDate, std::uint32_t paymentInterval) |
| template<class NumberProxy , class UInt32Proxy , class UInt32OptionalProxy > | |
| LoanPaymentParts | doPayment (ExtendedPaymentComponents const &payment, NumberProxy &totalValueOutstandingProxy, NumberProxy &principalOutstandingProxy, NumberProxy &managementFeeOutstandingProxy, UInt32Proxy &paymentRemainingProxy, UInt32Proxy &prevPaymentDateProxy, UInt32OptionalProxy &nextDueDateProxy, std::uint32_t paymentInterval) |
| Expected< LoanPaymentParts, TER > | tryOverpayment (Asset const &asset, std::int32_t loanScale, ExtendedPaymentComponents const &overpaymentComponents, Number &totalValueOutstanding, Number &principalOutstanding, Number &managementFeeOutstanding, Number &periodicPayment, TenthBips32 interestRate, std::uint32_t paymentInterval, Number const &periodicRate, std::uint32_t paymentRemaining, std::uint32_t prevPaymentDate, std::optional< std::uint32_t > nextDueDate, TenthBips16 const managementFeeRate, beast::Journal j) |
| template<class NumberProxy > | |
| Expected< LoanPaymentParts, TER > | doOverpayment (Asset const &asset, std::int32_t loanScale, ExtendedPaymentComponents const &overpaymentComponents, NumberProxy &totalValueOutstandingProxy, NumberProxy &principalOutstandingProxy, NumberProxy &managementFeeOutstandingProxy, NumberProxy &periodicPaymentProxy, TenthBips32 const interestRate, std::uint32_t const paymentInterval, Number const &periodicRate, std::uint32_t const paymentRemaining, std::uint32_t const prevPaymentDate, std::optional< std::uint32_t > const nextDueDate, TenthBips16 const managementFeeRate, beast::Journal j) |
| Expected< ExtendedPaymentComponents, TER > | computeLatePayment (Asset const &asset, ApplyView const &view, Number const &principalOutstanding, std::int32_t nextDueDate, ExtendedPaymentComponents const &periodic, TenthBips32 lateInterestRate, std::int32_t loanScale, Number const &latePaymentFee, STAmount const &amount, TenthBips16 managementFeeRate, beast::Journal j) |
| Expected< ExtendedPaymentComponents, TER > | computeFullPayment (Asset const &asset, ApplyView &view, Number const &principalOutstanding, Number const &managementFeeOutstanding, Number const &periodicPayment, std::uint32_t paymentRemaining, std::uint32_t prevPaymentDate, std::uint32_t const startDate, std::uint32_t const paymentInterval, TenthBips32 const closeInterestRate, std::int32_t loanScale, Number const &totalInterestOutstanding, Number const &periodicRate, Number const &closePaymentFee, STAmount const &amount, TenthBips16 managementFeeRate, beast::Journal j) |
| PaymentComponents | computePaymentComponents (Asset const &asset, std::int32_t scale, Number const &totalValueOutstanding, Number const &principalOutstanding, Number const &managementFeeOutstanding, Number const &periodicPayment, Number const &periodicRate, std::uint32_t paymentRemaining, TenthBips16 managementFeeRate) |
| ExtendedPaymentComponents | computeOverpaymentComponents (Asset const &asset, int32_t const loanScale, Number const &overpayment, TenthBips32 const overpaymentInterestRate, TenthBips32 const overpaymentFeeRate, TenthBips16 const managementFeeRate) |
| static constexpr std::pair< bool, std::uint64_t > | sumOfFirstSquares (std::size_t xIn) |
| template<class T > | |
| std::vector< T > | getTrustLineItems (AccountID const &accountID, ReadView const &view, LineDirection direction=LineDirection::outgoing) |
| static std::string | to_string (TableType type) |
| to_string Returns the name of a table according to its TableType. | |
| DatabasePairValid | makeLedgerDBs (Config const &config, DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup, beast::Journal j) |
| makeLedgerDBs Opens ledger and transactions databases. | |
| std::optional< LedgerIndex > | getMinLedgerSeq (soci::session &session, TableType type) |
| getMinLedgerSeq Returns minimum ledger sequence in given table. | |
| std::optional< LedgerIndex > | getMaxLedgerSeq (soci::session &session, TableType type) |
| getMaxLedgerSeq Returns maximum ledger sequence in given table. | |
| void | deleteByLedgerSeq (soci::session &session, TableType type, LedgerIndex ledgerSeq) |
| deleteByLedgerSeq Deletes all entries in given table for the ledger with given sequence. | |
| void | deleteBeforeLedgerSeq (soci::session &session, TableType type, LedgerIndex ledgerSeq) |
| deleteBeforeLedgerSeq Deletes all entries in given table for the ledgers with given sequence and all sequences below it. | |
| std::size_t | getRows (soci::session &session, TableType type) |
| getRows Returns number of rows in given table. | |
| RelationalDatabase::CountMinMax | getRowsMinMax (soci::session &session, TableType type) |
| getRowsMinMax Returns minimum ledger sequence, maximum ledger sequence and total number of rows in given table. | |
| bool | saveValidatedLedger (DatabaseCon &ldgDB, std::unique_ptr< DatabaseCon > const &txnDB, Application &app, std::shared_ptr< Ledger const > const &ledger, bool current) |
| saveValidatedLedger Saves ledger into database. | |
| static std::optional< LedgerHeader > | getLedgerInfo (soci::session &session, std::string const &sqlSuffix, beast::Journal j) |
| getLedgerInfo Returns the info of the ledger retrieved from the database by using the provided SQL query suffix. | |
| std::optional< LedgerHeader > | getLedgerInfoByIndex (soci::session &session, LedgerIndex ledgerSeq, beast::Journal j) |
| getLedgerInfoByIndex Returns ledger by its sequence. | |
| std::optional< LedgerHeader > | getNewestLedgerInfo (soci::session &session, beast::Journal j) |
| getNewestLedgerInfo Returns info of newest saved ledger. | |
| std::optional< LedgerHeader > | getLimitedOldestLedgerInfo (soci::session &session, LedgerIndex ledgerFirstIndex, beast::Journal j) |
| getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greater or equal to given. | |
| std::optional< LedgerHeader > | getLimitedNewestLedgerInfo (soci::session &session, LedgerIndex ledgerFirstIndex, beast::Journal j) |
| getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greater or equal to given. | |
| std::optional< LedgerHeader > | getLedgerInfoByHash (soci::session &session, uint256 const &ledgerHash, beast::Journal j) |
| getLedgerInfoByHash Returns info of ledger with given hash. | |
| uint256 | getHashByIndex (soci::session &session, LedgerIndex ledgerIndex) |
| getHashByIndex Returns hash of ledger with given sequence. | |
| std::optional< LedgerHashPair > | getHashesByIndex (soci::session &session, LedgerIndex ledgerIndex, beast::Journal j) |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence. | |
| std::map< LedgerIndex, LedgerHashPair > | getHashesByIndex (soci::session &session, LedgerIndex minSeq, LedgerIndex maxSeq, beast::Journal j) |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with sequences from given minimum limit to given maximum limit. | |
| std::pair< std::vector< std::shared_ptr< Transaction > >, int > | getTxHistory (soci::session &session, Application &app, LedgerIndex startIndex, int quantity) |
| getTxHistory Returns given number of most recent transactions starting from given number of entry. | |
| static std::string | transactionsSQL (Application &app, std::string selection, RelationalDatabase::AccountTxOptions const &options, bool descending, bool binary, bool count, beast::Journal j) |
| transactionsSQL Returns a SQL query for selecting the oldest or newest transactions in decoded or binary form for the account that matches the given criteria starting from the provided offset. | |
| static std::pair< RelationalDatabase::AccountTxs, int > | getAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDatabase::AccountTxOptions const &options, bool descending, beast::Journal j) |
| getAccountTxs Returns the oldest or newest transactions for the account that matches the given criteria starting from the provided offset. | |
| std::pair< RelationalDatabase::AccountTxs, int > | getOldestAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDatabase::AccountTxOptions const &options, beast::Journal j) |
| getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset. | |
| std::pair< RelationalDatabase::AccountTxs, int > | getNewestAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDatabase::AccountTxOptions const &options, beast::Journal j) |
| getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset. | |
| static std::pair< std::vector< RelationalDatabase::txnMetaLedgerType >, int > | getAccountTxsB (soci::session &session, Application &app, RelationalDatabase::AccountTxOptions const &options, bool descending, beast::Journal j) |
| getAccountTxsB Returns the oldest or newest transactions in binary form for the account that matches given criteria starting from the provided offset. | |
| std::pair< std::vector< RelationalDatabase::txnMetaLedgerType >, int > | getOldestAccountTxsB (soci::session &session, Application &app, RelationalDatabase::AccountTxOptions const &options, beast::Journal j) |
| getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset. | |
| std::pair< std::vector< RelationalDatabase::txnMetaLedgerType >, int > | getNewestAccountTxsB (soci::session &session, Application &app, RelationalDatabase::AccountTxOptions const &options, beast::Journal j) |
| getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset. | |
| static std::pair< std::optional< RelationalDatabase::AccountTxMarker >, int > | accountTxPage (soci::session &session, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDatabase::AccountTxPageOptions const &options, std::uint32_t page_length, bool forward) |
| accountTxPage Searches for the oldest or newest transactions for the account that matches the given criteria starting from the provided marker and invokes the callback parameter for each found transaction. | |
| std::pair< std::optional< RelationalDatabase::AccountTxMarker >, int > | oldestAccountTxPage (soci::session &session, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDatabase::AccountTxPageOptions const &options, std::uint32_t page_length) |
| oldestAccountTxPage Searches oldest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction. | |
| std::pair< std::optional< RelationalDatabase::AccountTxMarker >, int > | newestAccountTxPage (soci::session &session, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDatabase::AccountTxPageOptions const &options, std::uint32_t page_length) |
| newestAccountTxPage Searches newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction. | |
| std::variant< RelationalDatabase::AccountTx, TxSearched > | getTransaction (soci::session &session, Application &app, uint256 const &id, std::optional< ClosedInterval< uint32_t > > const &range, error_code_i &ec) |
| getTransaction Returns transaction with given hash. | |
| bool | dbHasSpace (soci::session &session, Config const &config, beast::Journal j) |
| dbHasSpace Checks if given database has available space. | |
| NotTEC | preflightCheckSigningKey (STObject const &sigObject, beast::Journal j) |
| Checks the validity of the transactor signing key. | |
| std::optional< NotTEC > | preflightCheckSimulateKeys (ApplyFlags flags, STObject const &sigObject, beast::Journal j) |
| Checks the special signing key state needed for simulation. | |
| std::string | getSociSqliteInit (std::string const &name, std::string const &dir, std::string const &ext) |
| std::string | getSociInit (BasicConfig const &config, std::string const &dbName) |
| template<typename BufferSequence > | |
| auto | buffersBegin (BufferSequence const &bufs) |
| template<typename BufferSequence > | |
| auto | buffersEnd (BufferSequence const &bufs) |
| template<class BufferSequence > | |
| std::optional< MessageHeader > | parseMessageHeader (boost::system::error_code &ec, BufferSequence const &bufs, std::size_t size) |
| Parse a message header. | |
| template<class T , class Buffers , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>> | |
| std::shared_ptr< T > | parseMessageContent (MessageHeader const &header, Buffers const &buffers) |
| template<class T , class Buffers , class Handler , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>> | |
| bool | invoke (MessageHeader const &header, Buffers const &buffers, Handler &handler) |
Variables | |
| defaultObject_t | defaultObject |
| nonPresentObject_t | nonPresentObject |
| static constexpr std::size_t | numFeatures |
| template<typename T > | |
| constexpr bool | is_integral_constant = false |
| constexpr std::string_view | isoCharSet |
| constexpr std::size_t | isoCodeOffset = 12 |
| constexpr std::size_t | isoCodeLength = 3 |
| auto constexpr | default_expires = std::chrono::seconds{3600} |
| auto constexpr | default_effective_overlap = std::chrono::seconds{30} |
| constexpr int | TableTypeCount = 3 |
| using xrpl::detail::seed_pair = typedef std::pair<std::uint64_t, std::uint64_t> |
Definition at line 16 of file hardened_hash.h.
| using xrpl::detail::is_engine = typedef std::is_invocable_r<Result, Engine> |
Definition at line 32 of file include/xrpl/basics/random.h.
| using xrpl::detail::test_hardened_unordered_set = typedef std::unordered_set<T, hardened_hash<> > |
Definition at line 63 of file hardened_hash_test.cpp.
| using xrpl::detail::test_hardened_unordered_map = typedef std::unordered_map<T, int, hardened_hash<> > |
Definition at line 66 of file hardened_hash_test.cpp.
| using xrpl::detail::test_hardened_unordered_multiset = typedef std::unordered_multiset<T, hardened_hash<> > |
Definition at line 69 of file hardened_hash_test.cpp.
| using xrpl::detail::test_hardened_unordered_multimap = typedef std::unordered_multimap<T, int, hardened_hash<> > |
Definition at line 73 of file hardened_hash_test.cpp.
| using xrpl::detail::clock_type = typedef std::chrono::steady_clock |
Definition at line 27 of file multi_runner.h.
| using xrpl::detail::response_type = typedef boost::beast::http::response<boost::beast::http::string_body> |
|
strong |
| Enumerator | |
|---|---|
| none | |
| final | |
| extra | |
Definition at line 257 of file LendingHelpers.h.
|
strong |
|
noexcept |
Definition at line 20 of file hardened_hash.h.
| boost::thread_specific_ptr< detail::LocalValues > & xrpl::detail::getLocalValues | ( | ) |
Definition at line 56 of file LocalValue.h.
|
noexcept |
Inform the processor that we are in a tight spin-wait loop.
Spinlocks caught in tight loops can result in the processor's pipeline filling up with comparison operations, resulting in a misprediction at the time the lock is finally acquired, necessitating pipeline flushing which is ridiculously expensive and results in very high latency.
This function instructs the processor to "pause" for some architecture specific amount of time, to prevent this.
Definition at line 30 of file spinlock.h.
| STVar xrpl::detail::make_stvar | ( | Args &&... | args | ) |
| std::map< std::string, VoteBehavior > const & xrpl::detail::supportedAmendments | ( | ) |
Amendments that this server supports and the default voting behavior.
Amendments that this server supports.
Whether they are enabled depends on the Rules defined in the validated ledger
Definition at line 341 of file Feature.cpp.
| std::size_t xrpl::detail::numDownVotedAmendments | ( | ) |
Amendments that this server won't vote for by default.
This function is only used in unit tests.
Definition at line 348 of file Feature.cpp.
| std::size_t xrpl::detail::numUpVotedAmendments | ( | ) |
Amendments that this server will vote for by default.
This function is only used in unit tests.
Definition at line 355 of file Feature.cpp.
|
constexpr |
Definition at line 13 of file HashPrefix.h.
| SlabAllocatorSet< SHAMapItem > xrpl::detail::slabber | ( | { { 128, megabytes(std::size_t(60)) }, { 192, megabytes(std::size_t(46)) }, { 272, megabytes(std::size_t(60)) }, { 384, megabytes(std::size_t(56)) }, { 564, megabytes(std::size_t(40)) }, { 772, megabytes(std::size_t(46)) }, { 1052, megabytes(std::size_t(60)) }, } | ) |
| bool xrpl::detail::internalDirNext | ( | V & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< N > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| bool xrpl::detail::internalDirFirst | ( | V & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< N > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| void xrpl::detail::copy_uint32 | ( | std::uint8_t * | out, |
| std::uint32_t | v | ||
| ) |
Definition at line 57 of file SecretKey.cpp.
Definition at line 66 of file SecretKey.cpp.
|
constexpr |
Definition at line 23 of file ValidatorSite_test.cpp.
| std::string xrpl::detail::configContents | ( | std::string const & | dbPath, |
| std::string const & | validatorsFile | ||
| ) |
Definition at line 20 of file Config_test.cpp.
| std::string xrpl::detail::valFileContents | ( | ) |
Definition at line 193 of file Config_test.cpp.
| std::uint32_t xrpl::detail::owned_count_of | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| LedgerEntryType | type | ||
| ) |
Definition at line 7 of file owners.cpp.
| void xrpl::detail::owned_count_helper | ( | test::jtx::Env & | env, |
| AccountID const & | id, | ||
| LedgerEntryType | type, | ||
| std::uint32_t | value | ||
| ) |
Definition at line 19 of file owners.cpp.
| void xrpl::detail::require_args | ( | test::jtx::requires_t & | vec, |
| Cond const & | cond, | ||
| Args const &... | args | ||
| ) |
| std::ostream & xrpl::detail::pretty_time | ( | std::ostream & | os, |
| std::chrono::duration< Rep, Period > | d | ||
| ) |
Definition at line 75 of file import_test.cpp.
| std::string xrpl::detail::fmtdur | ( | std::chrono::duration< Period, Rep > const & | d | ) |
Definition at line 164 of file import_test.cpp.
| std::string xrpl::detail::fmtdur | ( | typename clock_type::duration const & | d | ) |
Definition at line 18 of file multi_runner.cpp.
| Number xrpl::detail::reduceOffer | ( | auto const & | amount | ) |
Definition at line 21 of file AMMHelpers.h.
| Number::rounding_mode xrpl::detail::getLPTokenRounding | ( | IsDeposit | isDeposit | ) |
Definition at line 635 of file AMMHelpers.h.
| Number::rounding_mode xrpl::detail::getAssetRounding | ( | IsDeposit | isDeposit | ) |
Definition at line 643 of file AMMHelpers.h.
| Number xrpl::detail::computeRaisedRate | ( | Number const & | periodicRate, |
| std::uint32_t | paymentsRemaining | ||
| ) |
Definition at line 88 of file LendingHelpers.cpp.
| Number xrpl::detail::computePaymentFactor | ( | Number const & | periodicRate, |
| std::uint32_t | paymentsRemaining | ||
| ) |
Definition at line 99 of file LendingHelpers.cpp.
| Number xrpl::detail::loanPeriodicPayment | ( | Number const & | principalOutstanding, |
| Number const & | periodicRate, | ||
| std::uint32_t | paymentsRemaining | ||
| ) |
Definition at line 119 of file LendingHelpers.cpp.
| Number xrpl::detail::loanPeriodicPayment | ( | Number const & | principalOutstanding, |
| TenthBips32 | interestRate, | ||
| std::uint32_t | paymentInterval, | ||
| std::uint32_t | paymentsRemaining | ||
| ) |
Definition at line 141 of file LendingHelpers.cpp.
| Number xrpl::detail::loanPrincipalFromPeriodicPayment | ( | Number const & | periodicPayment, |
| Number const & | periodicRate, | ||
| std::uint32_t | paymentsRemaining | ||
| ) |
Definition at line 162 of file LendingHelpers.cpp.
| std::pair< Number, Number > xrpl::detail::computeInterestAndFeeParts | ( | Number const & | interest, |
| TenthBips16 | managementFeeRate | ||
| ) |
Definition at line 180 of file LendingHelpers.cpp.
| std::pair< Number, Number > xrpl::detail::computeInterestAndFeeParts | ( | Asset const & | asset, |
| Number const & | interest, | ||
| TenthBips16 | managementFeeRate, | ||
| std::int32_t | loanScale | ||
| ) |
Definition at line 195 of file LendingHelpers.cpp.
| Number xrpl::detail::loanLatePaymentInterest | ( | Number const & | principalOutstanding, |
| TenthBips32 | lateInterestRate, | ||
| NetClock::time_point | parentCloseTime, | ||
| std::uint32_t | nextPaymentDueDate | ||
| ) |
Definition at line 213 of file LendingHelpers.cpp.
| Number xrpl::detail::loanAccruedInterest | ( | Number const & | principalOutstanding, |
| Number const & | periodicRate, | ||
| NetClock::time_point | parentCloseTime, | ||
| std::uint32_t | startDate, | ||
| std::uint32_t | prevPaymentDate, | ||
| std::uint32_t | paymentInterval | ||
| ) |
Definition at line 240 of file LendingHelpers.cpp.
| LoanPaymentParts xrpl::detail::doPayment | ( | ExtendedPaymentComponents const & | payment, |
| NumberProxy & | totalValueOutstandingProxy, | ||
| NumberProxy & | principalOutstandingProxy, | ||
| NumberProxy & | managementFeeOutstandingProxy, | ||
| UInt32Proxy & | paymentRemainingProxy, | ||
| UInt32Proxy & | prevPaymentDateProxy, | ||
| UInt32OptionalProxy & | nextDueDateProxy, | ||
| std::uint32_t | paymentInterval | ||
| ) |
Definition at line 280 of file LendingHelpers.cpp.
| Expected< LoanPaymentParts, TER > xrpl::detail::tryOverpayment | ( | Asset const & | asset, |
| std::int32_t | loanScale, | ||
| ExtendedPaymentComponents const & | overpaymentComponents, | ||
| Number & | totalValueOutstanding, | ||
| Number & | principalOutstanding, | ||
| Number & | managementFeeOutstanding, | ||
| Number & | periodicPayment, | ||
| TenthBips32 | interestRate, | ||
| std::uint32_t | paymentInterval, | ||
| Number const & | periodicRate, | ||
| std::uint32_t | paymentRemaining, | ||
| std::uint32_t | prevPaymentDate, | ||
| std::optional< std::uint32_t > | nextDueDate, | ||
| TenthBips16 const | managementFeeRate, | ||
| beast::Journal | j | ||
| ) |
Definition at line 405 of file LendingHelpers.cpp.
| Expected< LoanPaymentParts, TER > xrpl::detail::doOverpayment | ( | Asset const & | asset, |
| std::int32_t | loanScale, | ||
| ExtendedPaymentComponents const & | overpaymentComponents, | ||
| NumberProxy & | totalValueOutstandingProxy, | ||
| NumberProxy & | principalOutstandingProxy, | ||
| NumberProxy & | managementFeeOutstandingProxy, | ||
| NumberProxy & | periodicPaymentProxy, | ||
| TenthBips32 const | interestRate, | ||
| std::uint32_t const | paymentInterval, | ||
| Number const & | periodicRate, | ||
| std::uint32_t const | paymentRemaining, | ||
| std::uint32_t const | prevPaymentDate, | ||
| std::optional< std::uint32_t > const | nextDueDate, | ||
| TenthBips16 const | managementFeeRate, | ||
| beast::Journal | j | ||
| ) |
Definition at line 593 of file LendingHelpers.cpp.
| Expected< ExtendedPaymentComponents, TER > xrpl::detail::computeLatePayment | ( | Asset const & | asset, |
| ApplyView const & | view, | ||
| Number const & | principalOutstanding, | ||
| std::int32_t | nextDueDate, | ||
| ExtendedPaymentComponents const & | periodic, | ||
| TenthBips32 | lateInterestRate, | ||
| std::int32_t | loanScale, | ||
| Number const & | latePaymentFee, | ||
| STAmount const & | amount, | ||
| TenthBips16 | managementFeeRate, | ||
| beast::Journal | j | ||
| ) |
Definition at line 744 of file LendingHelpers.cpp.
| Expected< ExtendedPaymentComponents, TER > xrpl::detail::computeFullPayment | ( | Asset const & | asset, |
| ApplyView & | view, | ||
| Number const & | principalOutstanding, | ||
| Number const & | managementFeeOutstanding, | ||
| Number const & | periodicPayment, | ||
| std::uint32_t | paymentRemaining, | ||
| std::uint32_t | prevPaymentDate, | ||
| std::uint32_t const | startDate, | ||
| std::uint32_t const | paymentInterval, | ||
| TenthBips32 const | closeInterestRate, | ||
| std::int32_t | loanScale, | ||
| Number const & | totalInterestOutstanding, | ||
| Number const & | periodicRate, | ||
| Number const & | closePaymentFee, | ||
| STAmount const & | amount, | ||
| TenthBips16 | managementFeeRate, | ||
| beast::Journal | j | ||
| ) |
Definition at line 850 of file LendingHelpers.cpp.
| PaymentComponents xrpl::detail::computePaymentComponents | ( | Asset const & | asset, |
| std::int32_t | scale, | ||
| Number const & | totalValueOutstanding, | ||
| Number const & | principalOutstanding, | ||
| Number const & | managementFeeOutstanding, | ||
| Number const & | periodicPayment, | ||
| Number const & | periodicRate, | ||
| std::uint32_t | paymentRemaining, | ||
| TenthBips16 | managementFeeRate | ||
| ) |
Definition at line 985 of file LendingHelpers.cpp.
| ExtendedPaymentComponents xrpl::detail::computeOverpaymentComponents | ( | Asset const & | asset, |
| int32_t const | loanScale, | ||
| Number const & | overpayment, | ||
| TenthBips32 const | overpaymentInterestRate, | ||
| TenthBips32 const | overpaymentFeeRate, | ||
| TenthBips16 const | managementFeeRate | ||
| ) |
Definition at line 1209 of file LendingHelpers.cpp.
|
staticconstexpr |
| std::vector< T > xrpl::detail::getTrustLineItems | ( | AccountID const & | accountID, |
| ReadView const & | view, | ||
| LineDirection | direction = LineDirection::outgoing |
||
| ) |
Definition at line 45 of file TrustLine.cpp.
|
static |
| DatabasePairValid xrpl::detail::makeLedgerDBs | ( | Config const & | config, |
| DatabaseCon::Setup const & | setup, | ||
| DatabaseCon::CheckpointerSetup const & | checkpointerSetup, | ||
| beast::Journal | j | ||
| ) |
makeLedgerDBs Opens ledger and transactions databases.
| config | Config object. |
| setup | Path to database and opening parameters. |
| checkpointerSetup | Database checkpointer setup. |
| j | Journal. |
| std::optional< LedgerIndex > xrpl::detail::getMinLedgerSeq | ( | soci::session & | session, |
| TableType | type | ||
| ) |
| std::optional< LedgerIndex > xrpl::detail::getMaxLedgerSeq | ( | soci::session & | session, |
| TableType | type | ||
| ) |
| void xrpl::detail::deleteByLedgerSeq | ( | soci::session & | session, |
| TableType | type, | ||
| LedgerIndex | ledgerSeq | ||
| ) |
| void xrpl::detail::deleteBeforeLedgerSeq | ( | soci::session & | session, |
| TableType | type, | ||
| LedgerIndex | ledgerSeq | ||
| ) |
| std::size_t xrpl::detail::getRows | ( | soci::session & | session, |
| TableType | type | ||
| ) |
| RelationalDatabase::CountMinMax xrpl::detail::getRowsMinMax | ( | soci::session & | session, |
| TableType | type | ||
| ) |
getRowsMinMax Returns minimum ledger sequence, maximum ledger sequence and total number of rows in given table.
| session | Session with database. |
| type | Table ID for which the result is returned. |
| bool xrpl::detail::saveValidatedLedger | ( | DatabaseCon & | ldgDB, |
| std::unique_ptr< DatabaseCon > const & | txnDB, | ||
| Application & | app, | ||
| std::shared_ptr< Ledger const > const & | ledger, | ||
| bool | current | ||
| ) |
saveValidatedLedger Saves ledger into database.
| lgrDB | Link to ledgers database. |
| txnDB | Link to transactions database. |
| app | Application object. |
| ledger | The ledger. |
| current | True if ledger is current. |
|
static |
| std::optional< LedgerHeader > xrpl::detail::getLedgerInfoByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerSeq, | ||
| beast::Journal | j | ||
| ) |
| std::optional< LedgerHeader > xrpl::detail::getNewestLedgerInfo | ( | soci::session & | session, |
| beast::Journal | j | ||
| ) |
| std::optional< LedgerHeader > xrpl::detail::getLimitedOldestLedgerInfo | ( | soci::session & | session, |
| LedgerIndex | ledgerFirstIndex, | ||
| beast::Journal | j | ||
| ) |
| std::optional< LedgerHeader > xrpl::detail::getLimitedNewestLedgerInfo | ( | soci::session & | session, |
| LedgerIndex | ledgerFirstIndex, | ||
| beast::Journal | j | ||
| ) |
| std::optional< LedgerHeader > xrpl::detail::getLedgerInfoByHash | ( | soci::session & | session, |
| uint256 const & | ledgerHash, | ||
| beast::Journal | j | ||
| ) |
| uint256 xrpl::detail::getHashByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerIndex | ||
| ) |
| std::optional< LedgerHashPair > xrpl::detail::getHashesByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerIndex, | ||
| beast::Journal | j | ||
| ) |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence.
| std::map< LedgerIndex, LedgerHashPair > xrpl::detail::getHashesByIndex | ( | soci::session & | session, |
| LedgerIndex | minSeq, | ||
| LedgerIndex | maxSeq, | ||
| beast::Journal | j | ||
| ) |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with sequences from given minimum limit to given maximum limit.
| session | Session with database. |
| minSeq | Minimum ledger sequence. |
| maxSeq | Maximum ledger sequence. |
| j | Journal. |
| std::pair< std::vector< std::shared_ptr< Transaction > >, int > xrpl::detail::getTxHistory | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerIndex | startIndex, | ||
| int | quantity | ||
| ) |
getTxHistory Returns given number of most recent transactions starting from given number of entry.
| session | Session with database. |
| app | Application object. |
| startIndex | Offset of first returned entry. |
| quantity | Number of returned entries. |
|
static |
transactionsSQL Returns a SQL query for selecting the oldest or newest transactions in decoded or binary form for the account that matches the given criteria starting from the provided offset.
| app | Application object. |
| selection | List of table fields to select from the database. |
| options | Struct AccountTxOptions which contains the criteria to match: the account, the ledger search range, the offset of the first entry to return, the number of transactions to return, and a flag if this number is unlimited. |
| descending | True for descending order, false for ascending. |
| binary | True for binary form, false for decoded. |
| count | True for counting the number of transactions, false for selecting them. |
| j | Journal. |
|
static |
getAccountTxs Returns the oldest or newest transactions for the account that matches the given criteria starting from the provided offset.
| session | Session with the database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contains the criteria to match: the account, the ledger search range, the offset of the first entry to return, the number of transactions to return, and a flag if this number is unlimited. |
| descending | True for descending order, false for ascending. |
| j | Journal. |
| std::pair< RelationalDatabase::AccountTxs, int > xrpl::detail::getOldestAccountTxs | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerMaster & | ledgerMaster, | ||
| RelationalDatabase::AccountTxOptions const & | options, | ||
| beast::Journal | j | ||
| ) |
getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| j | Journal. |
| std::pair< RelationalDatabase::AccountTxs, int > xrpl::detail::getNewestAccountTxs | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerMaster & | ledgerMaster, | ||
| RelationalDatabase::AccountTxOptions const & | options, | ||
| beast::Journal | j | ||
| ) |
getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| j | Journal. |
|
static |
getAccountTxsB Returns the oldest or newest transactions in binary form for the account that matches given criteria starting from the provided offset.
| session | Session with the database. |
| app | Application object. |
| options | Struct AccountTxOptions which contains the criteria to match: the account, the ledger search range, the offset of the first entry to return, the number of transactions to return, and a flag if this number is unlimited. |
| descending | True for descending order, false for ascending. |
| j | Journal. |
| std::pair< std::vector< RelationalDatabase::txnMetaLedgerType >, int > xrpl::detail::getOldestAccountTxsB | ( | soci::session & | session, |
| Application & | app, | ||
| RelationalDatabase::AccountTxOptions const & | options, | ||
| beast::Journal | j | ||
| ) |
getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| j | Journal. |
| std::pair< std::vector< RelationalDatabase::txnMetaLedgerType >, int > xrpl::detail::getNewestAccountTxsB | ( | soci::session & | session, |
| Application & | app, | ||
| RelationalDatabase::AccountTxOptions const & | options, | ||
| beast::Journal | j | ||
| ) |
getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| j | Journal. |
|
static |
accountTxPage Searches for the oldest or newest transactions for the account that matches the given criteria starting from the provided marker and invokes the callback parameter for each found transaction.
| session | Session with the database. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within the given range. |
| onTransaction | Callback function to call on each found transaction. |
| options | Struct AccountTxPageOptions which contains the criteria to match: the account, the ledger search range, the marker of the first returned entry, the number of transactions to return, and a flag if this number unlimited. |
| page_length | Total number of transactions to return. |
| forward | True for ascending order, false for descending. |
| std::pair< std::optional< RelationalDatabase::AccountTxMarker >, int > xrpl::detail::oldestAccountTxPage | ( | soci::session & | session, |
| std::function< void(std::uint32_t)> const & | onUnsavedLedger, | ||
| std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const & | onTransaction, | ||
| RelationalDatabase::AccountTxPageOptions const & | options, | ||
| std::uint32_t | page_length | ||
| ) |
oldestAccountTxPage Searches oldest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction.
| session | Session with database. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within given range. |
| onTransaction | Callback function to call on each found transaction. |
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
| page_length | Total number of transactions to return. |
| std::pair< std::optional< RelationalDatabase::AccountTxMarker >, int > xrpl::detail::newestAccountTxPage | ( | soci::session & | session, |
| std::function< void(std::uint32_t)> const & | onUnsavedLedger, | ||
| std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const & | onTransaction, | ||
| RelationalDatabase::AccountTxPageOptions const & | options, | ||
| std::uint32_t | page_length | ||
| ) |
newestAccountTxPage Searches newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction.
| session | Session with database. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within given range. |
| onTransaction | Callback function to call on each found transaction. |
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
| page_length | Total number of transactions to return. |
| std::variant< RelationalDatabase::AccountTx, TxSearched > xrpl::detail::getTransaction | ( | soci::session & | session, |
| Application & | app, | ||
| uint256 const & | id, | ||
| std::optional< ClosedInterval< uint32_t > > const & | range, | ||
| error_code_i & | ec | ||
| ) |
getTransaction Returns transaction with given hash.
If not found and range given then check if all ledgers from the range are present in the database.
| session | Session with database. |
| app | Application object. |
| id | Hash of the transaction. |
| range | Range of ledgers to check, if present. |
| ec | Default value of error code. |
| bool xrpl::detail::dbHasSpace | ( | soci::session & | session, |
| Config const & | config, | ||
| beast::Journal | j | ||
| ) |
| NotTEC xrpl::detail::preflightCheckSigningKey | ( | STObject const & | sigObject, |
| beast::Journal | j | ||
| ) |
Checks the validity of the transactor signing key.
Normally called from preflight1.
Normally called from preflight1 with ctx.tx.
Definition at line 85 of file Transactor.cpp.
| std::optional< NotTEC > xrpl::detail::preflightCheckSimulateKeys | ( | ApplyFlags | flags, |
| STObject const & | sigObject, | ||
| beast::Journal | j | ||
| ) |
Checks the special signing key state needed for simulation.
Normally called from preflight2 with ctx.tx.
Definition at line 97 of file Transactor.cpp.
| std::string xrpl::detail::getSociSqliteInit | ( | std::string const & | name, |
| std::string const & | dir, | ||
| std::string const & | ext | ||
| ) |
Definition at line 26 of file SociDB.cpp.
| std::string xrpl::detail::getSociInit | ( | BasicConfig const & | config, |
| std::string const & | dbName | ||
| ) |
Definition at line 44 of file SociDB.cpp.
| auto xrpl::detail::buffersBegin | ( | BufferSequence const & | bufs | ) |
Definition at line 125 of file ProtocolMessage.h.
| auto xrpl::detail::buffersEnd | ( | BufferSequence const & | bufs | ) |
Definition at line 133 of file ProtocolMessage.h.
| std::optional< MessageHeader > xrpl::detail::parseMessageHeader | ( | boost::system::error_code & | ec, |
| BufferSequence const & | bufs, | ||
| std::size_t | size | ||
| ) |
Parse a message header.
| ec | contains more information:
|
Definition at line 150 of file ProtocolMessage.h.
| std::shared_ptr< T > xrpl::detail::parseMessageContent | ( | MessageHeader const & | header, |
| Buffers const & | buffers | ||
| ) |
Definition at line 247 of file ProtocolMessage.h.
| bool xrpl::detail::invoke | ( | MessageHeader const & | header, |
| Buffers const & | buffers, | ||
| Handler & | handler | ||
| ) |
Definition at line 282 of file ProtocolMessage.h.
| defaultObject_t xrpl::detail::defaultObject |
| nonPresentObject_t xrpl::detail::nonPresentObject |
|
staticconstexpr |
|
constexpr |
Definition at line 19 of file MultiApiJson.h.
|
constexpr |
Definition at line 20 of file UintTypes.cpp.
|
constexpr |
Definition at line 27 of file UintTypes.cpp.
|
constexpr |
Definition at line 30 of file UintTypes.cpp.
|
constexpr |
Definition at line 35 of file ValidatorSite_test.cpp.
|
constexpr |
Definition at line 36 of file ValidatorSite_test.cpp.