1#include <xrpld/app/misc/PermissionedDEXHelpers.h> 
    3#include <xrpl/ledger/CredentialHelpers.h> 
    6namespace permissioned_dex {
 
   19    if (sleDomain->getAccountID(sfOwner) == account)
 
   22    auto const& credentials = sleDomain->getFieldArray(sfAcceptedCredentials);
 
   25        credentials.begin(), credentials.end(), [&](
auto const& 
credential) {
 
   26            auto const sleCred = view.read(keylet::credential(
 
   27                account, credential[sfIssuer], credential[sfCredentialType]));
 
   28            if (!sleCred || !sleCred->isFlag(lsfAccepted))
 
   31            return !credentials::checkExpired(
 
   32                sleCred, view.info().parentCloseTime);
 
 
   52    if (!sleOffer->isFieldPresent(sfDomainID))
 
   54    if (sleOffer->getFieldH256(sfDomainID) != domainID)
 
   58        !sleOffer->isFieldPresent(sfAdditionalBooks))
 
   60        JLOG(j.
error()) << 
"Hybrid offer " << offerID
 
   61                        << 
" missing AdditionalBooks field";
 
   65    return accountInDomain(view, sleOffer->getAccountID(sfAccount), domainID);
 
 
 
A generic endpoint for log messages.
 
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
 
Keylet permissionedDomain(AccountID const &account, std::uint32_t seq) noexcept
 
Keylet offer(AccountID const &id, std::uint32_t seq) noexcept
An offer from an account.
 
bool accountInDomain(ReadView const &view, AccountID const &account, Domain const &domainID)
 
bool offerInDomain(ReadView const &view, uint256 const &offerID, Domain const &domainID, beast::Journal j)
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
@ credential
Credentials signature.