rippled
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
ripple::test::jtx Namespace Reference

Namespaces

namespace  amm
 
namespace  batch
 Batch operations.
 
namespace  check
 Check operations.
 
namespace  credentials
 
namespace  delegate
 
namespace  deposit
 Deposit preauthorize operations.
 
namespace  did
 DID operations.
 
namespace  directory
 Directory operations.
 
namespace  escrow
 Escrow operations.
 
namespace  ledgerStateFix
 LedgerStateFix operations.
 
namespace  oracle
 
namespace  paychan
 
namespace  pdomain
 
namespace  ticket
 Ticket operations.
 
namespace  token
 

Classes

class  Account
 Immutable cryptographic account descriptor. More...
 
struct  account_txn_id
 
struct  accountIDField
 
class  AMM
 Convenience class to test AMM functionality. More...
 
class  AMMTest
 
class  AMMTestBase
 
struct  any_t
 
struct  AnyAmount
 Amount specifier with an option for any issuer. More...
 
struct  autofill_t
 
class  balance
 A balance matches. More...
 
struct  basic_prop
 
struct  BidArg
 
struct  blobField
 
struct  BookSpec
 
struct  CreateArg
 
class  delivermin
 Sets the DeliverMin on a JTx. More...
 
struct  DepositArg
 
class  dest_tag
 Set DestinationTag on a JTx. More...
 
struct  disabled_t
 
class  domain
 Set the domain on a JTx. More...
 
struct  dtag
 Set the destination tag on a JTx. More...
 
class  Env
 A transaction testing environment. More...
 
class  Env_ss
 A transaction testing environment wrapper. More...
 
struct  epsilon_t
 
class  expiration
 Set Expiration on a JTx. More...
 
class  fee
 Set the fee on a JTx. More...
 
class  flags
 Match set account flags. More...
 
struct  increment_t
 Used for fee() calls that use an owner reserve increment. More...
 
struct  invoice_id
 
class  IOU
 Converts to IOU Issue or STAmount. More...
 
class  json
 Inject raw JSON. More...
 
struct  JTx
 Execution context for applying a JSON transaction. More...
 
struct  JTxField
 Generic helper class for helper clases that set a field on a JTx. More...
 
struct  JTxField< SField, StoredValue, StoredValue >
 
struct  JTxFieldWrapper
 
struct  JTxFieldWrapper< blobField >
 
struct  last_ledger_seq
 
class  LPToken
 
class  memo
 Add a memo to a JTx. More...
 
class  memodata
 
class  memoformat
 
class  memondata
 
class  memonformat
 
class  memontype
 
class  memotype
 
class  MPT
 Converts to MPT Issue or STAmount. More...
 
struct  MPTAuthorize
 
class  mptbalance
 
struct  MPTCreate
 
struct  MPTDestroy
 
class  mptflags
 
struct  MPTInit
 
struct  MPTSet
 
class  MPTTester
 
class  msig
 Set a multisignature on a JTx. More...
 
class  nflags
 Match clear account flags. More...
 
struct  None
 
struct  none_t
 
class  owner_count
 
class  owners
 Match the number of items in the account's owner directory. More...
 
struct  parse_error
 Thrown when parse fails. More...
 
class  path
 Add a path. More...
 
class  paths
 Set Paths, SendMax on a JTx. More...
 
class  PermissionedDEX
 
struct  PrettyAmount
 Represents an XRP or IOU quantity This customizes the string conversion and supports XRP conversions from integer and floating point. More...
 
struct  PrettyAsset
 
struct  prop
 Set a property on a JTx. More...
 
struct  prop_type
 
class  qualityIn
 Sets the literal QualityIn on a trust JTx. More...
 
class  qualityInPercent
 Sets the QualityIn on a trust JTx. More...
 
class  qualityOut
 Sets the literal QualityOut on a trust JTx. More...
 
class  qualityOutPercent
 Sets the QualityOut on a trust JTx as a percentage. More...
 
struct  Reg
 
class  require
 Check a set of conditions. More...
 
class  requireAny
 
class  rpc
 Set the expected result code for a JTx The test will fail if the code doesn't match. More...
 
class  sendmax
 Sets the SendMax on a JTx. More...
 
struct  seq
 Set the sequence number on a JTx. More...
 
class  sig
 Set the regular signature on a JTx. More...
 
struct  signer
 A signer in a SignerList. More...
 
class  source_tag
 Set SourceTag on a JTx. More...
 
struct  stag
 Set the source tag on a JTx. More...
 
class  SuiteLogs
 
class  ter
 Set the expected result code for a JTx The test will fail if the code doesn't match. More...
 
struct  TestAMMArg
 
struct  timePointField
 
class  txflags
 Set the flags on a JTx. More...
 
struct  uint256Field
 
struct  valueUnitField
 
struct  Vault
 
struct  VoteArg
 
struct  WithdrawArg
 
struct  XChainBridgeObjects
 
struct  XRP_t
 

Typedefs

using checks = owner_count< ltCHECK >
 Match the number of checks on the account.
 
using siglists = owner_count< ltSIGNER_LIST >
 The number of signer lists matches.
 
using lines = owner_count< ltRIPPLE_STATE >
 Match the number of trust lines in the account's owner directory.
 
using offers = owner_count< ltOFFER >
 Match the number of offers in the account's owner directory.
 
using require_t = std::function< void(Env &)>
 
using requires_t = std::vector< require_t >
 
template<class SField , class UnitTag , class ValueType = typename SField::type::value_type>
using valueUnitWrapper = JTxFieldWrapper< valueUnitField< SField, UnitTag, ValueType > >
 
template<class SField , class StoredValue = typename SField::type::value_type>
using simpleField = JTxFieldWrapper< JTxField< SField, StoredValue > >
 
using tickets = owner_count< ltTICKET >
 Match the number of tickets on the account.
 
using JValueVec = std::vector< Json::Value >
 

Enumerations

enum class  Fund { All , Acct , Gw , IOUOnly }
 

Functions

bool operator== (Account const &lhs, Account const &rhs) noexcept
 
template<class Hasher >
void hash_append (Hasher &h, Account const &v) noexcept
 
auto operator<=> (Account const &lhs, Account const &rhs) noexcept
 
Json::Value acctdelete (Account const &account, Account const &dest)
 Delete account.
 
void incLgrSeqForAccDel (jtx::Env &env, jtx::Account const &acc, std::uint32_t margin=0)
 
