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
13offerInDomain(ReadView const& view, uint256 const& offerID, Domain const& domainID, beast::Journal j);
14
15} // namespace permissioned_dex
16
17} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
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
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:28
base_uint< 256 > Domain
Domain is a 256-bit hash representing a specific domain.
Definition UintTypes.h:47
base_uint< 256 > uint256
Definition base_uint.h:526