|
rippled
|
Namespaces | |
| amm | |
| check | |
| Check operations. | |
| deposit | |
| Deposit preauthorize operations. | |
| detail | |
| did | |
| DID operations. | |
| ticket | |
| Ticket operations. | |
| token | |
Classes | |
| class | Account |
| Immutable cryptographic account descriptor. More... | |
| struct | account_txn_id |
| 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 | BookSpec |
| struct | cancel_time |
| Set the "CancelAfter" time tag on a JTx. More... | |
| struct | condition |
| class | delivermin |
| Sets the DeliverMin on a JTx. More... | |
| class | dest_tag |
| Set DestinationTag on a JTx. More... | |
| struct | disabled_t |
| 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... | |
| struct | finish_time |
| Set the "FinishAfter" time tag on a JTx. More... | |
| class | flags |
| Match set account flags. More... | |
| struct | fulfillment |
| 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 | 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 | 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... | |
| struct | PrettyAmount |
| Represents an XRP or IOU quantity This customizes the string conversion and supports XRP conversions from integer and floating point. More... | |
| 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... | |
| class | require |
| Check a set of conditions. 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... | |
| class | txflags |
| Set the flags on a JTx. More... | |
| struct | XChainBridgeObjects |
| struct | XRP_t |
Typedefs | |
| using | checks = owner_count< ltCHECK > |
| Match the number of checks on the account. More... | |
| using | siglists = owner_count< ltSIGNER_LIST > |
| The number of signer lists matches. More... | |
| using | lines = owner_count< ltRIPPLE_STATE > |
| Match the number of trust lines in the account's owner directory. More... | |
| using | offers = owner_count< ltOFFER > |
| Match the number of offers in the account's owner directory. More... | |
| using | require_t = std::function< void(Env &)> |
| using | requires_t = std::vector< require_t > |
| using | tickets = owner_count< ltTICKET > |
| Match the number of tickets on the account. More... | |
| using | JValueVec = std::vector< Json::Value > |
Enumerations | |
| enum | Fund { Fund::All, Fund::Acct, Fund::Gw, Fund::IOUOnly } |
Functions | |
| bool | operator== (Account const &lhs, Account const &rhs) noexcept |
| template<class Hasher > | |
| void | hash_append (Hasher &h, Account const &v) noexcept |
| bool | operator< (Account const &lhs, Account const &rhs) noexcept |
| Json::Value | acctdelete (Account const &account, Account const &dest) |
| Delete account. More... | |
| 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::ostream & | operator<< (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. More... | |
| PrettyAmount | drops (XRPAmount i) |
| Returns an XRP PrettyAmount, which is trivially convertible to STAmount. More... | |
| std::ostream & | operator<< (std::ostream &os, IOU const &iou) |
| 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. More... | |
| FeatureBitset | supported_amendments () |
| void | forAllApiVersions (VersionedTestCallable auto... testCallable) |
| std::unique_ptr< Config > | envconfig () |
| creates and initializes a default configuration for jtx::Env More... | |
| template<class F , class... Args> | |
| std::unique_ptr< Config > | envconfig (F &&modfunc, Args &&... args) |
| creates and initializes a default configuration for jtx::Env and invokes the provided function/lambda with the configuration object. More... | |
| std::unique_ptr< Config > | no_admin (std::unique_ptr< Config >) |
| adjust config so no admin ports are enabled More... | |
| std::unique_ptr< Config > | secure_gateway (std::unique_ptr< Config >) |
| std::unique_ptr< Config > | admin_localnet (std::unique_ptr< Config >) |
| std::unique_ptr< Config > | secure_gateway_localnet (std::unique_ptr< Config >) |
| std::unique_ptr< Config > | validator (std::unique_ptr< Config >, std::string const &) |
| adjust configuration with params needed to be a validator More... | |
| std::unique_ptr< Config > | port_increment (std::unique_ptr< Config >, int) |
| adjust the default configured server ports by a specified value More... | |
| std::unique_ptr< Config > | addGrpcConfig (std::unique_ptr< Config >) |
| add a grpc address and port to config More... | |
| std::unique_ptr< Config > | addGrpcConfigWithSecureGateway (std::unique_ptr< Config >, std::string const &secureGateway) |
| add a grpc address, port and secure_gateway to config More... | |
| Json::Value | fset (Account const &account, std::uint32_t on, std::uint32_t off=0) |
| Add and/or remove flag. More... | |
| Json::Value | fclear (Account const &account, std::uint32_t off) |
| Remove account flag. More... | |
| static Number | number (STAmount const &a) |
| static IOUAmount | initialTokens (STAmount const &asset1, STAmount const &asset2) |
| template<typename T > | |
| static std::string | to_places (const T d, std::uint8_t places) |
| 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. More... | |
| Json::Value | offer (Account const &account, STAmount const &takerPays, STAmount const &takerGets, std::uint32_t flags=0) |
| Create an offer. More... | |
| Json::Value | offer_cancel (Account const &account, std::uint32_t offerSeq) |
| Cancel an offer. More... | |
| Json::Value | pay (AccountID const &account, AccountID const &to, AnyAmount amount) |
| Create a payment. More... | |
| Json::Value | pay (Account const &account, Account const &to, AnyAmount amount) |
| static void | insertQualityIntoJtx (SField const &field, std::uint32_t value, JTx &jt) |
| Json::Value | rate (Account const &account, double multiplier) |
| Set a transfer rate. More... | |
| Json::Value | regkey (Account const &account, disabled_t) |
| Disable the regular key. More... | |
| Json::Value | regkey (Account const &account, Account const &signer) |
| Set a regular key. More... | |
| 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) |
| 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 | expectLine (Env &env, AccountID const &account, STAmount const &value, bool defaultLimits) |
| bool | expectLine (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 ¤cy) |
| Json::Value | accountBalance (Env &env, Account const &acct) |
| bool | expectLedgerEntryRoot (Env &env, Account const &acct, STAmount const &expectedValue) |
| Json::Value | escrow (AccountID const &account, AccountID const &to, STAmount const &amount) |
| Json::Value | finish (AccountID const &account, AccountID const &from, std::uint32_t seq) |
| Json::Value | cancel (AccountID const &account, Account const &from, std::uint32_t seq) |
| Json::Value | create (AccountID const &account, AccountID const &to, STAmount const &amount, NetClock::duration const &settleDelay, PublicKey const &pk, std::optional< NetClock::time_point > const &cancelAfter, std::optional< std::uint32_t > const &dstTag) |
| Json::Value | fund (AccountID const &account, uint256 const &channel, STAmount const &amount, std::optional< NetClock::time_point > const &expiration) |
| Json::Value | claim (AccountID const &account, uint256 const &channel, std::optional< STAmount > const &balance, std::optional< STAmount > const &amount, std::optional< Slice > const &signature, std::optional< PublicKey > const &pk) |
| uint256 | channel (AccountID const &account, AccountID const &dst, std::uint32_t seqProxyValue) |
| STAmount | channelBalance (ReadView const &view, uint256 const &chan) |
| bool | channelExists (ReadView const &view, uint256 const &chan) |
| 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. More... | |
| Json::Value | trust (Account const &account, STAmount const &amount, Account const &peer, std::uint32_t flags) |
| Change flags on a trust line. More... | |
| Json::Value | claw (Account const &account, STAmount const &amount) |
| STObject | parse (Json::Value const &jv) |
| Convert JSON to STObject. More... | |
| void | sign (Json::Value &jv, Account const &account) |
| Sign automatically. More... | |
| void | fill_fee (Json::Value &jv, ReadView const &view) |
| Set the fee automatically. More... | |
| void | fill_seq (Json::Value &jv, ReadView const &view) |
| Set the sequence number automatically. More... | |
| 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. More... | |
| 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. More... | |
| template<class... Args> | |
| require_t | required (Args const &... args) |
| Compose many condition functors into one. More... | |
| template<typename Input > | |
| auto | make_vector (Input const &input) requires requires(Input &v) |
| 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) |
| 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 | expectLine (Env &env, AccountID const &account, STAmount const &value, Amts const &... amts) |
| Json::Value | escrow (Account const &account, Account const &to, STAmount const &amount) |
| Json::Value | finish (Account const &account, Account const &from, std::uint32_t seq) |
| Json::Value | cancel (Account const &account, Account const &from, std::uint32_t seq) |
| Json::Value | create (Account const &account, Account const &to, STAmount const &amount, NetClock::duration const &settleDelay, PublicKey const &pk, std::optional< NetClock::time_point > const &cancelAfter=std::nullopt, std::optional< std::uint32_t > const &dstTag=std::nullopt) |
| uint256 | channel (Account const &account, Account const &dst, std::uint32_t seqProxyValue) |
| 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} |
| const XRP_t | XRP {} |
| Converts to XRP Issue or STAmount. More... | |
| static const epsilon_t | epsilon |
| const any_t | any {} |
| Returns an amount representing "any issuer". More... | |
| template<class T > | |
| concept | SingleVersionedTestCallable |
| The SingleVersionedTestCallable concept checks for a callable that takes an unsigned integer as its argument and returns void. More... | |
| template<class... T> | |
| concept | VersionedTestCallable = (... && SingleVersionedTestCallable<T>) |
| The VersionedTestCallable concept checks if a set of callables all satisfy the SingleVersionedTestCallable concept. More... | |
| constexpr auto | defaultseed = "shUwVw52ofnCUX5m7kPTKzJdr4HEH" |
| static const none_t | none |
| static const autofill_t | autofill |
| static const disabled_t | disabled |
| constexpr std::array< std::uint8_t, 39 > | cb1 |
| const std::array< std::uint8_t, 4 > | fb1 = {{0xA0, 0x02, 0x80, 0x00}} |
| constexpr std::size_t | UT_XCHAIN_DEFAULT_NUM_SIGNERS = 5 |
| constexpr std::size_t | UT_XCHAIN_DEFAULT_QUORUM = 4 |
| using ripple::test::jtx::checks = typedef owner_count<ltCHECK> |
| using ripple::test::jtx::siglists = typedef owner_count<ltSIGNER_LIST> |
The number of signer lists matches.
Definition at line 116 of file multisign.h.
| using ripple::test::jtx::lines = typedef owner_count<ltRIPPLE_STATE> |
| using ripple::test::jtx::offers = typedef owner_count<ltOFFER> |
| using ripple::test::jtx::require_t = typedef std::function<void(Env&)> |
Definition at line 32 of file requires.h.
| using ripple::test::jtx::requires_t = typedef std::vector<require_t> |
Definition at line 33 of file requires.h.
| using ripple::test::jtx::tickets = typedef owner_count<ltTICKET> |
| using ripple::test::jtx::JValueVec = typedef std::vector<Json::Value> |
Definition at line 34 of file xchain_bridge.h.
|
strong |
|
noexcept |
| 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 29 of file acctdelete.cpp.
| 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 35 of file AMMTest.cpp.
| 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 73 of file AMMTest.cpp.
| 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 46 of file AMMTest.cpp.
| bool ripple::test::jtx::operator== | ( | PrettyAmount const & | lhs, |
| PrettyAmount const & | rhs | ||
| ) |
| bool ripple::test::jtx::operator!= | ( | PrettyAmount const & | lhs, |
| PrettyAmount const & | rhs | ||
| ) |
| std::ostream & ripple::test::jtx::operator<< | ( | std::ostream & | os, |
| PrettyAmount const & | amount | ||
| ) |
Definition at line 73 of file amount.cpp.
| 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
| 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
| std::ostream & ripple::test::jtx::operator<< | ( | std::ostream & | os, |
| IOU const & | iou | ||
| ) |
Definition at line 120 of file amount.cpp.
| 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 33 of file attester.cpp.
| 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 56 of file attester.cpp.
| std::array<Account, 1 + sizeof...(Args)> ripple::test::jtx::noripple | ( | Account const & | account, |
| Args const &... | args | ||
| ) |
| FeatureBitset ripple::test::jtx::supported_amendments | ( | ) |
| void ripple::test::jtx::forAllApiVersions | ( | VersionedTestCallable auto... | testCallable | ) |
| std::unique_ptr<Config> ripple::test::jtx::envconfig | ( | ) |
creates and initializes a default configuration for jtx::Env
Definition at line 49 of file envconfig.h.
| 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.
| modfunc | callable 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. |
| args | additional arguments that will be passed to the config modifier function (optional) |
Definition at line 70 of file envconfig.h.
| 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)
| cfg | config instance to be modified |
Definition at line 82 of file envconfig.cpp.
| std::unique_ptr< Config > ripple::test::jtx::secure_gateway | ( | std::unique_ptr< Config > | cfg | ) |
Definition at line 90 of file envconfig.cpp.
| std::unique_ptr< Config > ripple::test::jtx::admin_localnet | ( | std::unique_ptr< Config > | cfg | ) |
Definition at line 99 of file envconfig.cpp.
| std::unique_ptr< Config > ripple::test::jtx::secure_gateway_localnet | ( | std::unique_ptr< Config > | cfg | ) |
Definition at line 107 of file envconfig.cpp.
| 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)
| cfg | config instance to be modified |
| seed | seed string for use in secret key generation. A fixed default value will be used if this string is empty |
Definition at line 119 of file envconfig.cpp.
| std::unique_ptr< Config > ripple::test::jtx::port_increment | ( | std::unique_ptr< Config > | cfg, |
| int | increment | ||
| ) |
adjust the default configured server ports by a specified value
This is intended for use with envconfig, as in envconfig(port_increment, 5)
| cfg | config instance to be modified |
| int | amount by which to increment the existing server port values in the config |
Definition at line 128 of file envconfig.cpp.
| 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
| cfg | config instance to be modified |
Definition at line 143 of file envconfig.cpp.
| 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
| cfg | config instance to be modified |
Definition at line 152 of file envconfig.cpp.
| Json::Value ripple::test::jtx::fset | ( | Account const & | account, |
| std::uint32_t | on, | ||
| std::uint32_t | off = 0 |
||
| ) |
| Json::Value ripple::test::jtx::fclear | ( | Account const & | account, |
| std::uint32_t | off | ||
| ) |
|
static |
Definition at line 57 of file amount.cpp.
| Json::Value ripple::test::jtx::signers | ( | Account const & | account, |
| std::uint32_t | quorum, | ||
| std::vector< signer > const & | v | ||
| ) |
Definition at line 35 of file multisign.cpp.
| Json::Value ripple::test::jtx::signers | ( | Account const & | account, |
| none_t | |||
| ) |
Remove a signer list.
Definition at line 58 of file multisign.cpp.
| Json::Value ripple::test::jtx::offer | ( | Account const & | account, |
| STAmount const & | takerPays, | ||
| STAmount const & | takerGets, | ||
| std::uint32_t | flags | ||
| ) |
| Json::Value ripple::test::jtx::offer_cancel | ( | Account const & | account, |
| std::uint32_t | offerSeq | ||
| ) |
| Json::Value ripple::test::jtx::pay | ( | AccountID const & | account, |
| AccountID const & | to, | ||
| AnyAmount | amount | ||
| ) |
| Json::Value ripple::test::jtx::pay | ( | Account const & | account, |
| Account const & | to, | ||
| AnyAmount | amount | ||
| ) |
|
static |
Definition at line 41 of file quality2.cpp.
| Json::Value ripple::test::jtx::rate | ( | Account const & | account, |
| double | multiplier | ||
| ) |
| Json::Value ripple::test::jtx::regkey | ( | Account const & | account, |
| disabled_t | |||
| ) |
Disable the regular key.
Definition at line 28 of file regkey.cpp.
| Json::Value ripple::test::jtx::regkey | ( | Account const & | account, |
| Account const & | signer | ||
| ) |
Set a regular key.
Definition at line 37 of file regkey.cpp.
| Json::Value ripple::test::jtx::getAccountOffers | ( | Env & | env, |
| AccountID const & | acct, | ||
| bool | current | ||
| ) |
Definition at line 32 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::getAccountLines | ( | Env & | env, |
| AccountID const & | acctId | ||
| ) |
Definition at line 40 of file TestHelpers.cpp.
| bool ripple::test::jtx::checkArraySize | ( | Json::Value const & | val, |
| unsigned int | size | ||
| ) |
Definition at line 48 of file TestHelpers.cpp.
Definition at line 56 of file TestHelpers.cpp.
| void ripple::test::jtx::stpath_append_one | ( | STPath & | st, |
| STPathElement const & | pe | ||
| ) |
Definition at line 62 of file TestHelpers.cpp.
Definition at line 68 of file TestHelpers.cpp.
| STPathElement ripple::test::jtx::IPE | ( | Issue const & | iss | ) |
Definition at line 75 of file TestHelpers.cpp.
| XRPAmount ripple::test::jtx::txfee | ( | Env const & | env, |
| std::uint16_t | n | ||
| ) |
Definition at line 87 of file TestHelpers.cpp.
| PrettyAmount ripple::test::jtx::xrpMinusFee | ( | Env const & | env, |
| std::int64_t | xrpAmount | ||
| ) |
Definition at line 93 of file TestHelpers.cpp.
| bool ripple::test::jtx::expectLine | ( | Env & | env, |
| AccountID const & | account, | ||
| STAmount const & | value, | ||
| bool | defaultLimits | ||
| ) |
Definition at line 100 of file TestHelpers.cpp.
Definition at line 134 of file TestHelpers.cpp.
| bool ripple::test::jtx::expectOffers | ( | Env & | env, |
| AccountID const & | account, | ||
| std::uint16_t | size, | ||
| std::vector< Amounts > const & | toMatch | ||
| ) |
Definition at line 140 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::ledgerEntryRoot | ( | Env & | env, |
| Account const & | acct | ||
| ) |
Definition at line 168 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::ledgerEntryState | ( | Env & | env, |
| Account const & | acct_a, | ||
| Account const & | acct_b, | ||
| std::string const & | currency | ||
| ) |
Definition at line 177 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::accountBalance | ( | Env & | env, |
| Account const & | acct | ||
| ) |
Definition at line 193 of file TestHelpers.cpp.
| bool ripple::test::jtx::expectLedgerEntryRoot | ( | Env & | env, |
| Account const & | acct, | ||
| STAmount const & | expectedValue | ||
| ) |
Definition at line 200 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::escrow | ( | AccountID const & | account, |
| AccountID const & | to, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 212 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::finish | ( | AccountID const & | account, |
| AccountID const & | from, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 224 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::cancel | ( | AccountID const & | account, |
| Account const & | from, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 236 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::create | ( | AccountID const & | account, |
| AccountID const & | to, | ||
| STAmount const & | amount, | ||
| NetClock::duration const & | settleDelay, | ||
| PublicKey const & | pk, | ||
| std::optional< NetClock::time_point > const & | cancelAfter, | ||
| std::optional< std::uint32_t > const & | dstTag | ||
| ) |
Definition at line 250 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::fund | ( | AccountID const & | account, |
| uint256 const & | channel, | ||
| STAmount const & | amount, | ||
| std::optional< NetClock::time_point > const & | expiration | ||
| ) |
Definition at line 275 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::claim | ( | AccountID const & | account, |
| uint256 const & | channel, | ||
| std::optional< STAmount > const & | balance, | ||
| std::optional< STAmount > const & | amount, | ||
| std::optional< Slice > const & | signature, | ||
| std::optional< PublicKey > const & | pk | ||
| ) |
Definition at line 293 of file TestHelpers.cpp.
| uint256 ripple::test::jtx::channel | ( | AccountID const & | account, |
| AccountID const & | dst, | ||
| std::uint32_t | seqProxyValue | ||
| ) |
Definition at line 318 of file TestHelpers.cpp.
Definition at line 328 of file TestHelpers.cpp.
Definition at line 337 of file TestHelpers.cpp.
| void ripple::test::jtx::n_offers | ( | Env & | env, |
| std::size_t | n, | ||
| Account const & | account, | ||
| STAmount const & | in, | ||
| STAmount const & | out | ||
| ) |
Definition at line 347 of file TestHelpers.cpp.
| STPathElement ripple::test::jtx::cpe | ( | Currency const & | c | ) |
Definition at line 368 of file TestHelpers.cpp.
| STPathElement ripple::test::jtx::allpe | ( | AccountID const & | a, |
| Issue const & | iss | ||
| ) |
Definition at line 376 of file TestHelpers.cpp.
| Json::Value ripple::test::jtx::trust | ( | Account const & | account, |
| STAmount const & | amount, | ||
| std::uint32_t | flags | ||
| ) |
| Json::Value ripple::test::jtx::trust | ( | Account const & | account, |
| STAmount const & | amount, | ||
| Account const & | peer, | ||
| std::uint32_t | flags | ||
| ) |
| Json::Value ripple::test::jtx::claw | ( | Account const & | account, |
| STAmount const & | amount | ||
| ) |
| STObject ripple::test::jtx::parse | ( | Json::Value const & | jv | ) |
Convert JSON to STObject.
This throws on failure, the JSON must be correct.
Definition at line 37 of file utility.cpp.
| void ripple::test::jtx::sign | ( | Json::Value & | jv, |
| Account const & | account | ||
| ) |
Sign automatically.
Definition at line 46 of file utility.cpp.
| void ripple::test::jtx::fill_fee | ( | Json::Value & | jv, |
| ReadView const & | view | ||
| ) |
Set the fee automatically.
Definition at line 57 of file utility.cpp.
| void ripple::test::jtx::fill_seq | ( | Json::Value & | jv, |
| ReadView const & | view | ||
| ) |
Set the sequence number automatically.
Definition at line 65 of file utility.cpp.
| 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 79 of file utility.cpp.
| Json::Value ripple::test::jtx::bridge | ( | Account const & | lockingChainDoor, |
| Issue const & | lockingChainIssue, | ||
| Account const & | issuingChainDoor, | ||
| Issue const & | issuingChainIssue | ||
| ) |
Definition at line 40 of file xchain_bridge.cpp.
| Json::Value ripple::test::jtx::bridge_rpc | ( | Account const & | lockingChainDoor, |
| Issue const & | lockingChainIssue, | ||
| Account const & | issuingChainDoor, | ||
| Issue const & | issuingChainIssue | ||
| ) |
Definition at line 56 of file xchain_bridge.cpp.
| 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 71 of file xchain_bridge.cpp.
| 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 92 of file xchain_bridge.cpp.
| 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 115 of file xchain_bridge.cpp.
| 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 134 of file xchain_bridge.cpp.
| 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 156 of file xchain_bridge.cpp.
| 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 177 of file xchain_bridge.cpp.
| 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 199 of file xchain_bridge.cpp.
| 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 251 of file xchain_bridge.cpp.
| 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 306 of file xchain_bridge.cpp.
| 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 338 of file xchain_bridge.cpp.
| Json::Value ripple::test::jtx::noop | ( | Account const & | account | ) |
| require_t ripple::test::jtx::required | ( | Args const &... | args | ) |
| auto ripple::test::jtx::make_vector | ( | Input const & | input | ) | & |
Definition at line 42 of file TestHelpers.h.
| Json::Value ripple::test::jtx::getAccountOffers | ( | Env & | env, |
| Account const & | acct, | ||
| bool | current = false |
||
| ) |
Definition at line 56 of file TestHelpers.h.
| Json::Value ripple::test::jtx::getAccountLines | ( | Env & | env, |
| Account const & | acct | ||
| ) |
Definition at line 65 of file TestHelpers.h.
| Json::Value ripple::test::jtx::getAccountLines | ( | Env & | env, |
| AccountID const & | acctId, | ||
| IOU... | ious | ||
| ) |
Definition at line 72 of file TestHelpers.h.
| std::enable_if_t<std::is_constructible<Account, T>::value> ripple::test::jtx::stpath_append_one | ( | STPath & | st, |
| T const & | t | ||
| ) |
Definition at line 106 of file TestHelpers.h.
| void ripple::test::jtx::stpath_append | ( | STPath & | st, |
| T const & | t, | ||
| Args const &... | args | ||
| ) |
Definition at line 116 of file TestHelpers.h.
| void ripple::test::jtx::stpathset_append | ( | STPathSet & | st, |
| STPath const & | p, | ||
| Args const &... | args | ||
| ) |
Definition at line 125 of file TestHelpers.h.
| STPath ripple::test::jtx::stpath | ( | Args const &... | args | ) |
Definition at line 141 of file TestHelpers.h.
| bool ripple::test::jtx::same | ( | STPathSet const & | st1, |
| Args const &... | args | ||
| ) |
Definition at line 150 of file TestHelpers.h.
| bool ripple::test::jtx::expectLine | ( | Env & | env, |
| AccountID const & | account, | ||
| STAmount const & | value, | ||
| Amts const &... | amts | ||
| ) |
Definition at line 182 of file TestHelpers.h.
| Json::Value ripple::test::jtx::escrow | ( | Account const & | account, |
| Account const & | to, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 228 of file TestHelpers.h.
| Json::Value ripple::test::jtx::finish | ( | Account const & | account, |
| Account const & | from, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 237 of file TestHelpers.h.
| Json::Value ripple::test::jtx::cancel | ( | Account const & | account, |
| Account const & | from, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 246 of file TestHelpers.h.
| Json::Value ripple::test::jtx::create | ( | Account const & | account, |
| Account const & | to, | ||
| STAmount const & | amount, | ||
| NetClock::duration const & | settleDelay, | ||
| PublicKey const & | pk, | ||
| std::optional< NetClock::time_point > const & | cancelAfter = std::nullopt, |
||
| std::optional< std::uint32_t > const & | dstTag = std::nullopt |
||
| ) |
Definition at line 356 of file TestHelpers.h.
| uint256 ripple::test::jtx::channel | ( | Account const & | account, |
| Account const & | dst, | ||
| std::uint32_t | seqProxyValue | ||
| ) |
Definition at line 392 of file TestHelpers.h.
| Json::Value ripple::test::jtx::sidechain_xchain_account_claim | ( | Account const & | acc, |
| Json::Value const & | bridge, | ||
| Account const & | dst, | ||
| AnyAmount const & | amt | ||
| ) |
|
constexpr |
| const XRP_t ripple::test::jtx::XRP {} |
| const any_t ripple::test::jtx::any {} |
Returns an amount representing "any issuer".
Definition at line 126 of file amount.cpp.
| concept ripple::test::jtx::SingleVersionedTestCallable |
| concept ripple::test::jtx::VersionedTestCallable = (... && SingleVersionedTestCallable<T>) |
The VersionedTestCallable concept checks if a set of callables all satisfy the SingleVersionedTestCallable concept.
This allows forAllApiVersions to accept any number of functions. It executes a set of provided functions over a range of versions from RPC::apiMinimumSupportedVersion to RPC::apiBetaVersion. This is useful for running a series of tests or operations that need to be performed on multiple versions of an API.
|
constexpr |
Definition at line 116 of file envconfig.cpp.
|
static |
|
static |
|
constexpr |
Definition at line 251 of file TestHelpers.h.
| const std::array<std::uint8_t, 4> ripple::test::jtx::fb1 = {{0xA0, 0x02, 0x80, 0x00}} |
Definition at line 258 of file TestHelpers.h.
|
constexpr |
Definition at line 36 of file xchain_bridge.h.
|
constexpr |
Definition at line 37 of file xchain_bridge.h.
1.8.17