void fund (jtx::Env &env, jtx::Account const &gw, std::vector< jtx::Account > const &accounts, std::vector< STAmount > const &amts, Fund how)
 
void fund (jtx::Env &env, jtx::Account const &gw, std::vector< jtx::Account > const &accounts, STAmount const &xrp, std::vector< STAmount > const &amts={}, Fund how=Fund::All)
 
void fund (jtx::Env &env, std::vector< jtx::Account > const &accounts, STAmount const &xrp, std::vector< STAmount > const &amts={}, Fund how=Fund::All)
 
bool operator== (PrettyAmount const &lhs, PrettyAmount const &rhs)
 
bool operator!= (PrettyAmount const &lhs, PrettyAmount const &rhs)
 
std::ostreamoperator<< (std::ostream &os, PrettyAmount const &amount)
 
template<class Integer , class = std::enable_if_t<std::is_integral_v<Integer>>>
PrettyAmount drops (Integer i)
 Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
 
PrettyAmount drops (XRPAmount i)
 Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
 
std::ostreamoperator<< (std::ostream &os, IOU const &iou)
 
std::ostreamoperator<< (std::ostream &os, MPT const &mpt)
 
Buffer sign_claim_attestation (PublicKey const &pk, SecretKey const &sk, STXChainBridge const &bridge, AccountID const &sendingAccount, STAmount const &sendingAmount, AccountID const &rewardAccount, bool wasLockingChainSend, std::uint64_t claimID, std::optional< AccountID > const &dst)
 
Buffer sign_create_account_attestation (PublicKey const &pk, SecretKey const &sk, STXChainBridge const &bridge, AccountID const &sendingAccount, STAmount const &sendingAmount, STAmount const &rewardAmount, AccountID const &rewardAccount, bool wasLockingChainSend, std::uint64_t createCount, AccountID const &dst)
 
template<class... Args>
std::array< Account, 1+sizeof...(Args)> noripple (Account const &account, Args const &... args)
 Designate accounts as no-ripple in Env::fund.
 
FeatureBitset testable_amendments ()
 
std::unique_ptr< Configenvconfig ()
 creates and initializes a default configuration for jtx::Env
 
template<class F , class... Args>
std::unique_ptr< Configenvconfig (F &&modfunc, Args &&... args)
 creates and initializes a default configuration for jtx::Env and invokes the provided function/lambda with the configuration object.
 
std::unique_ptr< Configno_admin (std::unique_ptr< Config >)
 adjust config so no admin ports are enabled
 
std::unique_ptr< Configsecure_gateway (std::unique_ptr< Config >)
 
std::unique_ptr< Configadmin_localnet (std::unique_ptr< Config >)
 
std::unique_ptr< Configsecure_gateway_localnet (std::unique_ptr< Config >)
 
std::unique_ptr< Configvalidator (std::unique_ptr< Config >, std::string const &)
 adjust configuration with params needed to be a validator
 
std::unique_ptr< ConfigaddGrpcConfig (std::unique_ptr< Config >)
 add a grpc address and port to config
 
std::unique_ptr< ConfigaddGrpcConfigWithSecureGateway (std::unique_ptr< Config >, std::string const &secureGateway)
 add a grpc address, port and secure_gateway to config
 
std::unique_ptr< ConfigmakeConfig (std::map< std::string, std::string > extraTxQ={}, std::map< std::string, std::string > extraVoting={})
 
Json::Value fset (Account const &account, std::uint32_t on, std::uint32_t off=0)
 Add and/or remove flag.
 
Json::Value fclear (Account const &account, std::uint32_t off)
 Remove account flag.
 
static Number number (STAmount const &a)
 
template<typename T >
static std::string to_places (T const d, std::uint8_t places)
 
void doBalance (Env &env, AccountID const &account, bool none, STAmount const &value, Issue const &issue)
 
void doBalance (Env &env, AccountID const &account, bool none, STAmount const &value, MPTIssue const &mptIssue)
 
Json::Value signers (Account const &account, std::uint32_t quorum, std::vector< signer > const &v)
 
Json::Value signers (Account const &account, none_t)
 Remove a signer list.
 
Json::Value offer (Account const &account, STAmount const &takerPays, STAmount const &takerGets, std::uint32_t flags=0)
 Create an offer.
 
Json::Value offer_cancel (Account const &account, std::uint32_t offerSeq)
 Cancel an offer.
 
Json::Value pay (AccountID const &account, AccountID const &to, AnyAmount amount)
 Create a payment.
 
Json::Value pay (Account const &account, Account const &to, AnyAmount amount)
 
uint256 setupDomain (jtx::Env &env, std::vector< jtx::Account > const &accounts, jtx::Account const &domainOwner, std::string const &credType)
 
static void insertQualityIntoJtx (SField const &field, std::uint32_t value, JTx &jt)
 
Json::Value rate (Account const &account, double multiplier)
 Set a transfer rate.
 
Json::Value regkey (Account const &account, disabled_t)
 Disable the regular key.
 
Json::Value regkey (Account const &account, Account const &signer)
 Set a regular key.
 
Json::Value getAccountOffers (Env &env, AccountID const &acct, bool current)
 
Json::Value getAccountLines (Env &env, AccountID const &acctId)
 
bool checkArraySize (Json::Value const &val, unsigned int size)
 
std::uint32_t ownerCount (Env const &env, Account const &account)
 
void stpath_append_one (STPath &st, Account const &account)
 
void stpath_append_one (STPath &st, STPathElement const &pe)
 
bool equal (STAmount const &sa1, STAmount const &sa2)
 
STPathElement IPE (Issue const &iss)
 
XRPAmount txfee (Env const &env, std::uint16_t n)
 
PrettyAmount xrpMinusFee (Env const &env, std::int64_t xrpAmount)
 
bool expectHolding (Env &env, AccountID const &account, STAmount const &value, bool defaultLimits)
 
bool expectHolding (Env &env, AccountID const &account, None const &, Issue const &issue)
 
bool expectHolding (Env &env, AccountID const &account, None const &, MPTIssue const &mptIssue)
 
bool expectHolding (Env &env, AccountID const &account, None const &value)
 
bool expectOffers (Env &env, AccountID const &account, std::uint16_t size, std::vector< Amounts > const &toMatch)
 
Json::Value ledgerEntryRoot (Env &env, Account const &acct)
 
Json::Value ledgerEntryState (Env &env, Account const &acct_a, Account const &acct_b, std::string const &currency)
 
Json::Value accountBalance (Env &env, Account const &acct)
 
