rippled
Loading...
Searching...
No Matches
PermissionedDEXHelpers.h
1#pragma once
2#include <xrpl/ledger/View.h>
3
4namespace xrpl {
5namespace permissioned_dex {
6
7// Check if an account is in a permissioned domain
8[[nodiscard]] bool
9accountInDomain(ReadView const& view, AccountID const& account, Domain const& domainID);
10
11// Check if an offer is in the permissioned domain
12[[nodiscard]] bool
14 ReadView const& view,
15 uint256 const& offerID,
16 Domain const& domainID,
18
19} // namespace permissioned_dex
20
21} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
A view into a ledger.
Definition ReadView.h:31
bool offerInDomain(ReadView const &view, uint256 const &offerID, Domain const &domainID, beast::Journal j)
bool accountInDomain(ReadView const &view, AccountID const &account, Domain const &domainID)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5