3#include <test/jtx/Env.h>
5#include <xrpl/basics/contract.h>
6#include <xrpl/protocol/LedgerFormats.h>
7#include <xrpl/protocol/TxFlags.h>
67 Throw<std::runtime_error>(
"unknown flag");
71 template <
class Flag,
class... Args>
76 if constexpr (
sizeof...(args))
81 template <
class... Args>
103 return fset(account, 0, off);
113 template <
class... Args>
129 template <
class... Args>
flags_helper(Args... args)
void set_args(std::uint32_t flag, Args... args)
void set_args(std::uint32_t flag)
Immutable cryptographic account descriptor.
A transaction testing environment.
void operator()(Env &env) const
flags(Account const &account, Args... args)
Match clear account flags.
void operator()(Env &env) const
nflags(Account const &account, Args... args)
Json::Value fclear(Account const &account, std::uint32_t off)
Remove account flag.
Json::Value fset(Account const &account, std::uint32_t on, std::uint32_t off=0)
Add and/or remove flag.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
constexpr std::uint32_t asfAllowTrustLineClawback
constexpr std::uint32_t asfGlobalFreeze
constexpr std::uint32_t asfRequireDest
constexpr std::uint32_t asfDisableMaster
constexpr std::uint32_t asfDisallowIncomingPayChan
constexpr std::uint32_t asfDepositAuth
constexpr std::uint32_t asfDefaultRipple
constexpr std::uint32_t asfDisallowIncomingTrustline
constexpr std::uint32_t asfDisallowIncomingCheck
constexpr std::uint32_t asfRequireAuth
constexpr std::uint32_t asfNoFreeze
constexpr std::uint32_t asfDisallowXRP
@ lsfDisallowIncomingNFTokenOffer
@ lsfAllowTrustLineClawback
@ lsfDisallowIncomingPayChan
@ lsfDisallowIncomingCheck
@ lsfAllowTrustLineLocking
@ lsfDisallowIncomingTrustline
constexpr std::uint32_t asfDisallowIncomingNFTokenOffer
constexpr std::uint32_t asfAllowTrustLineLocking