bool expectLedgerEntryRoot (Env &env, Account const &acct, STAmount const &expectedValue)
 
void n_offers (Env &env, std::size_t n, Account const &account, STAmount const &in, STAmount const &out)
 
STPathElement cpe (Currency const &c)
 
STPathElement allpe (AccountID const &a, Issue const &iss)
 
Json::Value trust (Account const &account, STAmount const &amount, std::uint32_t flags=0)
 Modify a trust line.
 
Json::Value trust (Account const &account, STAmount const &amount, Account const &peer, std::uint32_t flags)
 Change flags on a trust line.
 
Json::Value claw (Account const &account, STAmount const &amount, std::optional< Account > const &mptHolder)
 
STObject parse (Json::Value const &jv)
 Convert JSON to STObject.
 
void sign (Json::Value &jv, Account const &account, Json::Value &sigObject)
 Sign automatically into a specific Json field of the jv object.
 
void sign (Json::Value &jv, Account const &account)
 Sign automatically.
 
void fill_fee (Json::Value &jv, ReadView const &view)
 Set the fee automatically.
 
void fill_seq (Json::Value &jv, ReadView const &view)
 Set the sequence number automatically.
 
Json::Value cmdToJSONRPC (std::vector< std::string > const &args, beast::Journal j, unsigned int apiVersion)
 Given a rippled unit test rpc command, return the corresponding JSON.
 
Json::Value bridge (Account const &lockingChainDoor, Issue const &lockingChainIssue, Account const &issuingChainDoor, Issue const &issuingChainIssue)
 
Json::Value bridge_rpc (Account const &lockingChainDoor, Issue const &lockingChainIssue, Account const &issuingChainDoor, Issue const &issuingChainIssue)
 
Json::Value bridge_create (Account const &acc, Json::Value const &bridge, STAmount const &reward, std::optional< STAmount > const &minAccountCreate)
 
Json::Value bridge_modify (Account const &acc, Json::Value const &bridge, std::optional< STAmount > const &reward, std::optional< STAmount > const &minAccountCreate)
 
Json::Value xchain_create_claim_id (Account const &acc, Json::Value const &bridge, STAmount const &reward, Account const &otherChainSource)
 
Json::Value xchain_commit (Account const &acc, Json::Value const &bridge, std::uint32_t claimID, AnyAmount const &amt, std::optional< Account > const &dst)
 
Json::Value xchain_claim (Account const &acc, Json::Value const &bridge, std::uint32_t claimID, AnyAmount const &amt, Account const &dst)
 
Json::Value sidechain_xchain_account_create (Account const &acc, Json::Value const &bridge, Account const &dst, AnyAmount const &amt, AnyAmount const &reward)
 
Json::Value claim_attestation (jtx::Account const &submittingAccount, Json::Value const &jvBridge, jtx::Account const &sendingAccount, jtx::AnyAmount const &sendingAmount, jtx::Account const &rewardAccount, bool wasLockingChainSend, std::uint64_t claimID, std::optional< jtx::Account > const &dst, jtx::signer const &signer)
 
Json::Value create_account_attestation (jtx::Account const &submittingAccount, Json::Value const &jvBridge, jtx::Account const &sendingAccount, jtx::AnyAmount const &sendingAmount, jtx::AnyAmount const &rewardAmount, jtx::Account const &rewardAccount, bool wasLockingChainSend, std::uint64_t createCount, jtx::Account const &dst, jtx::signer const &signer)
 
JValueVec claim_attestations (jtx::Account const &submittingAccount, Json::Value const &jvBridge, jtx::Account const &sendingAccount, jtx::AnyAmount const &sendingAmount, std::vector< jtx::Account > const &rewardAccounts, bool wasLockingChainSend, std::uint64_t claimID, std::optional< jtx::Account > const &dst, std::vector< jtx::signer > const &signers, std::size_t const numAtts, std::size_t const fromIdx)
 
JValueVec create_account_attestations (jtx::Account const &submittingAccount, Json::Value const &jvBridge, jtx::Account const &sendingAccount, jtx::AnyAmount const &sendingAmount, jtx::AnyAmount const &rewardAmount, std::vector< jtx::Account > const &rewardAccounts, bool wasLockingChainSend, std::uint64_t createCount, jtx::Account const &dst, std::vector< jtx::signer > const &signers, std::size_t const numAtts, std::size_t const fromIdx)
 
Json::Value noop (Account const &account)
 The null transaction.
 
template<class... Args>
require_t required (Args const &... args)
 Compose many condition functors into one.
 
void sortSigners (std::vector< Reg > &signers)
 
template<typename Input >
requires requires(Input& v) { std::begin(v); std::end(v); }
auto make_vector (Input const &input)
 
Json::Value getAccountOffers (Env &env, Account const &acct, bool current=false)
 
Json::Value getAccountLines (Env &env, Account const &acct)
 
template<typename... IOU>
Json::Value getAccountLines (Env &env, AccountID const &acctId, IOU... ious)
 
bool checkVL (Slice const &result, std::string const &expected)
 
bool checkVL (std::shared_ptr< SLE const > const &sle, SField const &field, std::string const &expected)
 
template<class T >
std::enable_if_t< std::is_constructible< Account, T >::value > stpath_append_one (STPath &st, T const &t)
 
template<class T , class... Args>
void stpath_append (STPath &st, T const &t, Args const &... args)
 
template<class... Args>
void stpathset_append (STPathSet &st, STPath const &p, Args const &... args)
 
template<class... Args>
STPath stpath (Args const &... args)
 
template<class... Args>
bool same (STPathSet const &st1, Args const &... args)
 
template<typename... Amts>
bool expectHolding (Env &env, AccountID const &account, STAmount const &value, Amts const &... amts)
 
template<class Suite >
void checkMetrics (Suite &test, jtx::Env &env, std::size_t expectedCount, std::optional< std::size_t > expectedMaxCount, std::size_t expectedInLedger, std::size_t expectedPerLedger, std::uint64_t expectedMinFeeLevel=baseFeeLevel.fee(), std::uint64_t expectedMedFeeLevel=minEscalationFeeLevel.fee(), source_location const location=source_location::current())
 
Json::Value sidechain_xchain_account_claim (Account const &acc, Json::Value const &bridge, Account const &dst, AnyAmount const &amt)
 

Variables

constexpr XRPAmount dropsPerXRP {1'000'000}
 
XRP_t const XRP {}
 Converts to XRP Issue or STAmount.
 
static epsilon_t const epsilon
 
any_t const any {}
 Returns an amount representing "any issuer".
 
