xrpld
Loading...
Searching...
No Matches
PermissionedDEXHelpers.h
1#pragma once
2
3#include <xrpl/ledger/View.h>
4
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 xrpl::permissioned_dex
A generic endpoint for log messages.
Definition Journal.h:38
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)
BaseUInt< 256 > Domain
Domain is a 256-bit hash representing a specific domain.
Definition UintTypes.h:47
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:28
BaseUInt< 256 > uint256
Definition base_uint.h:562