xrpld
Loading...
Searching...
No Matches
PermissionedDEXHelpers.h
1#pragma once
2
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/protocol/AccountID.h>
7#include <xrpl/protocol/UintTypes.h>
8
10
11// Check if an account is in a permissioned domain
12[[nodiscard]] bool
13accountInDomain(ReadView const& view, AccountID const& account, Domain const& domainID);
14
15// Check if an offer is in the permissioned domain
16[[nodiscard]] bool
18 ReadView const& view,
19 uint256 const& offerID,
20 Domain const& domainID,
22
23} // namespace xrpl::permissioned_dex
A generic endpoint for log messages.
Definition Journal.h:44
A view into a ledger.
Definition ReadView.h:41
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)
BaseUInt< 256 > Domain
Domain is a 256-bit hash representing a specific domain.
Definition UintTypes.h:59
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:34
BaseUInt< 256 > uint256
Definition base_uint.h:580