auto constexpr defaultseed = "shUwVw52ofnCUX5m7kPTKzJdr4HEH"
 
static MPTInit const mptInitNoFund {.fund = false}
 
static none_t const none
 
static autofill_t const autofill
 
static disabled_t const disabled
 
static increment_t const increment
 
auto const data = JTxFieldWrapper<blobField>(sfData)
 General field definitions, or fields used in multiple transaction namespaces.
 
static constexpr FeeLevel64 baseFeeLevel {TxQ::baseLevel}
 
static constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500
 
constexpr std::size_t UT_XCHAIN_DEFAULT_NUM_SIGNERS = 5
 
constexpr std::size_t UT_XCHAIN_DEFAULT_QUORUM = 4
 

Typedef Documentation

◆ checks

using ripple::test::jtx::checks = typedef owner_count<ltCHECK>

Match the number of checks on the account.

Definition at line 42 of file check.h.

◆ siglists

using ripple::test::jtx::siglists = typedef owner_count<ltSIGNER_LIST>

The number of signer lists matches.

Definition at line 117 of file multisign.h.

◆ lines

using ripple::test::jtx::lines = typedef owner_count<ltRIPPLE_STATE>

Match the number of trust lines in the account's owner directory.

Definition at line 70 of file owners.h.

◆ offers

using ripple::test::jtx::offers = typedef owner_count<ltOFFER>

Match the number of offers in the account's owner directory.

Definition at line 73 of file owners.h.

◆ require_t

Definition at line 13 of file requires.h.

◆ requires_t

Definition at line 14 of file requires.h.

◆ valueUnitWrapper

template<class SField , class UnitTag , class ValueType = typename SField::type::value_type>
using ripple::test::jtx::valueUnitWrapper = typedef JTxFieldWrapper<valueUnitField<SField, UnitTag, ValueType> >

Definition at line 268 of file TestHelpers.h.

◆ simpleField

template<class SField , class StoredValue = typename SField::type::value_type>
using ripple::test::jtx::simpleField = typedef JTxFieldWrapper<JTxField<SField, StoredValue> >

Definition at line 272 of file TestHelpers.h.

◆ tickets

using ripple::test::jtx::tickets = typedef owner_count<ltTICKET>

Match the number of tickets on the account.

Definition at line 45 of file ticket.h.

◆ JValueVec

Definition at line 16 of file xchain_bridge.h.

Enumeration Type Documentation

◆ Fund

enum class ripple::test::jtx::Fund
strong
Enumerator
All 
Acct 
Gw 
IOUOnly 

Definition at line 17 of file AMMTest.h.

Function Documentation

◆ operator==() [1/2]

bool ripple::test::jtx::operator== ( Account const &  lhs,
Account const &  rhs 
)
noexcept

Definition at line 135 of file Account.h.

◆ hash_append()

template<class Hasher >
void ripple::test::jtx::hash_append ( Hasher &  h,
Account const &  v 
)
noexcept

Definition at line 142 of file Account.h.

◆ operator<=>()

auto ripple::test::jtx::operator<=> ( Account const &  lhs,
Account const &  rhs 
)
noexcept

Definition at line 147 of file Account.h.

◆ acctdelete()

Json::Value ripple::test::jtx::acctdelete ( jtx::Account const &  account,
jtx::Account const &  dest 
)

Delete account.

If successful transfer remaining XRP to dest.

Definition at line 12 of file acctdelete.cpp.

◆ incLgrSeqForAccDel()

void ripple::test::jtx::incLgrSeqForAccDel ( jtx::Env env,
jtx::Account const &  acc,
std::uint32_t  margin = 0 
)

Definition at line 25 of file acctdelete.cpp.

◆ fund() [1/3]

void ripple::test::jtx::fund ( jtx::Env env,
jtx::Account const &  gw,
std::vector< jtx::Account > const &  accounts,
std::vector< STAmount > const &  amts,
Fund  how 
)

Definition at line 18 of file AMMTest.cpp.

◆ fund() [2/3]

void ripple::test::jtx::fund ( jtx::Env env,
jtx::Account const &  gw,
std::vector< jtx::Account > const &  accounts,
STAmount const &  xrp,
std::vector< STAmount > const &  amts = {},
Fund  how = Fund::All 
)

Definition at line 56 of file AMMTest.cpp.

◆ fund() [3/3]

void ripple::test::jtx::fund ( jtx::Env env,
std::vector< jtx::Account > const &  accounts,
STAmount const &  xrp,
std::vector< STAmount > const &  amts = {},
Fund  how = Fund::All 
)

Definition at line 29 of file AMMTest.cpp.

◆ operator==() [2/2]

bool ripple::test::jtx::operator== ( PrettyAmount const &  lhs,
PrettyAmount const &  rhs 
)

Definition at line 146 of file src/test/jtx/amount.h.

◆ operator!=()

bool ripple::test::jtx::operator!= ( PrettyAmount const &  lhs,
PrettyAmount const &  rhs 
)

Definition at line 152 of file src/test/jtx/amount.h.

◆ operator<<() [1/3]

std::ostream & ripple::test::jtx::operator<< ( std::ostream os,
PrettyAmount const &  amount 
)

Definition at line 53 of file amount.cpp.

◆ drops() [1/2]

template<class Integer , class = std::enable_if_t<std::is_integral_v<Integer>>>
PrettyAmount ripple::test::jtx::drops ( Integer  i)

Returns an XRP PrettyAmount, which is trivially convertible to STAmount.

Example: drops(10) Returns PrettyAmount of 10 drops

Definition at line 307 of file src/test/jtx/amount.h.

◆ drops() [2/2]

PrettyAmount ripple::test::jtx::drops ( XRPAmount  i)

Returns an XRP PrettyAmount, which is trivially convertible to STAmount.

Example: drops(view->fee().basefee) Returns PrettyAmount of 10 drops

Definition at line 318 of file src/test/jtx/amount.h.

◆ operator<<() [2/3]

std::ostream & ripple::test::jtx::operator<< ( std::ostream os,
IOU const &  iou 
)

Definition at line 107 of file amount.cpp.

◆ operator<<() [3/3]

std::ostream & ripple::test::jtx::operator<< ( std::ostream os,
MPT const &  mpt 
)

◆ sign_claim_attestation()

Buffer ripple::test::jtx::sign_claim_attestation ( PublicKey const &  pk,
SecretKey const &  sk,
STXChainBridge const &  bridge,
AccountID const &  sendingAccount,
STAmount const &  sendingAmount,
AccountID const &  rewardAccount,
bool  wasLockingChainSend,
std::uint64_t  claimID,
std::optional< AccountID > const &  dst 
)

