rippled
|
Classes | |
struct | Adjustment |
struct | Value |
Public Member Functions | |
std::optional< Adjustment > | adjustments (AccountID const &main, AccountID const &other, Currency const ¤cy) const |
void | credit (AccountID const &sender, AccountID const &receiver, STAmount const &amount, STAmount const &preCreditSenderBalance) |
void | ownerCount (AccountID const &id, std::uint32_t cur, std::uint32_t next) |
std::optional< std::uint32_t > | ownerCount (AccountID const &id) const |
void | apply (DeferredCredits &to) |
Private Types | |
using | Key = std::tuple< AccountID, AccountID, Currency > |
Static Private Member Functions | |
static Key | makeKey (AccountID const &a1, AccountID const &a2, Currency const &c) |
Private Attributes | |
std::map< Key, Value > | credits_ |
std::map< AccountID, std::uint32_t > | ownerCounts_ |
Definition at line 36 of file PaymentSandbox.h.
|
private |
Definition at line 79 of file PaymentSandbox.h.
auto ripple::detail::DeferredCredits::adjustments | ( | AccountID const & | main, |
AccountID const & | other, | ||
Currency const & | currency | ||
) | const |
Definition at line 113 of file PaymentSandbox.cpp.
void ripple::detail::DeferredCredits::credit | ( | AccountID const & | sender, |
AccountID const & | receiver, | ||
STAmount const & | amount, | ||
STAmount const & | preCreditSenderBalance | ||
) |
Definition at line 46 of file PaymentSandbox.cpp.
void ripple::detail::DeferredCredits::ownerCount | ( | AccountID const & | id, |
std::uint32_t | cur, | ||
std::uint32_t | next | ||
) |
Definition at line 88 of file PaymentSandbox.cpp.
std::optional< std::uint32_t > ripple::detail::DeferredCredits::ownerCount | ( | AccountID const & | id | ) | const |
Definition at line 103 of file PaymentSandbox.cpp.
void ripple::detail::DeferredCredits::apply | ( | DeferredCredits & | to | ) |
Definition at line 142 of file PaymentSandbox.cpp.
|
staticprivate |
Definition at line 34 of file PaymentSandbox.cpp.
Definition at line 92 of file PaymentSandbox.h.
|
private |
Definition at line 93 of file PaymentSandbox.h.