xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
ledger
helpers
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
9
namespace
xrpl::permissioned_dex
{
10
11
// Check if an account is in a permissioned domain
12
[[nodiscard]]
bool
13
accountInDomain
(
ReadView
const
& view,
AccountID
const
& account,
Domain
const
& domainID);
14
15
// Check if an offer is in the permissioned domain
16
[[nodiscard]]
bool
17
offerInDomain
(
18
ReadView
const
& view,
19
UInt256
const
& offerID,
20
Domain
const
& domainID,
21
beast::Journal
j);
22
23
}
// namespace xrpl::permissioned_dex
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:41
xrpl::permissioned_dex
Definition
PermissionedDEXHelpers.h:9
xrpl::permissioned_dex::accountInDomain
bool accountInDomain(ReadView const &view, AccountID const &account, Domain const &domainID)
Definition
PermissionedDEXHelpers.cpp:22
xrpl::permissioned_dex::offerInDomain
bool offerInDomain(ReadView const &view, UInt256 const &offerID, Domain const &domainID, beast::Journal j)
Definition
PermissionedDEXHelpers.cpp:57
xrpl::Domain
BaseUInt< 256 > Domain
Domain is a 256-bit hash representing a specific domain.
Definition
UintTypes.h:59
xrpl::UInt256
BaseUInt< 256 > UInt256
Definition
base_uint.h:580
xrpl::AccountID
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition
AccountID.h:34
Generated by
1.17.0