Definition at line 13 of file attester.cpp.

◆ sign_create_account_attestation()

Buffer ripple::test::jtx::sign_create_account_attestation ( PublicKey const &  pk,
SecretKey const &  sk,
STXChainBridge const &  bridge,
AccountID const &  sendingAccount,
STAmount const &  sendingAmount,
STAmount const &  rewardAmount,
AccountID const &  rewardAccount,
bool  wasLockingChainSend,
std::uint64_t  createCount,
AccountID const &  dst 
)

Definition at line 36 of file attester.cpp.

◆ noripple()

template<class... Args>
std::array< Account, 1+sizeof...(Args)> ripple::test::jtx::noripple ( Account const &  account,
Args const &...  args 
)

Designate accounts as no-ripple in Env::fund.

Definition at line 49 of file Env.h.

◆ testable_amendments()

FeatureBitset ripple::test::jtx::testable_amendments ( )

Definition at line 55 of file Env.h.

◆ envconfig() [1/2]

std::unique_ptr< Config > ripple::test::jtx::envconfig ( )

creates and initializes a default configuration for jtx::Env

Returns
unique_ptr to Config instance

Definition at line 35 of file envconfig.h.

◆ envconfig() [2/2]

template<class F , class... Args>
std::unique_ptr< Config > ripple::test::jtx::envconfig ( F &&  modfunc,
Args &&...  args 
)

creates and initializes a default configuration for jtx::Env and invokes the provided function/lambda with the configuration object.

Parameters
modfunccallable function or lambda to modify the default config. The first argument to the function must be std::unique_ptr to ripple::Config. The function takes ownership of the unique_ptr and relinquishes ownership by returning a unique_ptr.
argsadditional arguments that will be passed to the config modifier function (optional)
Returns
unique_ptr to Config instance

Definition at line 56 of file envconfig.h.

◆ no_admin()

std::unique_ptr< Config > ripple::test::jtx::no_admin ( std::unique_ptr< Config cfg)

adjust config so no admin ports are enabled

this is intended for use with envconfig, as in envconfig(no_admin)

Parameters
cfgconfig instance to be modified
Returns
unique_ptr to Config instance

Definition at line 57 of file envconfig.cpp.

◆ secure_gateway()

std::unique_ptr< Config > ripple::test::jtx::secure_gateway ( std::unique_ptr< Config cfg)

Definition at line 65 of file envconfig.cpp.

◆ admin_localnet()

std::unique_ptr< Config > ripple::test::jtx::admin_localnet ( std::unique_ptr< Config cfg)

Definition at line 74 of file envconfig.cpp.

◆ secure_gateway_localnet()

std::unique_ptr< Config > ripple::test::jtx::secure_gateway_localnet ( std::unique_ptr< Config cfg)

Definition at line 82 of file envconfig.cpp.

◆ validator()

std::unique_ptr< Config > ripple::test::jtx::validator ( std::unique_ptr< Config cfg,
std::string const &  seed 
)

adjust configuration with params needed to be a validator

this is intended for use with envconfig, as in envconfig(validator, myseed)

Parameters
cfgconfig instance to be modified
seedseed string for use in secret key generation. A fixed default value will be used if this string is empty
Returns
unique_ptr to Config instance

Definition at line 94 of file envconfig.cpp.

◆ addGrpcConfig()

std::unique_ptr< Config > ripple::test::jtx::addGrpcConfig ( std::unique_ptr< Config cfg)

add a grpc address and port to config

This is intended for use with envconfig, for tests that require a grpc server. If this function is not called, grpc server will not start

Parameters
cfgconfig instance to be modified

Definition at line 103 of file envconfig.cpp.

◆ addGrpcConfigWithSecureGateway()

std::unique_ptr< Config > ripple::test::jtx::addGrpcConfigWithSecureGateway ( std::unique_ptr< Config cfg,
std::string const &  secureGateway 
)

add a grpc address, port and secure_gateway to config

This is intended for use with envconfig, for tests that require a grpc server. If this function is not called, grpc server will not start

Parameters
cfgconfig instance to be modified

Definition at line 111 of file envconfig.cpp.

◆ makeConfig()

std::unique_ptr< Config > ripple::test::jtx::makeConfig ( std::map< std::string, std::string extraTxQ = {},
std::map< std::string, std::string extraVoting = {} 
)

Definition at line 125 of file envconfig.cpp.

◆ fset()

Json::Value ripple::test::jtx::fset ( Account const &  account,
std::uint32_t  on,
std::uint32_t  off = 0 
)
protected

Add and/or remove flag.

Definition at line 10 of file flags.cpp.

◆ fclear()

Json::Value ripple::test::jtx::fclear ( Account const &  account,
std::uint32_t  off 
)
protected

Remove account flag.

Definition at line 102 of file flags.h.

◆ number()

static Number ripple::test::jtx::number ( STAmount const &  a)
static

Definition at line 17 of file AMM.cpp.

◆ to_places()

template<typename T >
static std::string ripple::test::jtx::to_places ( T const  d,
std::uint8_t  places 
)
static

Definition at line 38 of file amount.cpp.

◆ doBalance() [1/2]

void ripple::test::jtx::doBalance ( Env env,
AccountID const &  account,
bool  none,
STAmount const &  value,
Issue const &  issue 
)

Definition at line 8 of file balance.cpp.

◆ doBalance() [2/2]

void ripple::test::jtx::doBalance ( Env env,
AccountID const &  account,
bool  none,
STAmount const &  value,
MPTIssue const &  mptIssue 
)

Definition at line 46 of file balance.cpp.

◆ signers() [1/2]

Json::Value ripple::test::jtx::signers ( Account const &  account,
std::uint32_t  quorum,
std::vector< signer > const &  v 
)

Definition at line 15 of file multisign.cpp.

◆ signers() [2/2]

Json::Value ripple::test::jtx::signers ( Account const &  account,
none_t   
)

Remove a signer list.

Definition at line 38 of file multisign.cpp.

◆ offer()

Json::Value ripple::test::jtx::offer ( Account const &  account,
STAmount const &  takerPays,
STAmount const &  takerGets,
std::uint32_t  flags 
)

Create an offer.

Definition at line 10 of file offer.cpp.

◆ offer_cancel()

Json::Value ripple::test::jtx::offer_cancel ( Account const &  account,
std::uint32_t  offerSeq 
)

