rippled
Loading...
Searching...
No Matches
PermissionedDEXHelpers.h
1#pragma once
2#include <xrpl/ledger/View.h>
3
4namespace ripple {
5namespace permissioned_dex {
6
7// Check if an account is in a permissioned domain
8[[nodiscard]] bool
10 ReadView const& view,
11 AccountID const& account,
12 Domain const& domainID);
13
14// Check if an offer is in the permissioned domain
15[[nodiscard]] bool
17 ReadView const& view,
18 uint256 const& offerID,
19 Domain const& domainID,
21
22} // namespace permissioned_dex
23
24} // namespace ripple
A generic endpoint for log messages.
Definition Journal.h:41
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.
Definition algorithm.h:6
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:29
base_uint< 256 > uint256
Definition base_uint.h:539
base_uint< 256 > Domain
Domain is a 256-bit hash representing a specific domain.
Definition UintTypes.h:48