|
xrpld
|
#include <PaymentSandbox.h>

Classes | |
| struct | ValueIOU |
| struct | HolderValueMPT |
| struct | IssuerValueMPT |
| struct | AdjustmentIOU |
Public Member Functions | |
| std::optional< AdjustmentIOU > | adjustmentsIOU (AccountID const &main, AccountID const &other, Currency const ¤cy) const |
| std::optional< AdjustmentMPT > | adjustmentsMPT (MPTID const &mptID) const |
| void | creditIOU (AccountID const &sender, AccountID const &receiver, STAmount const &amount, STAmount const &preCreditSenderBalance) |
| void | creditMPT (AccountID const &sender, AccountID const &receiver, STAmount const &amount, std::uint64_t preCreditBalanceHolder, std::int64_t preCreditBalanceIssuer) |
| void | issuerSelfDebitMPT (MPTIssue const &issue, std::uint64_t amount, std::int64_t origBalance) |
| 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 | KeyIOU = std::tuple<AccountID, AccountID, Currency> |
| using | AdjustmentMPT = IssuerValueMPT |
Static Private Member Functions | |
| static KeyIOU | makeKeyIOU (AccountID const &a1, AccountID const &a2, Currency const ¤cy) |
Private Attributes | |
| std::map< KeyIOU, ValueIOU > | creditsIOU_ |
| std::map< MPTID, IssuerValueMPT > | creditsMPT_ |
| std::map< AccountID, std::uint32_t > | ownerCounts_ |
Definition at line 17 of file PaymentSandbox.h.
|
private |
Definition at line 20 of file PaymentSandbox.h.
|
private |
Definition at line 61 of file PaymentSandbox.h.
|
nodiscard |
Definition at line 195 of file PaymentSandbox.cpp.
|
nodiscard |
Definition at line 220 of file PaymentSandbox.cpp.
| void xrpl::detail::DeferredCredits::creditIOU | ( | AccountID const & | sender, |
| AccountID const & | receiver, | ||
| STAmount const & | amount, | ||
| STAmount const & | preCreditSenderBalance ) |
Definition at line 37 of file PaymentSandbox.cpp.
| void xrpl::detail::DeferredCredits::creditMPT | ( | AccountID const & | sender, |
| AccountID const & | receiver, | ||
| STAmount const & | amount, | ||
| std::uint64_t | preCreditBalanceHolder, | ||
| std::int64_t | preCreditBalanceIssuer ) |
Definition at line 86 of file PaymentSandbox.cpp.
| void xrpl::detail::DeferredCredits::issuerSelfDebitMPT | ( | MPTIssue const & | issue, |
| std::uint64_t | amount, | ||
| std::int64_t | origBalance ) |
Definition at line 151 of file PaymentSandbox.cpp.
| void xrpl::detail::DeferredCredits::ownerCount | ( | AccountID const & | id, |
| std::uint32_t | cur, | ||
| std::uint32_t | next ) |
Definition at line 173 of file PaymentSandbox.cpp.
|
nodiscard |
Definition at line 185 of file PaymentSandbox.cpp.
| void xrpl::detail::DeferredCredits::apply | ( | DeferredCredits & | to | ) |
Definition at line 229 of file PaymentSandbox.cpp.
|
staticprivate |
Definition at line 26 of file PaymentSandbox.cpp.
Definition at line 117 of file PaymentSandbox.h.
|
private |
Definition at line 118 of file PaymentSandbox.h.
|
private |
Definition at line 119 of file PaymentSandbox.h.