Cancel an offer.

Definition at line 27 of file offer.cpp.

◆ pay() [1/2]

Json::Value ripple::test::jtx::pay ( AccountID const &  account,
AccountID const &  to,
AnyAmount  amount 
)

Create a payment.

Definition at line 11 of file pay.cpp.

◆ pay() [2/2]

Json::Value ripple::test::jtx::pay ( Account const &  account,
Account const &  to,
AnyAmount  amount 
)

Definition at line 23 of file pay.cpp.

◆ setupDomain()

uint256 ripple::test::jtx::setupDomain ( jtx::Env env,
std::vector< jtx::Account > const &  accounts,
jtx::Account const &  domainOwner,
std::string const &  credType 
)

Definition at line 13 of file permissioned_dex.cpp.

◆ insertQualityIntoJtx()

static void ripple::test::jtx::insertQualityIntoJtx ( SField const &  field,
std::uint32_t  value,
JTx jt 
)
static

Definition at line 23 of file quality2.cpp.

◆ rate()

Json::Value ripple::test::jtx::rate ( Account const &  account,
double  multiplier 
)

Set a transfer rate.

Definition at line 13 of file rate.cpp.

◆ regkey() [1/2]

Json::Value ripple::test::jtx::regkey ( Account const &  account,
disabled_t   
)

Disable the regular key.

Definition at line 10 of file regkey.cpp.

◆ regkey() [2/2]

Json::Value ripple::test::jtx::regkey ( Account const &  account,
Account const &  signer 
)

Set a regular key.

Definition at line 19 of file regkey.cpp.

◆ getAccountOffers() [1/2]

Json::Value ripple::test::jtx::getAccountOffers ( Env env,
AccountID const &  acct,
bool  current 
)

Definition at line 13 of file TestHelpers.cpp.

◆ getAccountLines() [1/3]

Json::Value ripple::test::jtx::getAccountLines ( Env env,
AccountID const &  acctId 
)

Definition at line 21 of file TestHelpers.cpp.

◆ checkArraySize()

bool ripple::test::jtx::checkArraySize ( Json::Value const &  val,
unsigned int  size 
)

Definition at line 29 of file TestHelpers.cpp.

◆ ownerCount()

std::uint32_t ripple::test::jtx::ownerCount ( Env const &  env,
Account const &  account 
)

Definition at line 35 of file TestHelpers.cpp.

◆ stpath_append_one() [1/3]

void ripple::test::jtx::stpath_append_one ( STPath st,
Account const &  account 
)

Definition at line 43 of file TestHelpers.cpp.

◆ stpath_append_one() [2/3]

void ripple::test::jtx::stpath_append_one ( STPath st,
STPathElement const &  pe 
)

Definition at line 49 of file TestHelpers.cpp.

◆ equal()

bool ripple::test::jtx::equal ( STAmount const &  sa1,
STAmount const &  sa2 
)

Definition at line 55 of file TestHelpers.cpp.

◆ IPE()

STPathElement ripple::test::jtx::IPE ( Issue const &  iss)

Definition at line 62 of file TestHelpers.cpp.

◆ txfee()

XRPAmount ripple::test::jtx::txfee ( Env const &  env,
std::uint16_t  n 
)

Definition at line 74 of file TestHelpers.cpp.

◆ xrpMinusFee()

PrettyAmount ripple::test::jtx::xrpMinusFee ( Env const &  env,
std::int64_t  xrpAmount 
)

Definition at line 80 of file TestHelpers.cpp.

◆ expectHolding() [1/5]

bool ripple::test::jtx::expectHolding ( Env env,
AccountID const &  account,
STAmount const &  value,
bool  defaultLimits 
)

Definition at line 87 of file TestHelpers.cpp.

◆ expectHolding() [2/5]

bool ripple::test::jtx::expectHolding ( Env env,
AccountID const &  account,
None const &  ,
Issue const &  issue 
)

Definition at line 121 of file TestHelpers.cpp.

◆ expectHolding() [3/5]

bool ripple::test::jtx::expectHolding ( Env env,
AccountID const &  account,
None const &  ,
MPTIssue const &  mptIssue 
)

Definition at line 131 of file TestHelpers.cpp.

◆ expectHolding() [4/5]

bool ripple::test::jtx::expectHolding ( Env env,
AccountID const &  account,
None const &  value 
)

Definition at line 141 of file TestHelpers.cpp.

◆ expectOffers()

bool ripple::test::jtx::expectOffers ( Env env,
AccountID const &  account,
std::uint16_t  size,
std::vector< Amounts > const &  toMatch 
)

Definition at line 151 of file TestHelpers.cpp.

◆ ledgerEntryRoot()

Json::Value ripple::test::jtx::ledgerEntryRoot ( Env env,
Account const &  acct 
)

Definition at line 179 of file TestHelpers.cpp.

◆ ledgerEntryState()

Json::Value ripple::test::jtx::ledgerEntryState ( Env env,
Account const &  acct_a,
Account const &  acct_b,
std::string const &  currency 
)

Definition at line 188 of file TestHelpers.cpp.

◆ accountBalance()

Json::Value ripple::test::jtx::accountBalance ( Env env,
Account const &  acct 
)

Definition at line 204 of file TestHelpers.cpp.

◆ expectLedgerEntryRoot()

bool ripple::test::jtx::expectLedgerEntryRoot ( Env env,
Account const &  acct,
STAmount const &  expectedValue 
)

Definition at line 211 of file TestHelpers.cpp.

◆ n_offers()

void ripple::test::jtx::n_offers ( Env env,
std::size_t  n,
Account const &  account,
STAmount const &  in,
STAmount const &  out 
)

Definition at line 320 of file TestHelpers.cpp.

◆ cpe()

STPathElement ripple::test::jtx::cpe ( Currency const &  c)

Definition at line 341 of file TestHelpers.cpp.

◆ allpe()

STPathElement ripple::test::jtx::allpe ( AccountID const &  a,
Issue const &  iss 
)

Definition at line 349 of file TestHelpers.cpp.

◆ trust() [1/2]

Json::Value ripple::test::jtx::trust ( Account const &  account,
STAmount const &  amount,
std::uint32_t  flags 
)

Modify a trust line.

Definition at line 13 of file trust.cpp.

◆ trust() [2/2]

Json::Value ripple::test::jtx::trust ( Account const &  account,
STAmount const &  amount,
Account const &  peer,
std::uint32_t  flags 
)

Change flags on a trust line.

Definition at line 30 of file trust.cpp.

◆ claw()

Json::Value ripple::test::jtx::claw ( Account const &  account,
STAmount const &  amount,
std::optional< Account > const &  mptHolder 
)

Definition at line 50 of file trust.cpp.

◆ parse()

STObject ripple::test::jtx::parse ( Json::Value const &  jv)

Convert JSON to STObject.

This throws on failure, the JSON must be correct.

Note
Testing malformed JSON is beyond the scope of this set of unit test routines.

Definition at line 19 of file utility.cpp.

◆ sign() [1/2]

void ripple::test::jtx::sign ( Json::Value jv,
Account const &  account,
Json::Value sigObject 
)

Sign automatically into a specific Json field of the jv object.

Note
This only works on accounts with multi-signing off.

Definition at line 28 of file utility.cpp.

◆ sign() [2/2]

void ripple::test::jtx::sign ( Json::Value jv,
Account const &  account 
)

Sign automatically.

Note
This only works on accounts with multi-signing off.

Definition at line 39 of file utility.cpp.

◆ fill_fee()

void ripple::test::jtx::fill_fee ( Json::Value jv,
ReadView const &  view 
)

Set the fee automatically.

Definition at line 45 of file utility.cpp.

◆ fill_seq()

void ripple::test::jtx::fill_seq ( Json::Value jv,
ReadView const &  view 
)

Set the sequence number automatically.

Definition at line 53 of file utility.cpp.

◆ cmdToJSONRPC()

Json::Value ripple::test::jtx::cmdToJSONRPC ( std::vector< std::string > const &  args,
beast::Journal  j,
unsigned int  apiVersion 
)

Given a rippled unit test rpc command, return the corresponding JSON.

Definition at line 67 of file utility.cpp.

◆ bridge()

Json::Value ripple::test::jtx::bridge ( Account const &  lockingChainDoor,
Issue const &  lockingChainIssue,
Account const &  issuingChainDoor,
Issue const &  issuingChainIssue 
)

Definition at line 21 of file xchain_bridge.cpp.

◆ bridge_rpc()

Json::Value ripple::test::jtx::bridge_rpc ( Account const &  lockingChainDoor,
Issue const &  lockingChainIssue,
Account const &  issuingChainDoor,
Issue const &  issuingChainIssue 
)

Definition at line 37 of file xchain_bridge.cpp.

◆ bridge_create()

Json::Value ripple::test::jtx::bridge_create ( Account const &  acc,
Json::Value const &  bridge,
STAmount const &  reward,
std::optional< STAmount > const &  minAccountCreate 
)

Definition at line 52 of file xchain_bridge.cpp.

◆ bridge_modify()

Json::Value ripple::test::jtx::bridge_modify ( Account const &  acc,
Json::Value const &  bridge,
std::optional< STAmount > const &  reward,
std::optional< STAmount > const &  minAccountCreate 
)

Definition at line 72 of file xchain_bridge.cpp.

◆ xchain_create_claim_id()

Json::Value ripple::test::jtx::xchain_create_claim_id ( Account const &  acc,
Json::Value const &  bridge,
STAmount const &  reward,
Account const &  otherChainSource 
)

Definition at line 94 of file xchain_bridge.cpp.

◆ xchain_commit()

Json::Value ripple::test::jtx::xchain_commit ( Account const &  acc,
Json::Value const &  bridge,
std::uint32_t  claimID,
AnyAmount const &  amt,
std::optional< Account > const &  dst 
)

Definition at line 112 of file xchain_bridge.cpp.

◆ xchain_claim()

Json::Value ripple::test::jtx::xchain_claim ( Account const &  acc,
Json::Value const &  bridge,
std::uint32_t  claimID,
AnyAmount const &  amt,
Account const &  dst 
)

Definition at line 133 of file xchain_bridge.cpp.

◆ sidechain_xchain_account_create()

Json::Value ripple::test::jtx::sidechain_xchain_account_create ( Account const &  acc,
Json::Value const &  bridge,
Account const &  dst,
AnyAmount const &  amt,
AnyAmount const &  reward 
)

Definition at line 153 of file xchain_bridge.cpp.

◆ claim_attestation()

Json::Value ripple::test::jtx::claim_attestation ( jtx::Account const &  submittingAccount,
Json::Value const &  jvBridge,
jtx::Account const &  sendingAccount,
jtx::AnyAmount const &  sendingAmount,
jtx::Account const &  rewardAccount,
bool  wasLockingChainSend,
std::uint64_t  claimID,
std::optional< jtx::Account > const &  dst,
jtx::signer const &  signer 
)

Definition at line 174 of file xchain_bridge.cpp.

◆ create_account_attestation()

Json::Value ripple::test::jtx::create_account_attestation ( jtx::Account const &  submittingAccount,
Json::Value const &  jvBridge,
jtx::Account const &  sendingAccount,
jtx::AnyAmount const &  sendingAmount,
jtx::AnyAmount const &  rewardAmount,
jtx::Account const &  rewardAccount,
bool  wasLockingChainSend,
std::uint64_t  createCount,
jtx::Account const &  dst,
jtx::signer const &  signer 
)

Definition at line 225 of file xchain_bridge.cpp.

◆ claim_attestations()

JValueVec ripple::test::jtx::claim_attestations ( jtx::Account const &  submittingAccount,
Json::Value const &  jvBridge,
jtx::Account const &  sendingAccount,
jtx::AnyAmount const &  sendingAmount,
std::vector< jtx::Account > const &  rewardAccounts,
bool  wasLockingChainSend,
std::uint64_t  claimID,
std::optional< jtx::Account > const &  dst,
std::vector< jtx::signer > const &  signers,
std::size_t const  numAtts,
std::size_t const  fromIdx 
)

Definition at line 279 of file xchain_bridge.cpp.

◆ create_account_attestations()

JValueVec ripple::test::jtx::create_account_attestations ( jtx::Account const &  submittingAccount,
Json::Value const &  jvBridge,
jtx::Account const &  sendingAccount,
jtx::AnyAmount const &  sendingAmount,
jtx::AnyAmount const &  rewardAmount,
std::vector< jtx::Account > const &  rewardAccounts,
bool  wasLockingChainSend,
std::uint64_t  createCount,
jtx::Account const &  dst,
std::vector< jtx::signer > const &  signers,
std::size_t const  numAtts,
std::size_t const  fromIdx 
)

Definition at line 311 of file xchain_bridge.cpp.

◆ noop()

Json::Value ripple::test::jtx::noop ( Account const &  account)

The null transaction.

Definition at line 12 of file noop.h.

◆ required()

template<class... Args>
require_t ripple::test::jtx::required ( Args const &...  args)

Compose many condition functors into one.

Definition at line 30 of file require.h.

◆ sortSigners()

void ripple::test::jtx::sortSigners ( std::vector< Reg > &  signers)

Definition at line 44 of file SignerUtils.h.

◆ make_vector()

template<typename Input >
requires requires(Input& v) { std::begin(v); std::end(v); }
auto ripple::test::jtx::make_vector ( Input const &  input)

Definition at line 284 of file TestHelpers.h.

◆ getAccountOffers() [2/2]

Json::Value ripple::test::jtx::getAccountOffers ( Env env,
Account const &  acct,
bool  current = false 
)

Definition at line 298 of file TestHelpers.h.

◆ getAccountLines() [2/3]

Json::Value ripple::test::jtx::getAccountLines ( Env env,
Account const &  acct 
)

Definition at line 307 of file TestHelpers.h.

◆ getAccountLines() [3/3]

template<typename... IOU>
Json::Value ripple::test::jtx::getAccountLines ( Env env,
AccountID const &  acctId,
IOU...  ious 
)

Definition at line 314 of file TestHelpers.h.

◆ checkVL() [1/2]

bool ripple::test::jtx::checkVL ( Slice const &  result,
std::string const &  expected 
)

Definition at line 347 of file TestHelpers.h.

◆ checkVL() [2/2]

bool ripple::test::jtx::checkVL ( std::shared_ptr< SLE const > const &  sle,
SField const &  field,
std::string const &  expected 
)

Definition at line 356 of file TestHelpers.h.

◆ stpath_append_one() [3/3]

template<class T >
std::enable_if_t< std::is_constructible< Account, T >::value > ripple::test::jtx::stpath_append_one ( STPath st,
T const &  t 
)

Definition at line 371 of file TestHelpers.h.

◆ stpath_append()

template<class T , class... Args>
void ripple::test::jtx::stpath_append ( STPath st,
T const &  t,
Args const &...  args 
)

Definition at line 381 of file TestHelpers.h.

◆ stpathset_append()

template<class... Args>
void ripple::test::jtx::stpathset_append ( STPathSet st,
STPath const &  p,
Args const &...  args 
)

Definition at line 390 of file TestHelpers.h.

◆ stpath()

template<class... Args>
STPath ripple::test::jtx::stpath ( Args const &...  args)

Definition at line 406 of file TestHelpers.h.

◆ same()

template<class... Args>
bool ripple::test::jtx::same ( STPathSet const &  st1,
Args const &...  args 
)

Definition at line 415 of file TestHelpers.h.

◆ expectHolding() [5/5]

template<typename... Amts>
bool ripple::test::jtx::expectHolding ( Env env,
AccountID const &  account,
STAmount const &  value,
Amts const &...  amts 
)

Definition at line 447 of file TestHelpers.h.

◆ checkMetrics()

template<class Suite >
void ripple::test::jtx::checkMetrics ( Suite &  test,
jtx::Env env,
std::size_t  expectedCount,
std::optional< std::size_t expectedMaxCount,
std::size_t  expectedInLedger,
std::size_t  expectedPerLedger,
std::uint64_t  expectedMinFeeLevel = baseFeeLevel.fee(),
std::uint64_t  expectedMedFeeLevel = minEscalationFeeLevel.fee(),
source_location const  location = source_location::current() 
)

Definition at line 609 of file TestHelpers.h.

◆ sidechain_xchain_account_claim()

Json::Value ripple::test::jtx::sidechain_xchain_account_claim ( Account const &  acc,
Json::Value const &  bridge,
Account const &  dst,
AnyAmount const &  amt 
)

Variable Documentation

◆ dropsPerXRP

constexpr XRPAmount ripple::test::jtx::dropsPerXRP {1'000'000}
constexpr

Definition at line 58 of file src/test/jtx/amount.h.

◆ XRP

XRP_t const ripple::test::jtx::XRP {}

Converts to XRP Issue or STAmount.

Examples: XRP Converts to the XRP Issue XRP(10) Returns STAmount of 10 XRP

Definition at line 92 of file amount.cpp.

◆ epsilon

epsilon_t const ripple::test::jtx::epsilon
static

Definition at line 339 of file src/test/jtx/amount.h.

◆ any

any_t const ripple::test::jtx::any {}

Returns an amount representing "any issuer".

Note
With respect to what the recipient will accept

Definition at line 114 of file amount.cpp.

◆ defaultseed

auto constexpr ripple::test::jtx::defaultseed = "shUwVw52ofnCUX5m7kPTKzJdr4HEH"
constexpr

Definition at line 91 of file envconfig.cpp.

◆ mptInitNoFund

MPTInit const ripple::test::jtx::mptInitNoFund {.fund = false}
static

Definition at line 78 of file mpt.h.

◆ none

none_t const ripple::test::jtx::none
static

Definition at line 15 of file tags.h.

◆ autofill

autofill_t const ripple::test::jtx::autofill
static

Definition at line 23 of file tags.h.

◆ disabled

disabled_t const ripple::test::jtx::disabled
static

Definition at line 31 of file tags.h.

◆ increment

increment_t const ripple::test::jtx::increment
static

Definition at line 41 of file tags.h.

◆ data

auto const ripple::test::jtx::data = JTxFieldWrapper<blobField>(sfData)

General field definitions, or fields used in multiple transaction namespaces.

Definition at line 276 of file TestHelpers.h.

◆ baseFeeLevel

constexpr FeeLevel64 ripple::test::jtx::baseFeeLevel {TxQ::baseLevel}
staticconstexpr

Definition at line 604 of file TestHelpers.h.

◆ minEscalationFeeLevel

constexpr FeeLevel64 ripple::test::jtx::minEscalationFeeLevel = baseFeeLevel * 500
staticconstexpr

Definition at line 605 of file TestHelpers.h.

◆ UT_XCHAIN_DEFAULT_NUM_SIGNERS

constexpr std::size_t ripple::test::jtx::UT_XCHAIN_DEFAULT_NUM_SIGNERS = 5
constexpr

Definition at line 18 of file xchain_bridge.h.

◆ UT_XCHAIN_DEFAULT_QUORUM

constexpr std::size_t ripple::test::jtx::UT_XCHAIN_DEFAULT_QUORUM = 4
constexpr

Definition at line 19 of file xchain_bridge.h.