diff --git a/AMMInfo_8cpp_source.html b/AMMInfo_8cpp_source.html index e9debc51c3..a284420224 100644 --- a/AMMInfo_8cpp_source.html +++ b/AMMInfo_8cpp_source.html @@ -230,7 +230,7 @@ $(document).ready(function() { init_codefold(0); });
142 auto const r = getValuesFromContextParams();
143 if (!r)
144 {
-
145 RPC::inject_error(r.error(), result);
+
145 RPC::inject_error(r.error(), result);
146 return result;
147 }
148
@@ -341,7 +341,7 @@ $(document).ready(function() { init_codefold(0); });
std::chrono::duration
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
std::chrono
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::keylet::amm
Keylet amm(Asset const &issue1, Asset const &issue2) noexcept
AMM entry.
Definition Indexes.cpp:428
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
diff --git a/AccountChannels_8cpp_source.html b/AccountChannels_8cpp_source.html index 2cda0d4375..72ab8e27e0 100644 --- a/AccountChannels_8cpp_source.html +++ b/AccountChannels_8cpp_source.html @@ -150,12 +150,12 @@ $(document).ready(function() { init_codefold(0); });
64 auto id = parseBase58<AccountID>(params[jss::account].asString());
65 if (!id)
66 {
-
67 return rpcError(rpcACT_MALFORMED);
+
67 return rpcError(rpcACT_MALFORMED);
68 }
69 AccountID const accountID{std::move(id.value())};
70
71 if (!ledger->exists(keylet::account(accountID)))
-
72 return rpcError(rpcACT_NOT_FOUND);
+
72 return rpcError(rpcACT_NOT_FOUND);
73
74 std::string strDst;
75 if (params.isMember(jss::destination_account))
@@ -165,7 +165,7 @@ $(document).ready(function() { init_codefold(0); });
79 return strDst.empty() ? std::nullopt : parseBase58<AccountID>(strDst);
80 }();
81 if (!strDst.empty() && !raDstAccount)
-
82 return rpcError(rpcACT_MALFORMED);
+
82 return rpcError(rpcACT_MALFORMED);
83
84 unsigned int limit;
85 if (auto err = readLimitField(limit, RPC::Tuning::accountChannels, context))
@@ -193,13 +193,13 @@ $(document).ready(function() { init_codefold(0); });
107 std::stringstream marker(params[jss::marker].asString());
108 std::string value;
109 if (!std::getline(marker, value, ','))
-
110 return rpcError(rpcINVALID_PARAMS);
+
110 return rpcError(rpcINVALID_PARAMS);
111
112 if (!startAfter.parseHex(value))
-
113 return rpcError(rpcINVALID_PARAMS);
+
113 return rpcError(rpcINVALID_PARAMS);
114
115 if (!std::getline(marker, value, ','))
-
116 return rpcError(rpcINVALID_PARAMS);
+
116 return rpcError(rpcINVALID_PARAMS);
117
118 try
119 {
@@ -207,7 +207,7 @@ $(document).ready(function() { init_codefold(0); });
121 }
122 catch (boost::bad_lexical_cast&)
123 {
-
124 return rpcError(rpcINVALID_PARAMS);
+
124 return rpcError(rpcINVALID_PARAMS);
125 }
126
127 // We then must check if the object pointed to by the marker is actually
@@ -215,10 +215,10 @@ $(document).ready(function() { init_codefold(0); });
129 auto const sle = ledger->read({ltANY, startAfter});
130
131 if (!sle)
-
132 return rpcError(rpcINVALID_PARAMS);
+
132 return rpcError(rpcINVALID_PARAMS);
133
134 if (!RPC::isRelatedToAccount(*ledger, sle, accountID))
-
135 return rpcError(rpcINVALID_PARAMS);
+
135 return rpcError(rpcINVALID_PARAMS);
136 }
137
138 auto count = 0;
@@ -257,7 +257,7 @@ $(document).ready(function() { init_codefold(0); });
171 return true;
172 }))
173 {
-
174 return rpcError(rpcINVALID_PARAMS);
+
174 return rpcError(rpcINVALID_PARAMS);
175 }
176
177 // Both conditions need to be checked because marker is set on the limit-th
@@ -297,11 +297,11 @@ $(document).ready(function() { init_codefold(0); });
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
xrpl::RPC::Tuning::accountChannels
static LimitRange constexpr accountChannels
Limits for the account_channels command.
Definition src/xrpld/rpc/detail/Tuning.h:21
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
xrpl::RPC::isRelatedToAccount
bool isRelatedToAccount(ReadView const &ledger, std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Tests if a ledger entry (SLE) is owned by the specified account.
Definition RPCHelpers.cpp:39
xrpl::RPC::getStartHint
std::uint64_t getStartHint(std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Gets the start hint for traversing account objects.
Definition RPCHelpers.cpp:22
-
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::Resource::feeMediumBurdenRPC
Charge const feeMediumBurdenRPC
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
@@ -311,8 +311,8 @@ $(document).ready(function() { init_codefold(0); });
xrpl::strHex
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
xrpl::toBase58
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
xrpl::publicKeyType
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
Definition PublicKey.cpp:204
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
xrpl::TokenType::AccountPublic
@ AccountPublic
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::ltANY
@ ltANY
A special type, matching any ledger entry type.
Definition LedgerFormats.h:59
xrpl::forEachItemAfter
bool forEachItemAfter(ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items after an item in the given directory.
Definition View.cpp:786
xrpl::addChannel
void addChannel(Json::Value &jsonLines, SLE const &line)
Definition AccountChannels.cpp:17
diff --git a/AccountCurrenciesHandler_8cpp_source.html b/AccountCurrenciesHandler_8cpp_source.html index 41058ae6b2..757c0ca09a 100644 --- a/AccountCurrenciesHandler_8cpp_source.html +++ b/AccountCurrenciesHandler_8cpp_source.html @@ -125,13 +125,13 @@ $(document).ready(function() { init_codefold(0); });
41 auto id = parseBase58<AccountID>(strIdent);
42 if (!id)
43 {
-
44 RPC::inject_error(rpcACT_MALFORMED, result);
+
44 RPC::inject_error(rpcACT_MALFORMED, result);
45 return result;
46 }
47 auto const accountID{std::move(id.value())};
48
49 if (!ledger->exists(keylet::account(accountID)))
-
50 return rpcError(rpcACT_NOT_FOUND);
+
50 return rpcError(rpcACT_NOT_FOUND);
51
52 std::set<Currency> send, receive;
53 for (auto const& rspEntry : RPCTrustLine::getItems(accountID, *ledger))
@@ -171,15 +171,15 @@ $(document).ready(function() { init_codefold(0); });
std::set::erase
T erase(T... args)
std::set::insert
T insert(T... args)
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
xrpl::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
xrpl::doAccountCurrencies
Json::Value doAccountCurrencies(RPC::JsonContext &context)
Definition AccountCurrenciesHandler.cpp:13
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::badCurrency
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
Definition UintTypes.cpp:114
xrpl::rpcACT_NOT_FOUND
@ rpcACT_NOT_FOUND
Definition ErrorCodes.h:51
xrpl::rpcACT_MALFORMED
@ rpcACT_MALFORMED
Definition ErrorCodes.h:71
diff --git a/AccountInfo_8cpp_source.html b/AccountInfo_8cpp_source.html index be938a6a23..c4f4e43cc6 100644 --- a/AccountInfo_8cpp_source.html +++ b/AccountInfo_8cpp_source.html @@ -171,7 +171,7 @@ $(document).ready(function() { init_codefold(0); });
97 auto id = parseBase58<AccountID>(strIdent);
98 if (!id)
99 {
-
100 RPC::inject_error(rpcACT_MALFORMED, result);
+
100 RPC::inject_error(rpcACT_MALFORMED, result);
101 return result;
102 }
103 auto const accountID{std::move(id.value())};
@@ -216,7 +216,7 @@ $(document).ready(function() { init_codefold(0); });
142 {
143 // It doesn't make sense to request the queue
144 // with any closed or validated ledger.
-
145 RPC::inject_error(rpcINVALID_PARAMS, result);
+
145 RPC::inject_error(rpcINVALID_PARAMS, result);
146 return result;
147 }
148
@@ -270,7 +270,7 @@ $(document).ready(function() { init_codefold(0); });
196 if (context.apiVersion > 1u && params.isMember(jss::signer_lists) &&
197 !params[jss::signer_lists].isBool())
198 {
-
199 RPC::inject_error(rpcINVALID_PARAMS, result);
+
199 RPC::inject_error(rpcINVALID_PARAMS, result);
200 return result;
201 }
202
@@ -399,7 +399,7 @@ $(document).ready(function() { init_codefold(0); });
325 else
326 {
327 result[jss::account] = toBase58(accountID);
-
328 RPC::inject_error(rpcACT_NOT_FOUND, result);
+
328 RPC::inject_error(rpcACT_NOT_FOUND, result);
329 }
330
331 return result;
@@ -427,9 +427,9 @@ $(document).ready(function() { init_codefold(0); });
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
Json::UInt
unsigned int UInt
Definition json_forwards.h:8
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::keylet::signers
Keylet signers(AccountID const &account) noexcept
A SignerList.
Definition Indexes.cpp:312
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
diff --git a/AccountLines_8cpp_source.html b/AccountLines_8cpp_source.html index 718cb72452..25921cb250 100644 --- a/AccountLines_8cpp_source.html +++ b/AccountLines_8cpp_source.html @@ -163,13 +163,13 @@ $(document).ready(function() { init_codefold(0); });
77 auto id = parseBase58<AccountID>(params[jss::account].asString());
78 if (!id)
79 {
-
80 RPC::inject_error(rpcACT_MALFORMED, result);
+
80 RPC::inject_error(rpcACT_MALFORMED, result);
81 return result;
82 }
83 auto const accountID{std::move(id.value())};
84
85 if (!ledger->exists(keylet::account(accountID)))
-
86 return rpcError(rpcACT_NOT_FOUND);
+
86 return rpcError(rpcACT_NOT_FOUND);
87
88 std::string strPeer;
89 if (params.isMember(jss::peer))
@@ -180,7 +180,7 @@ $(document).ready(function() { init_codefold(0); });
94 }();
95 if (!strPeer.empty() && !raPeerAccount)
96 {
-
97 RPC::inject_error(rpcACT_MALFORMED, result);
+
97 RPC::inject_error(rpcACT_MALFORMED, result);
98 return result;
99 }
100
@@ -216,13 +216,13 @@ $(document).ready(function() { init_codefold(0); });
130 std::stringstream marker(params[jss::marker].asString());
131 std::string value;
132 if (!std::getline(marker, value, ','))
-
133 return rpcError(rpcINVALID_PARAMS);
+
133 return rpcError(rpcINVALID_PARAMS);
134
135 if (!startAfter.parseHex(value))
-
136 return rpcError(rpcINVALID_PARAMS);
+
136 return rpcError(rpcINVALID_PARAMS);
137
138 if (!std::getline(marker, value, ','))
-
139 return rpcError(rpcINVALID_PARAMS);
+
139 return rpcError(rpcINVALID_PARAMS);
140
141 try
142 {
@@ -230,7 +230,7 @@ $(document).ready(function() { init_codefold(0); });
144 }
145 catch (boost::bad_lexical_cast&)
146 {
-
147 return rpcError(rpcINVALID_PARAMS);
+
147 return rpcError(rpcINVALID_PARAMS);
148 }
149
150 // We then must check if the object pointed to by the marker is actually
@@ -238,10 +238,10 @@ $(document).ready(function() { init_codefold(0); });
152 auto const sle = ledger->read({ltANY, startAfter});
153
154 if (!sle)
-
155 return rpcError(rpcINVALID_PARAMS);
+
155 return rpcError(rpcINVALID_PARAMS);
156
157 if (!RPC::isRelatedToAccount(*ledger, sle, accountID))
-
158 return rpcError(rpcINVALID_PARAMS);
+
158 return rpcError(rpcINVALID_PARAMS);
159 }
160
161 auto count = 0;
@@ -303,7 +303,7 @@ $(document).ready(function() { init_codefold(0); });
217 return true;
218 }))
219 {
-
220 return rpcError(rpcINVALID_PARAMS);
+
220 return rpcError(rpcINVALID_PARAMS);
221 }
222 }
223
@@ -347,12 +347,12 @@ $(document).ready(function() { init_codefold(0); });
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
xrpl::RPC::Tuning::accountLines
static LimitRange constexpr accountLines
Limits for the account_lines command.
Definition src/xrpld/rpc/detail/Tuning.h:18
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
xrpl::RPC::isRelatedToAccount
bool isRelatedToAccount(ReadView const &ledger, std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Tests if a ledger entry (SLE) is owned by the specified account.
Definition RPCHelpers.cpp:39
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
xrpl::RPC::getStartHint
std::uint64_t getStartHint(std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Gets the start hint for traversing account objects.
Definition RPCHelpers.cpp:22
-
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::Resource::feeMediumBurdenRPC
Charge const feeMediumBurdenRPC
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
@@ -360,8 +360,8 @@ $(document).ready(function() { init_codefold(0); });
xrpl::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
xrpl::addLine
void addLine(Json::Value &jsonLines, RPCTrustLine const &line)
Definition AccountLines.cpp:16
xrpl::toBase58
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
xrpl::doAccountLines
Json::Value doAccountLines(RPC::JsonContext &context)
Definition AccountLines.cpp:63
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::ltANY
@ ltANY
A special type, matching any ledger entry type.
Definition LedgerFormats.h:59
xrpl::forEachItemAfter
bool forEachItemAfter(ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items after an item in the given directory.
Definition View.cpp:786
xrpl::lsfHighReserve
@ lsfHighReserve
Definition LedgerFormats.h:141
diff --git a/AccountLines__test_8cpp_source.html b/AccountLines__test_8cpp_source.html index 81c031b464..63b2b204b0 100644 --- a/AccountLines__test_8cpp_source.html +++ b/AccountLines__test_8cpp_source.html @@ -1527,9 +1527,9 @@ $(document).ready(function() { init_codefold(0); });
Json::nullValue
@ nullValue
'null' value
Definition json_value.h:20
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
xrpl::RPC::expected_field_message
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
-
xrpl::RPC::make_error
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Definition ErrorCodes.cpp:172
+
xrpl::RPC::expected_field_message
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::make_error
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Definition ErrorCodes.cpp:190
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
xrpl::tfTransferable
constexpr std::uint32_t const tfTransferable
Definition TxFlags.h:123
xrpl::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
diff --git a/AccountObjects_8cpp_source.html b/AccountObjects_8cpp_source.html index f53de4b0c3..465f2a7f44 100644 --- a/AccountObjects_8cpp_source.html +++ b/AccountObjects_8cpp_source.html @@ -114,7 +114,7 @@ $(document).ready(function() { init_codefold(0); });
41 auto id = parseBase58<AccountID>(params[jss::account].asString());
42 if (!id)
43 {
-
44 return rpcError(rpcACT_MALFORMED);
+
44 return rpcError(rpcACT_MALFORMED);
45 }
46
47 std::shared_ptr<ReadView const> ledger;
@@ -124,7 +124,7 @@ $(document).ready(function() { init_codefold(0); });
51 auto const accountID{id.value()};
52
53 if (!ledger->exists(keylet::account(accountID)))
-
54 return rpcError(rpcACT_NOT_FOUND);
+
54 return rpcError(rpcACT_NOT_FOUND);
55
56 unsigned int limit;
57 if (auto err = readLimitField(limit, RPC::Tuning::accountNFTokens, context))
@@ -446,13 +446,13 @@ $(document).ready(function() { init_codefold(0); });
378 auto const id = parseBase58<AccountID>(params[jss::account].asString());
379 if (!id)
380 {
-
381 RPC::inject_error(rpcACT_MALFORMED, result);
+
381 RPC::inject_error(rpcACT_MALFORMED, result);
382 return result;
383 }
384 auto const accountID{id.value()};
385
386 if (!ledger->exists(keylet::account(accountID)))
-
387 return rpcError(rpcACT_NOT_FOUND);
+
387 return rpcError(rpcACT_NOT_FOUND);
388
389 std::optional<std::vector<LedgerEntryType>> typeFilter;
390
@@ -572,12 +572,12 @@ $(document).ready(function() { init_codefold(0); });
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
xrpl::RPC::Tuning::accountNFTokens
static LimitRange constexpr accountNFTokens
Limits for the account_nftokens command, in pages.
Definition src/xrpld/rpc/detail/Tuning.h:39
xrpl::RPC::Tuning::accountObjects
static LimitRange constexpr accountObjects
Limits for the account_objects command.
Definition src/xrpld/rpc/detail/Tuning.h:24
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
xrpl::RPC::chooseLedgerEntryType
std::pair< RPC::Status, LedgerEntryType > chooseLedgerEntryType(Json::Value const &params)
Chooses the ledger entry type based on RPC parameters.
Definition RPCHelpers.cpp:332
xrpl::RPC::isAccountObjectsValidType
bool isAccountObjectsValidType(LedgerEntryType const &type)
Checks if the type is a valid filtering type for the account_objects method.
Definition RPCHelpers.cpp:387
-
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::Resource::feeMediumBurdenRPC
Charge const feeMediumBurdenRPC
xrpl::keylet::nftpage_max
Keylet nftpage_max(AccountID const &owner)
A keylet for the owner's last possible NFT page.
Definition Indexes.cpp:393
@@ -599,9 +599,9 @@ $(document).ready(function() { init_codefold(0); });
xrpl::toBase58
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
xrpl::doAccountNFTs
Json::Value doAccountNFTs(RPC::JsonContext &context)
General RPC command that can retrieve objects in the account root.
Definition AccountObjects.cpp:32
xrpl::root
Number root(Number f, unsigned d)
Definition Number.cpp:644
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
xrpl::getAccountObjects
bool getAccountObjects(ReadView const &ledger, AccountID const &account, std::optional< std::vector< LedgerEntryType > > const &typeFilter, uint256 dirIndex, uint256 entryIndex, std::uint32_t const limit, Json::Value &jvResult)
Gathers all objects for an account in a ledger.
Definition AccountObjects.cpp:172
xrpl::doAccountObjects
Json::Value doAccountObjects(RPC::JsonContext &context)
Definition AccountObjects.cpp:364
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::LedgerEntryType
LedgerEntryType
Identifiers for on-ledger objects.
Definition LedgerFormats.h:35
xrpl::ltANY
@ ltANY
A special type, matching any ledger entry type.
Definition LedgerFormats.h:59
xrpl::rpcACT_NOT_FOUND
@ rpcACT_NOT_FOUND
Definition ErrorCodes.h:51
diff --git a/AccountOffers_8cpp_source.html b/AccountOffers_8cpp_source.html index 505cf6ab58..5e2e76b2df 100644 --- a/AccountOffers_8cpp_source.html +++ b/AccountOffers_8cpp_source.html @@ -139,7 +139,7 @@ $(document).ready(function() { init_codefold(0); });
53 auto id = parseBase58<AccountID>(params[jss::account].asString());
54 if (!id)
55 {
-
56 RPC::inject_error(rpcACT_MALFORMED, result);
+
56 RPC::inject_error(rpcACT_MALFORMED, result);
57 return result;
58 }
59 auto const accountID{std::move(id.value())};
@@ -148,7 +148,7 @@ $(document).ready(function() { init_codefold(0); });
62 result[jss::account] = toBase58(accountID);
63
64 if (!ledger->exists(keylet::account(accountID)))
-
65 return rpcError(rpcACT_NOT_FOUND);
+
65 return rpcError(rpcACT_NOT_FOUND);
66
67 unsigned int limit;
68 if (auto err = readLimitField(limit, RPC::Tuning::accountOffers, context))
@@ -191,10 +191,10 @@ $(document).ready(function() { init_codefold(0); });
105 auto const sle = ledger->read({ltANY, startAfter});
106
107 if (!sle)
-
108 return rpcError(rpcINVALID_PARAMS);
+
108 return rpcError(rpcINVALID_PARAMS);
109
110 if (!RPC::isRelatedToAccount(*ledger, sle, accountID))
-
111 return rpcError(rpcINVALID_PARAMS);
+
111 return rpcError(rpcINVALID_PARAMS);
112 }
113
114 auto count = 0;
@@ -230,7 +230,7 @@ $(document).ready(function() { init_codefold(0); });
144 return true;
145 }))
146 {
-
147 return rpcError(rpcINVALID_PARAMS);
+
147 return rpcError(rpcINVALID_PARAMS);
148 }
149
150 // Both conditions need to be checked because marker is set on the limit-th
@@ -264,12 +264,12 @@ $(document).ready(function() { init_codefold(0); });
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
xrpl::RPC::Tuning::accountOffers
static LimitRange constexpr accountOffers
Limits for the account_offers command.
Definition src/xrpld/rpc/detail/Tuning.h:27
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
xrpl::RPC::isRelatedToAccount
bool isRelatedToAccount(ReadView const &ledger, std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Tests if a ledger entry (SLE) is owned by the specified account.
Definition RPCHelpers.cpp:39
-
xrpl::RPC::inject_error
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
xrpl::RPC::getStartHint
std::uint64_t getStartHint(std::shared_ptr< SLE const > const &sle, AccountID const &accountID)
Gets the start hint for traversing account objects.
Definition RPCHelpers.cpp:22
-
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::expected_field_error
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
xrpl::RPC::inject_error
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.cpp:164
xrpl::RPC::lookupLedger
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Definition RPCLedgerHelpers.cpp:355
xrpl::Resource::feeMediumBurdenRPC
Charge const feeMediumBurdenRPC
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
@@ -279,8 +279,8 @@ $(document).ready(function() { init_codefold(0); });
xrpl::getQuality
std::uint64_t getQuality(uint256 const &uBase)
Definition Indexes.cpp:131
xrpl::toBase58
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
xrpl::appendOfferJson
void appendOfferJson(std::shared_ptr< SLE const > const &offer, Json::Value &offers)
Definition AccountOffers.cpp:17
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
xrpl::amountFromQuality
STAmount amountFromQuality(std::uint64_t rate)
Definition STAmount.cpp:965
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::ltANY
@ ltANY
A special type, matching any ledger entry type.
Definition LedgerFormats.h:59
xrpl::forEachItemAfter
bool forEachItemAfter(ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items after an item in the given directory.
Definition View.cpp:786
xrpl::rpcACT_NOT_FOUND
@ rpcACT_NOT_FOUND
Definition ErrorCodes.h:51
diff --git a/AccountTx_8cpp_source.html b/AccountTx_8cpp_source.html index fdb93c240e..fd7d6b2ddc 100644 --- a/AccountTx_8cpp_source.html +++ b/AccountTx_8cpp_source.html @@ -483,7 +483,7 @@ $(document).ready(function() { init_codefold(0); });
391doAccountTxJson(RPC::JsonContext& context)
392{
393 if (!context.app.config().useTxTables())
-
394 return rpcError(rpcNOT_ENABLED);
+
394 return rpcError(rpcNOT_ENABLED);
395
396 auto& params = context.params;
397 AccountTxArgs args;
@@ -521,7 +521,7 @@ $(document).ready(function() { init_codefold(0); });
429 auto const account =
430 parseBase58<AccountID>(params[jss::account].asString());
431 if (!account)
-
432 return rpcError(rpcACT_MALFORMED);
+
432 return rpcError(rpcACT_MALFORMED);
433
434 args.account = *account;
435
@@ -590,10 +590,10 @@ $(document).ready(function() { init_codefold(0); });
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
Json::uintValue
@ uintValue
unsigned integer value
Definition json_value.h:22
xrpl::RPC::Tuning::accountTx
static LimitRange constexpr accountTx
Limits for the account_tx command.
Definition src/xrpld/rpc/detail/Tuning.h:30
-
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
xrpl::RPC::invalid_field_error
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
xrpl::RPC::LedgerShortcut
LedgerShortcut
Definition RPCLedgerHelpers.h:23
xrpl::RPC::insertDeliverMax
void insertDeliverMax(Json::Value &tx_json, TxType txnType, unsigned int apiVersion)
Copy Amount field to DeliverMax field in transaction output JSON.
Definition DeliverMax.cpp:9
-
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
xrpl::RPC::missing_field_error
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
xrpl::RPC::insertMPTokenIssuanceID
void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
Definition MPTokenIssuanceID.cpp:45
xrpl::RPC::insertNFTSyntheticInJson
void insertNFTSyntheticInJson(Json::Value &, std::shared_ptr< STTx const > const &, TxMeta const &)
Adds common synthetic fields to transaction-related JSON responses.
Definition NFTSyntheticSerializer.cpp:15
xrpl::RPC::readLimitField
std::optional< Json::Value > readLimitField(unsigned int &limit, Tuning::LimitRange const &range, JsonContext const &context)
Retrieves the limit value from a JsonContext or sets a default.
Definition RPCHelpers.cpp:93
@@ -603,9 +603,9 @@ $(document).ready(function() { init_codefold(0); });
xrpl::parseLedgerArgs
std::variant< std::optional< LedgerSpecifier >, Json::Value > parseLedgerArgs(RPC::Context &context, Json::Value const &params)
Definition AccountTx.cpp:35
xrpl::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
xrpl::strHex
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
-
xrpl::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
xrpl::doAccountTxJson
Json::Value doAccountTxJson(RPC::JsonContext &context)
Definition AccountTx.cpp:391
xrpl::getLedgerRange
std::variant< LedgerRange, RPC::Status > getLedgerRange(RPC::Context &context, std::optional< LedgerSpecifier > const &ledgerSpecifier)
Definition AccountTx.cpp:114
+
xrpl::rpcError
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
xrpl::to_string_iso
std::string to_string_iso(date::sys_time< Duration > tp)
Definition chrono.h:73
xrpl::doAccountTxHelp
std::pair< AccountTxResult, RPC::Status > doAccountTxHelp(RPC::Context &context, AccountTxArgs const &args)
Definition AccountTx.cpp:198
xrpl::isUnlimited
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Definition Role.cpp:106
diff --git a/AccountTx__test_8cpp_source.html b/AccountTx__test_8cpp_source.html index 32dfa67185..a094dd772c 100644 --- a/AccountTx__test_8cpp_source.html +++ b/AccountTx__test_8cpp_source.html @@ -1083,8 +1083,8 @@ $(document).ready(function() { init_codefold(0); });
Json::nullValue
@ nullValue
'null' value
Definition json_value.h:20
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::objectValue
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
xrpl::RPC::expected_field_message
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
xrpl::RPC::get_error_info
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
Definition ErrorCodes.cpp:164
+
xrpl::RPC::expected_field_message
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
xrpl::RPC::get_error_info
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
Definition ErrorCodes.cpp:182
xrpl::keylet::payChan
Keylet payChan(AccountID const &src, AccountID const &dst, std::uint32_t seq) noexcept
A PaymentChannel.
Definition Indexes.cpp:377
xrpl::keylet::check
Keylet check(AccountID const &id, std::uint32_t seq) noexcept
A Check.
Definition Indexes.cpp:318
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
diff --git a/AmendmentTable_8cpp_source.html b/AmendmentTable_8cpp_source.html index 52fb2d4fd7..f3d57ac559 100644 --- a/AmendmentTable_8cpp_source.html +++ b/AmendmentTable_8cpp_source.html @@ -1243,7 +1243,7 @@ $(document).ready(function() { init_codefold(0); });
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
xrpl::voteAmendment
void voteAmendment(soci::session &session, uint256 const &amendment, std::string const &name, AmendmentVote vote)
voteAmendment Set the veto value for a particular amendment.
Definition Wallet.cpp:270
xrpl::AttestationMatch::match
@ match
-
xrpl::getJson
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
Definition LedgerToJson.cpp:338
+
xrpl::getJson
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
Definition LedgerToJson.cpp:332
xrpl::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
xrpl::get
T get(Section const &section, std::string const &name, T const &defaultValue=T{})
Retrieve a key/value pair from a section.
Definition BasicConfig.h:336
xrpl::VoteBehavior::DefaultNo
@ DefaultNo
diff --git a/ApiVersion_8h_source.html b/ApiVersion_8h_source.html index 51453f9b15..6ab007605f 100644 --- a/ApiVersion_8h_source.html +++ b/ApiVersion_8h_source.html @@ -120,15 +120,15 @@ $(document).ready(function() { init_codefold(0); });
58static_assert(apiBetaVersion >= apiMaximumSupportedVersion);
59static_assert(apiMaximumValidVersion >= apiMaximumSupportedVersion);
60
-
61template <class JsonObject>
-
62void
-
-
63setVersion(JsonObject& parent, unsigned int apiVersion, bool betaEnabled)
-
64{
-
65 XRPL_ASSERT(
-
66 apiVersion != apiInvalidVersion,
-
67 "xrpl::RPC::setVersion : input is valid");
-
68 auto& retObj = addObject(parent, jss::version);
+
61inline void
+
+
62setVersion(Json::Value& parent, unsigned int apiVersion, bool betaEnabled)
+
63{
+
64 XRPL_ASSERT(
+ +
66 "xrpl::RPC::setVersion : input is valid");
+
67
+
68 auto& retObj = parent[jss::version] = Json::objectValue;
69
71 {
@@ -236,13 +236,14 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
+
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
static constexpr auto apiBetaVersion
Definition ApiVersion.h:47
static constexpr auto apiInvalidVersion
Definition ApiVersion.h:41
-
void setVersion(JsonObject &parent, unsigned int apiVersion, bool betaEnabled)
Definition ApiVersion.h:63
static constexpr auto apiMinimumSupportedVersion
Definition ApiVersion.h:42
static constexpr auto apiMaximumValidVersion
Definition ApiVersion.h:48
static constexpr std::integral_constant< unsigned, Version > apiVersion
Definition ApiVersion.h:39
static constexpr auto apiMaximumSupportedVersion
Definition ApiVersion.h:43
+
void setVersion(Json::Value &parent, unsigned int apiVersion, bool betaEnabled)
Definition ApiVersion.h:62
static constexpr auto apiCommandLineVersion
Definition ApiVersion.h:45
unsigned int getAPIVersionNumber(Json::Value const &jv, bool betaEnabled)
Retrieve the api version number from the json value.
Definition ApiVersion.h:104
static constexpr auto apiVersionIfUnspecified
Definition ApiVersion.h:44
diff --git a/Application_8cpp_source.html b/Application_8cpp_source.html index 64a62eb3d6..dea98f7623 100644 --- a/Application_8cpp_source.html +++ b/Application_8cpp_source.html @@ -2746,7 +2746,7 @@ $(document).ready(function() { init_codefold(0); });
DatabaseCon::Setup setup_DatabaseCon(Config const &c, std::optional< beast::Journal > j=std::nullopt)
void initAccountIdCache(std::size_t count)
Initialize the global cache used to map AccountID to base58 conversions.
Definition AccountID.cpp:88
std::unique_ptr< InboundTransactions > make_InboundTransactions(Application &app, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet)
-
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
+
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Value with a description of the ledger.
Overlay::Setup setup_Overlay(BasicConfig const &config)
HashRouter::Setup setup_HashRouter(Config const &config)
void forceValidity(HashRouter &router, uint256 const &txid, Validity validity)
Sets the validity of a given transaction in the cache.
Definition apply.cpp:93
diff --git a/BookOffers_8cpp_source.html b/BookOffers_8cpp_source.html index 64348e38fe..4c31e311ee 100644 --- a/BookOffers_8cpp_source.html +++ b/BookOffers_8cpp_source.html @@ -106,7 +106,7 @@ $(document).ready(function() { init_codefold(0); });
22 // logic. It needs to be moved elsewhere and documented,
23 // and encapsulated into a function.
24 if (context.app.getJobQueue().getJobCountGE(jtCLIENT) > 200)
-
25 return rpcError(rpcTOO_BUSY);
+
25 return rpcError(rpcTOO_BUSY);
26
28 auto jvResult = RPC::lookupLedger(lpLedger, context);
@@ -313,20 +313,20 @@ $(document).ready(function() { init_codefold(0); });
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
Definition base_uint.h:484
@ nullValue
'null' value
Definition json_value.h:20
static LimitRange constexpr bookOffers
Limits for the book_offers command.
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
Json::Value computeBookChanges(std::shared_ptr< L const > const &lpAccepted)
Definition BookChanges.h:28
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
-
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:282
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:260
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeMediumBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool isXRP(AccountID const &c)
Definition AccountID.h:71
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Json::Value doBookChanges(RPC::JsonContext &context)
Json::Value doBookOffers(RPC::JsonContext &context)
@ jtCLIENT
Definition Job.h:25
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
AccountID const & noAccount()
A placeholder for empty accounts.
AccountID const & xrpAccount()
Compute AccountID from public key.
diff --git a/Book__test_8cpp_source.html b/Book__test_8cpp_source.html index 90289d96e7..ab3c331aa0 100644 --- a/Book__test_8cpp_source.html +++ b/Book__test_8cpp_source.html @@ -2208,7 +2208,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value offer(Account const &account, STAmount const &takerPays, STAmount const &takerGets, std::uint32_t flags)
Create an offer.
Definition offer.cpp:10
std::unique_ptr< WSClient > makeWSClient(Config const &cfg, bool v2, unsigned rpc_version, std::unordered_map< std::string, std::string > const &headers)
Returns a client operating through WebSockets/S.
Definition WSClient.cpp:304
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
constexpr std::uint32_t tfHybrid
Definition TxFlags.h:83
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
diff --git a/CanDelete_8cpp_source.html b/CanDelete_8cpp_source.html index 2bb3b279dc..05312a0004 100644 --- a/CanDelete_8cpp_source.html +++ b/CanDelete_8cpp_source.html @@ -184,7 +184,7 @@ $(document).ready(function() { init_codefold(0); });
T max(T... args)
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doCanDelete(RPC::JsonContext &context)
Definition CanDelete.cpp:16
@ rpcLGR_NOT_FOUND
Definition ErrorCodes.h:53
diff --git a/Connect_8cpp_source.html b/Connect_8cpp_source.html index 0447d4a1fe..66d79f1f3d 100644 --- a/Connect_8cpp_source.html +++ b/Connect_8cpp_source.html @@ -114,7 +114,7 @@ $(document).ready(function() { init_codefold(0); });
30 if (context.params.isMember(jss::port) &&
31 !context.params[jss::port].isConvertibleTo(Json::intValue))
32 {
- +
34 }
35
36 int iPort;
@@ -149,11 +149,11 @@ $(document).ready(function() { init_codefold(0); });
virtual void connect(beast::IP::Endpoint const &address)=0
Establish a peer connection to the specified endpoint.
@ intValue
signed integer value
Definition json_value.h:21
Json::Value makeObjectValue(Value const &value, Json::StaticString const &field=jss::message)
Return a Json::objectValue with a single entry.
Definition Handler.h:47
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Json::Value doConnect(RPC::JsonContext &context)
Definition Connect.cpp:20
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcNOT_SYNCED
Definition ErrorCodes.h:48
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:65
Application & app
Definition Context.h:22
diff --git a/Consensus_8h_source.html b/Consensus_8h_source.html index 8c9594c557..12852fbcae 100644 --- a/Consensus_8h_source.html +++ b/Consensus_8h_source.html @@ -1803,7 +1803,7 @@ $(document).ready(function() { init_codefold(0); });
@ proposing
We are normal participant in consensus and propose our position.
@ switchedLedger
We switched ledgers since we started this consensus round but are now running on what we believe is t...
@ observing
We are observing peer positions, but not proposing our position.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
auto constexpr ledgerDefaultTimeResolution
Initial resolution of ledger close time.
std::chrono::duration< Rep, Period > getNextLedgerTimeResolution(std::chrono::duration< Rep, Period > previousResolution, bool previousAgree, Seq ledgerSeq)
Calculates the close time resolution for the specified ledger.
diff --git a/DepositAuthorized_8cpp_source.html b/DepositAuthorized_8cpp_source.html index fc9a1bf0eb..c1e7e974df 100644 --- a/DepositAuthorized_8cpp_source.html +++ b/DepositAuthorized_8cpp_source.html @@ -117,7 +117,7 @@ $(document).ready(function() { init_codefold(0); });
33
34 auto srcID = parseBase58<AccountID>(params[jss::source_account].asString());
35 if (!srcID)
- +
37 auto const srcAcct{std::move(srcID.value())};
38
39 // Validate destination_account.
@@ -131,7 +131,7 @@ $(document).ready(function() { init_codefold(0); });
47 auto dstID =
48 parseBase58<AccountID>(params[jss::destination_account].asString());
49 if (!dstID)
- +
51 auto const dstAcct{std::move(dstID.value())};
52
53 // Validate ledger.
@@ -144,7 +144,7 @@ $(document).ready(function() { init_codefold(0); });
60 // If source account is not in the ledger it can't be authorized.
61 if (!ledger->exists(keylet::account(srcAcct)))
62 {
- +
64 return result;
65 }
66
@@ -152,7 +152,7 @@ $(document).ready(function() { init_codefold(0); });
68 auto const sleDest = ledger->read(keylet::account(dstAcct));
69 if (!sleDest)
70 {
- +
72 return result;
73 }
74
@@ -206,14 +206,14 @@ $(document).ready(function() { init_codefold(0); });
122 ledger->read(keylet::credential(credH));
123 if (!sleCred)
124 {
- +
126 rpcBAD_CREDENTIALS, "credentials don't exist", result);
127 return result;
128 }
129
130 if (!(sleCred->getFlags() & lsfAccepted))
131 {
- +
133 rpcBAD_CREDENTIALS, "credentials aren't accepted", result);
134 return result;
135 }
@@ -221,14 +221,14 @@ $(document).ready(function() { init_codefold(0); });
138 sleCred, ledger->header().parentCloseTime))
139 {
- +
141 rpcBAD_CREDENTIALS, "credentials are expired", result);
142 return result;
143 }
144
145 if ((*sleCred)[sfSubject] != srcAcct)
146 {
- +
149 "credentials doesn't belong to the root account",
150 result);
@@ -239,7 +239,7 @@ $(document).ready(function() { init_codefold(0); });
155 (*sleCred)[sfIssuer], (*sleCred)[sfCredentialType]);
156 if (!ins)
157 {
- +
159 rpcBAD_CREDENTIALS, "duplicates in credentials", result);
160 return result;
161 }
@@ -274,19 +274,19 @@ $(document).ready(function() { init_codefold(0); });
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
Definition base_uint.h:484
T emplace(T... args)
-
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
bool checkExpired(std::shared_ptr< SLE const > const &sleCredential, NetClock::time_point const &closed)
Keylet depositPreauth(AccountID const &owner, AccountID const &preauthorized) noexcept
A DepositPreauth.
Definition Indexes.cpp:324
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
Keylet credential(AccountID const &subject, AccountID const &issuer, Slice const &credType) noexcept
Definition Indexes.cpp:535
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doDepositAuthorized(RPC::JsonContext &context)
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:225
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ lsfDepositAuth
@ lsfAccepted
@ rpcBAD_CREDENTIALS
Definition ErrorCodes.h:133
diff --git a/DisputedTx_8h_source.html b/DisputedTx_8h_source.html index df4811e824..260c748f5f 100644 --- a/DisputedTx_8h_source.html +++ b/DisputedTx_8h_source.html @@ -426,7 +426,7 @@ $(document).ready(function() { init_codefold(0); });
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@ proposing
We are normal participant in consensus and propose our position.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::pair< std::size_t, std::optional< ConsensusParms::AvalancheState > > getNeededWeight(ConsensusParms const &p, ConsensusParms::AvalancheState currentState, int percentTime, std::size_t currentRounds, std::size_t minimumRounds)
diff --git a/DoManifest_8cpp_source.html b/DoManifest_8cpp_source.html index 7b2de0723b..3698fb71e9 100644 --- a/DoManifest_8cpp_source.html +++ b/DoManifest_8cpp_source.html @@ -109,7 +109,7 @@ $(document).ready(function() { init_codefold(0); });
25 auto const pk = parseBase58<PublicKey>(TokenType::NodePublic, requested);
26 if (!pk)
27 {
- +
29 return ret;
30 }
31
@@ -149,8 +149,8 @@ $(document).ready(function() { init_codefold(0); });
PublicKey getMasterKey(PublicKey const &pk) const
Returns ephemeral signing key's master public key.
Definition Manifest.cpp:303
std::optional< std::string > getManifest(PublicKey const &pk) const
Returns mainfest corresponding to a given public key.
Definition Manifest.cpp:339
std::optional< std::uint32_t > getSequence(PublicKey const &pk) const
Returns master key's current manifest sequence.
Definition Manifest.cpp:315
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
std::string base64_encode(std::uint8_t const *data, std::size_t len)
diff --git a/Env_8cpp_source.html b/Env_8cpp_source.html index 296a8e07e1..6e89ee8fde 100644 --- a/Env_8cpp_source.html +++ b/Env_8cpp_source.html @@ -925,20 +925,20 @@ $(document).ready(function() { init_codefold(0); });
A namespace for easy access to logging severity values.
Definition Journal.h:11
Severity
Severity level / threshold of a Journal message.
Definition Journal.h:13
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
Keylet mptIssuance(std::uint32_t seq, AccountID const &issuer) noexcept
Definition Indexes.cpp:508
Keylet line(AccountID const &id0, AccountID const &id1, Currency const &currency) noexcept
The index of a trust line for a given currency.
Definition Indexes.cpp:226
Keylet mptoken(MPTID const &issuanceID, AccountID const &holder) noexcept
Definition Indexes.cpp:522
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
-
void fill_seq(Json::Value &jv, ReadView const &view)
Set the sequence number automatically.
Definition utility.cpp:53
+
void fill_seq(Json::Value &jv, ReadView const &view)
Set the sequence number automatically.
Definition utility.cpp:52
Json::Value trust(Account const &account, STAmount const &amount, std::uint32_t flags)
Modify a trust line.
Definition trust.cpp:13
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
Json::Value pay(AccountID const &account, AccountID const &to, AnyAmount amount)
Create a payment.
Definition pay.cpp:11
static autofill_t const autofill
Definition tags.h:23
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
-
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Definition utility.cpp:19
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
+
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Definition utility.cpp:18
auto const amount
-
void fill_fee(Json::Value &jv, ReadView const &view)
Set the fee automatically.
Definition utility.cpp:45
+
void fill_fee(Json::Value &jv, ReadView const &view)
Set the fee automatically.
Definition utility.cpp:44
Json::Value fset(Account const &account, std::uint32_t on, std::uint32_t off=0)
Add and/or remove flag.
Definition flags.cpp:10
PrettyAmount drops(Integer i)
Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
std::unique_ptr< AbstractClient > makeJSONRPCClient(Config const &cfg, unsigned rpc_version)
Returns a client using JSON-RPC over HTTP/S.
diff --git a/ErrorCodes_8cpp_source.html b/ErrorCodes_8cpp_source.html index 809930189c..895aee3b1c 100644 --- a/ErrorCodes_8cpp_source.html +++ b/ErrorCodes_8cpp_source.html @@ -249,68 +249,90 @@ $(document).ready(function() { init_codefold(0); });
160
161//------------------------------------------------------------------------------
162
-
163ErrorInfo const&
+
163void
- +
165{
-
166 if (code <= rpcSUCCESS || code > rpcLAST)
- -
168 return detail::sortedErrorInfos[code - 1];
-
169}
+
166 ErrorInfo const& info(get_error_info(code));
+
167 json[jss::error] = info.token;
+
168 json[jss::error_code] = info.code;
+
169 json[jss::error_message] = info.message;
+
170}
-
170
- -
- -
173{
-
174 Json::Value json;
-
175 inject_error(code, json);
-
176 return json;
-
177}
+
171
+
172void
+
+ +
174{
+
175 ErrorInfo const& info(get_error_info(code));
+
176 json[jss::error] = info.token;
+
177 json[jss::error_code] = info.code;
+
178 json[jss::error_message] = message;
+
179}
-
178
- -
- -
181{
-
182 Json::Value json;
-
183 inject_error(code, message, json);
-
184 return json;
-
185}
+
180
+
181ErrorInfo const&
+
+ +
183{
+
184 if (code <= rpcSUCCESS || code > rpcLAST)
+ +
186 return detail::sortedErrorInfos[code - 1];
+
187}
-
186
-
187bool
-
- -
189{
-
190 if (json.isObject() && json.isMember(jss::error))
-
191 return true;
-
192 return false;
-
193}
+
188
+ +
+ +
191{
+
192 Json::Value json;
+
193 inject_error(code, json);
+
194 return json;
+
195}
-
194
-
195int
-
- -
197{
-
198 return get_error_info(code).http_status;
-
199}
+
196
+ +
+ +
199{
+
200 Json::Value json;
+
201 inject_error(code, message, json);
+
202 return json;
+
203}
-
200
-
201} // namespace RPC
-
202
- -
- -
205{
-
206 XRPL_ASSERT(
- -
208 "xrpl::RPC::rpcErrorString : input contains an error");
-
209 return jv[jss::error].asString() + jv[jss::error_message].asString();
-
210}
+
204
+
205bool
+
+ +
207{
+
208 if (json.isObject() && json.isMember(jss::error))
+
209 return true;
+
210 return false;
+
211}
-
211
-
212} // namespace xrpl
+
212
+
213int
+
+ +
215{
+
216 return get_error_info(code).http_status;
+
217}
+
+
218
+
219} // namespace RPC
+
220
+ +
+ +
223{
+
224 XRPL_ASSERT(
+ +
226 "xrpl::RPC::rpcErrorString : input contains an error");
+
227 return jv[jss::error].asString() + jv[jss::error_message].asString();
+
228}
+
+
229
+
230} // namespace xrpl
Represents a JSON value.
Definition json_value.h:131
@@ -322,13 +344,13 @@ $(document).ready(function() { init_codefold(0); });
constexpr auto sortedErrorInfos
static constexpr ErrorInfo unorderedErrorInfos[]
constexpr ErrorInfo unknownError
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
int error_code_http_status(error_code_i code)
Returns http status that corresponds to the error code.
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
int error_code_http_status(error_code_i code)
Returns http status that corresponds to the error code.
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
std::string rpcErrorString(Json::Value const &jv)
Returns a single string with the contents of an RPC error.
+
std::string rpcErrorString(Json::Value const &jv)
Returns a single string with the contents of an RPC error.
error_code_i
Definition ErrorCodes.h:21
@ rpcSRC_CUR_MALFORMED
Definition ErrorCodes.h:105
@ rpcCOMMAND_MISSING
Definition ErrorCodes.h:83
@@ -408,6 +430,9 @@ $(document).ready(function() { init_codefold(0); });
Maps an rpc error code to its token, default message, and HTTP status.
Definition ErrorCodes.h:170
+
error_code_i code
Definition ErrorCodes.h:200
+
Json::StaticString token
Definition ErrorCodes.h:201
+
Json::StaticString message
Definition ErrorCodes.h:202
diff --git a/ErrorCodes_8h_source.html b/ErrorCodes_8h_source.html index 4a86451aad..11feb61adb 100644 --- a/ErrorCodes_8h_source.html +++ b/ErrorCodes_8h_source.html @@ -296,205 +296,177 @@ $(document).ready(function() { init_codefold(0); });
207ErrorInfo const&
209
-
212template <class JsonValue>
-
213void
-
-
214inject_error(error_code_i code, JsonValue& json)
-
215{
-
216 ErrorInfo const& info(get_error_info(code));
-
217 json[jss::error] = info.token;
-
218 json[jss::error_code] = info.code;
-
219 json[jss::error_message] = info.message;
-
220}
+
212void
+ +
214
+
215void
+
216inject_error(error_code_i code, std::string const& message, Json::Value& json);
+ + + +
224make_error(error_code_i code, std::string const& message);
+
229inline Json::Value
+
+ +
231{
+
232 return make_error(rpcINVALID_PARAMS, message);
+
233}
-
221
-
222template <class JsonValue>
-
223void
-
-
224inject_error(int code, JsonValue& json)
-
225{
-
226 inject_error(error_code_i(code), json);
-
227}
+
234
+
235inline std::string
+
+ +
237{
+
238 return "Missing field '" + name + "'.";
+
239}
-
228
-
229template <class JsonValue>
-
230void
-
-
231inject_error(error_code_i code, std::string const& message, JsonValue& json)
-
232{
-
233 ErrorInfo const& info(get_error_info(code));
-
234 json[jss::error] = info.token;
-
235 json[jss::error_code] = info.code;
-
236 json[jss::error_message] = message;
-
237}
+
240
+
241inline Json::Value
+
+ +
243{
+ +
245}
-
238
- - - -
246make_error(error_code_i code, std::string const& message);
-
251inline Json::Value
-
- -
253{
-
254 return make_error(rpcINVALID_PARAMS, message);
-
255}
+
246
+
247inline Json::Value
+ -
256
-
257inline std::string
-
- -
259{
-
260 return "Missing field '" + name + "'.";
-
261}
+
252
+
253inline std::string
+
+ +
255{
+
256 return "Invalid field '" + name + "', not object.";
+
257}
-
262
-
263inline Json::Value
-
- -
265{
- -
267}
+
258
+
259inline Json::Value
+
+ +
261{
+ +
263}
-
268
-
269inline Json::Value
-
- -
271{
-
272 return missing_field_error(std::string(name));
-
273}
+
264
+
265inline Json::Value
+
+ +
267{
+
268 return object_field_error(std::string(name));
+
269}
-
274
-
275inline std::string
-
- -
277{
-
278 return "Invalid field '" + name + "', not object.";
-
279}
+
270
+
271inline std::string
+
+ +
273{
+
274 return "Invalid field '" + name + "'.";
+
275}
-
280
-
281inline Json::Value
-
- -
283{
- -
285}
+
276
+
277inline std::string
+ -
286
-
287inline Json::Value
-
- -
289{
-
290 return object_field_error(std::string(name));
-
291}
+
282
+
283inline Json::Value
+
+ +
285{
+ +
287}
-
292
-
293inline std::string
-
- -
295{
-
296 return "Invalid field '" + name + "'.";
-
297}
+
288
+
289inline Json::Value
+ -
298
-
299inline std::string
-
- -
301{
- -
303}
+
294
+
295inline std::string
+
+ +
297{
+
298 return "Invalid field '" + name + "', not " + type + ".";
+
299}
-
304
-
305inline Json::Value
-
- -
307{
- -
309}
+
300
+
301inline std::string
+
+ +
303{
+
304 return expected_field_message(std::string(name), type);
+
305}
-
310
-
311inline Json::Value
-
- -
313{
-
314 return invalid_field_error(std::string(name));
-
315}
+
306
+
307inline Json::Value
+
+ +
309{
+
310 return make_param_error(expected_field_message(name, type));
+
311}
-
316
-
317inline std::string
-
- -
319{
-
320 return "Invalid field '" + name + "', not " + type + ".";
-
321}
+
312
+
313inline Json::Value
+
+ +
315{
+
316 return expected_field_error(std::string(name), type);
+
317}
-
322
-
323inline std::string
-
- -
325{
-
326 return expected_field_message(std::string(name), type);
-
327}
-
-
328
-
329inline Json::Value
-
- -
331{
-
332 return make_param_error(expected_field_message(name, type));
-
333}
+
318
+
319inline Json::Value
+
+ +
321{
+
322 return make_param_error("not a validator");
+
323}
+
324
+
328bool
+
329contains_error(Json::Value const& json);
+
330
+
332int
+
334
-
335inline Json::Value
-
- -
337{
-
338 return expected_field_error(std::string(name), type);
-
339}
-
+
335} // namespace RPC
+
336
+ +
339rpcErrorString(Json::Value const& jv);
340
-
341inline Json::Value
-
- -
343{
-
344 return make_param_error("not a validator");
-
345}
-
-
346
-
350bool
-
351contains_error(Json::Value const& json);
-
352
-
354int
- -
356
-
357} // namespace RPC
-
358
- -
361rpcErrorString(Json::Value const& jv);
-
362
-
363} // namespace xrpl
-
364
-
365#endif
+
341} // namespace xrpl
+
342
+
343#endif
Lightweight wrapper to tag static string.
Definition json_value.h:45
Represents a JSON value.
Definition json_value.h:131
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
int error_code_http_status(error_code_i code)
Returns http status that corresponds to the error code.
-
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:258
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
-
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:282
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
-
std::string object_field_message(std::string const &name)
Definition ErrorCodes.h:276
-
Json::Value not_validator_error()
Definition ErrorCodes.h:342
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
-
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:294
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
int error_code_http_status(error_code_i code)
Returns http status that corresponds to the error code.
+
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:236
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:260
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
std::string object_field_message(std::string const &name)
Definition ErrorCodes.h:254
+
Json::Value not_validator_error()
Definition ErrorCodes.h:320
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
+
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:272
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
std::string rpcErrorString(Json::Value const &jv)
Returns a single string with the contents of an RPC error.
+
std::string rpcErrorString(Json::Value const &jv)
Returns a single string with the contents of an RPC error.
error_code_i
Definition ErrorCodes.h:21
@ rpcSRC_CUR_MALFORMED
Definition ErrorCodes.h:105
@ rpcCOMMAND_MISSING
Definition ErrorCodes.h:83
diff --git a/Feature1_8cpp_source.html b/Feature1_8cpp_source.html index ce54b0f040..4e9a9ca7a8 100644 --- a/Feature1_8cpp_source.html +++ b/Feature1_8cpp_source.html @@ -105,7 +105,7 @@ $(document).ready(function() { init_codefold(0); });
21 // ensure that the `feature` param is a string
22 if (!context.params[jss::feature].isString())
23 {
- +
25 }
26 }
27
@@ -138,12 +138,12 @@ $(document).ready(function() { init_codefold(0); });
54 // If the feature is not found by name, try to parse the `feature` param as
55 // a feature ID. If that fails, return an error.
56 if (!feature && !feature.parseHex(context.params[jss::feature].asString()))
- +
58
59 if (context.params.isMember(jss::vetoed))
60 {
61 if (!isAdmin)
- +
63
64 if (context.params[jss::vetoed].asBool())
65 table.veto(feature);
@@ -153,7 +153,7 @@ $(document).ready(function() { init_codefold(0); });
69
70 Json::Value jvReply = table.getJson(feature, isAdmin);
71 if (!jvReply)
- +
73
74 auto m = majorities.find(feature);
75 if (m != majorities.end())
@@ -179,9 +179,9 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
bool isAdmin(Port const &port, Json::Value const &params, beast::IP::Address const &remoteIp)
Definition Role.cpp:66
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
majorityAmendments_t getMajorityAmendments(ReadView const &view)
Definition View.cpp:1040
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
Json::Value doFeature(RPC::JsonContext &context)
Definition Feature1.cpp:17
@ rpcNO_PERMISSION
Definition ErrorCodes.h:34
@ rpcBAD_FEATURE
Definition ErrorCodes.h:76
diff --git a/Fee1_8cpp_source.html b/Fee1_8cpp_source.html index 8a8f4f99d7..5df84d5dd4 100644 --- a/Fee1_8cpp_source.html +++ b/Fee1_8cpp_source.html @@ -100,7 +100,7 @@ $(document).ready(function() { init_codefold(0); });
16
17 // LCOV_EXCL_START
18 UNREACHABLE("xrpl::doFee : invalid result type");
- +
20 return context.params;
21 // LCOV_EXCL_STOP
22}
@@ -111,7 +111,7 @@ $(document).ready(function() { init_codefold(0); });
virtual TxQ & getTxQ()=0
Json::Value doRPC(Application &app) const
Summarize current fee metrics for the fee RPC command.
Definition TxQ.cpp:1838
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doFee(RPC::JsonContext &context)
Definition Fee1.cpp:11
@ rpcINTERNAL
Definition ErrorCodes.h:111
diff --git a/Freeze__test_8cpp_source.html b/Freeze__test_8cpp_source.html index 7417e078b6..06b6711643 100644 --- a/Freeze__test_8cpp_source.html +++ b/Freeze__test_8cpp_source.html @@ -2253,7 +2253,7 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t asfGlobalFreeze
Definition TxFlags.h:64
constexpr std::uint32_t tfPassive
Definition TxFlags.h:79
constexpr std::uint32_t tfFillOrKill
Definition TxFlags.h:81
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
constexpr std::uint32_t tfClearFreeze
Definition TxFlags.h:100
constexpr std::uint32_t tfClearDeepFreeze
Definition TxFlags.h:102
constexpr std::uint32_t tfSetDeepFreeze
Definition TxFlags.h:101
diff --git a/GRPCHandlers_8h_source.html b/GRPCHandlers_8h_source.html index 2927f13123..dae1fe7d29 100644 --- a/GRPCHandlers_8h_source.html +++ b/GRPCHandlers_8h_source.html @@ -121,7 +121,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > doLedgerDiffGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context)
Definition LedgerDiff.cpp:6
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)
-
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
+
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
diff --git a/GRPCServer_8cpp_source.html b/GRPCServer_8cpp_source.html index cae8079388..5f27684c78 100644 --- a/GRPCServer_8cpp_source.html +++ b/GRPCServer_8cpp_source.html @@ -826,7 +826,7 @@ $(document).ready(function() { init_codefold(0); });
STL namespace.
@ NO_CONDITION
Definition Handler.h:21
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
error_code_i conditionMet(Condition condition_required, T &context)
Definition Handler.h:62
Charge const feeMediumBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@@ -836,7 +836,7 @@ $(document).ready(function() { init_codefold(0); });
Role
Indicates the level of administrative permission to grant.
Definition Role.h:25
-
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
+
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
@ jtRPC
Definition Job.h:32
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
void erase(STObject &st, TypedField< U > const &f)
Remove a field in an STObject.
Definition STExchange.h:153
diff --git a/GatewayBalances_8cpp_source.html b/GatewayBalances_8cpp_source.html index 027e4ca47c..beebbc75de 100644 --- a/GatewayBalances_8cpp_source.html +++ b/GatewayBalances_8cpp_source.html @@ -137,7 +137,7 @@ $(document).ready(function() { init_codefold(0); });
53 // Get info on account.
54 auto id = parseBase58<AccountID>(strIdent);
55 if (!id)
- +
57 auto const accountID{std::move(id.value())};
59
@@ -145,7 +145,7 @@ $(document).ready(function() { init_codefold(0); });
61
62 if (context.apiVersion > 1u && !ledger->exists(keylet::account(accountID)))
63 {
- +
65 return result;
66 }
67
@@ -193,11 +193,11 @@ $(document).ready(function() { init_codefold(0); });
109 // not have currency issued by the account from the request.
110 if (context.apiVersion < 2u)
111 {
- +
113 }
114 else
115 {
- +
117 }
118 return result;
119 }
@@ -372,8 +372,8 @@ $(document).ready(function() { init_codefold(0); });
T empty(T... args)
T insert(T... args)
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Charge const feeHeavyBurdenRPC
TER valid(STTx const &tx, ReadView const &view, AccountID const &src, beast::Journal j)
@@ -382,7 +382,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void forEachItem(ReadView const &view, Keylet const &root, std::function< void(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items in the given directory.
Definition View.cpp:759
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcACT_NOT_FOUND
Definition ErrorCodes.h:51
@ rpcINVALID_HOTWALLET
Definition ErrorCodes.h:62
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:65
diff --git a/GetAggregatePrice_8cpp_source.html b/GetAggregatePrice_8cpp_source.html index ccfd604533..a0bb4b2651 100644 --- a/GetAggregatePrice_8cpp_source.html +++ b/GetAggregatePrice_8cpp_source.html @@ -219,7 +219,7 @@ $(document).ready(function() { init_codefold(0); });
142 if (!params[jss::oracles].isArray() || params[jss::oracles].size() == 0 ||
143 params[jss::oracles].size() > maxOracles)
144 {
- +
146 return result;
147 }
148
@@ -275,34 +275,34 @@ $(document).ready(function() { init_codefold(0); });
198 auto const trim = getField(jss::trim);
200 {
- +
202 return result;
203 }
204 if (params.isMember(jss::trim) &&
205 (std::get<std::uint32_t>(trim) == 0 ||
207 {
- +
209 return result;
210 }
211
212 auto const timeThreshold = getField(jss::time_threshold, 0);
213 if (std::holds_alternative<error_code_i>(timeThreshold))
214 {
-
215 RPC::inject_error(std::get<error_code_i>(timeThreshold), result);
+
215 RPC::inject_error(std::get<error_code_i>(timeThreshold), result);
216 return result;
217 }
218
219 auto const baseAsset = getCurrency(sfBaseAsset, jss::base_asset);
221 {
-
222 RPC::inject_error(std::get<error_code_i>(baseAsset), result);
+
222 RPC::inject_error(std::get<error_code_i>(baseAsset), result);
223 return result;
224 }
225 auto const quoteAsset = getCurrency(sfQuoteAsset, jss::quote_asset);
227 {
-
228 RPC::inject_error(std::get<error_code_i>(quoteAsset), result);
+
228 RPC::inject_error(std::get<error_code_i>(quoteAsset), result);
229 return result;
230 }
231
@@ -314,7 +314,7 @@ $(document).ready(function() { init_codefold(0); });
237 if (!oracle.isMember(jss::oracle_document_id) ||
238 !oracle.isMember(jss::account))
239 {
- +
241 return result;
242 }
243 auto const documentID = validUInt(oracle, jss::oracle_document_id)
@@ -324,7 +324,7 @@ $(document).ready(function() { init_codefold(0); });
247 parseBase58<AccountID>(oracle[jss::account].asString());
248 if (!account || account->isZero() || !documentID)
249 {
- +
251 return result;
252 }
253
@@ -364,7 +364,7 @@ $(document).ready(function() { init_codefold(0); });
287
288 if (prices.empty())
289 {
- +
291 return result;
292 }
293
@@ -389,7 +389,7 @@ $(document).ready(function() { init_codefold(0); });
312 if (prices.empty())
313 {
314 // LCOV_EXCL_START
- +
316 return result;
317 // LCOV_EXCL_STOP
318 }
@@ -466,8 +466,8 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
T make_optional(T... args)
bool lexicalCastChecked(Out &out, In in)
Intelligently convert from one type to another.
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Keylet oracle(AccountID const &account, std::uint32_t const &documentID) noexcept
Definition Indexes.cpp:502
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/GetCounts_8h_source.html b/GetCounts_8h_source.html index 4d513732c0..74a8380a0a 100644 --- a/GetCounts_8h_source.html +++ b/GetCounts_8h_source.html @@ -86,16 +86,14 @@ $(document).ready(function() { init_codefold(0); });
3
4#include <xrpld/app/main/Application.h>
5
-
6#include <xrpl/json/Object.h>
+
6namespace xrpl {
7
-
8namespace xrpl {
-
9
- -
11getCountsJson(Application& app, int minObjectCount);
+ +
9getCountsJson(Application& app, int minObjectCount);
+
10
+
11}
12
-
13}
-
14
-
15#endif
+
13#endif
Represents a JSON value.
Definition json_value.h:131
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value getCountsJson(Application &app, int minObjectCount)
Definition GetCounts.cpp:43
diff --git a/InnerObjectFormats__test_8cpp_source.html b/InnerObjectFormats__test_8cpp_source.html index c71c37bd56..d631b2fa95 100644 --- a/InnerObjectFormats__test_8cpp_source.html +++ b/InnerObjectFormats__test_8cpp_source.html @@ -292,7 +292,7 @@ $(document).ready(function() { init_codefold(0); });
A transaction testing environment.
Definition Env.h:102
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/JSONRPC__test_8cpp_source.html b/JSONRPC__test_8cpp_source.html index 07309394a4..8ef7efce9b 100644 --- a/JSONRPC__test_8cpp_source.html +++ b/JSONRPC__test_8cpp_source.html @@ -3073,7 +3073,7 @@ $(document).ready(function() { init_codefold(0); });
static constexpr std::integral_constant< unsigned, Version > apiVersion
Definition ApiVersion.h:39
Json::Value transactionSubmitMultiSigned(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction)
Returns a Json::objectValue.
std::function< void(std::shared_ptr< Transaction > &transaction, bool bUnlimited, bool bLocal, NetworkOPs::FailHard failType)> ProcessTransactionFn
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Json::Value trust(AccountID const &account, STAmount const &amount, std::uint32_t flags=0)
Definition AMM.cpp:791
Json::Value pay(Account const &account, AccountID const &to, STAmount const &amount)
Definition AMM.cpp:803
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
diff --git a/KeyGeneration__test_8cpp_source.html b/KeyGeneration__test_8cpp_source.html index 89b5823b13..2a60b59cc6 100644 --- a/KeyGeneration__test_8cpp_source.html +++ b/KeyGeneration__test_8cpp_source.html @@ -1031,7 +1031,7 @@ $(document).ready(function() { init_codefold(0); });
static key_strings const secp256k1_strings
std::optional< std::pair< PublicKey, SecretKey > > keypairForSignature(Json::Value const &params, Json::Value &error, unsigned int apiVersion)
Generates a keypair for signature from RPC parameters.
static key_strings const ed25519_strings
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
Json::Value walletPropose(Json::Value const &params)
diff --git a/LedgerData_8cpp_source.html b/LedgerData_8cpp_source.html index ec1c147b84..4a6e4f970c 100644 --- a/LedgerData_8cpp_source.html +++ b/LedgerData_8cpp_source.html @@ -300,13 +300,13 @@ $(document).ready(function() { init_codefold(0); });
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
int constexpr pageLength(bool isBinary)
Maximum number of pages in a LedgerData response.
std::pair< RPC::Status, LedgerEntryType > chooseLedgerEntryType(Json::Value const &params)
Chooses the ledger entry type based on RPC parameters.
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
Status ledgerFromRequest(T &ledger, GRPCContext< R > const &context)
Retrieves a ledger from a gRPC request context.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Keylet unchecked(uint256 const &key) noexcept
Any ledger entry.
Definition Indexes.cpp:350
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doLedgerData(RPC::JsonContext &)
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)
std::string serializeHex(STObject const &o)
Serialize an object to a hex string.
Definition serialize.h:22
@@ -316,8 +316,8 @@ $(document).ready(function() { init_codefold(0); }); - - + +
RequestType params
Definition Context.h:52
diff --git a/LedgerEntryHelpers_8h_source.html b/LedgerEntryHelpers_8h_source.html index 61aef21b3d..82f7ff23e4 100644 --- a/LedgerEntryHelpers_8h_source.html +++ b/LedgerEntryHelpers_8h_source.html @@ -431,8 +431,8 @@ $(document).ready(function() { init_codefold(0); });
std::optional< T > parse(Json::Value const &param)
Expected< uint256, Json::Value > requiredUInt256(Json::Value const &params, Json::StaticString const fieldName, std::string const &err)
Unexpected< Json::Value > invalidFieldError(std::string const &err, Json::StaticString const field, std::string const &type)
-
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:258
+
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:236
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
Issue issueFromJson(Json::Value const &v)
Definition Issue.cpp:76
diff --git a/LedgerEntry_8cpp_source.html b/LedgerEntry_8cpp_source.html index 8963a2283b..caa76d9850 100644 --- a/LedgerEntry_8cpp_source.html +++ b/LedgerEntry_8cpp_source.html @@ -1115,10 +1115,10 @@ $(document).ready(function() { init_codefold(0); });
Unexpected< Json::Value > malformedError(std::string const &err, std::string const &message)
Expected< uint256, Json::Value > requiredUInt256(Json::Value const &params, Json::StaticString const fieldName, std::string const &err)
Unexpected< Json::Value > invalidFieldError(std::string const &err, Json::StaticString const field, std::string const &type)
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
Status ledgerFromRequest(T &ledger, GRPCContext< R > const &context)
Retrieves a ledger from a gRPC request context.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
std::set< std::pair< AccountID, Slice > > makeSorted(STArray const &credentials)
Keylet oracle(AccountID const &account, std::uint32_t const &documentID) noexcept
Definition Indexes.cpp:502
Keylet did(AccountID const &account) noexcept
Definition Indexes.cpp:496
diff --git a/LedgerEntry__test_8cpp_source.html b/LedgerEntry__test_8cpp_source.html index 971c37698e..6ceb66002e 100644 --- a/LedgerEntry__test_8cpp_source.html +++ b/LedgerEntry__test_8cpp_source.html @@ -2620,8 +2620,8 @@ $(document).ready(function() { init_codefold(0); });
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
-
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:258
+
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
+
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:236
Keylet payChan(AccountID const &src, AccountID const &dst, std::uint32_t seq) noexcept
A PaymentChannel.
Definition Indexes.cpp:377
Keylet check(AccountID const &id, std::uint32_t seq) noexcept
A Check.
Definition Indexes.cpp:318
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
diff --git a/LedgerHandler_8cpp_source.html b/LedgerHandler_8cpp_source.html index b1326501c5..75be028e7a 100644 --- a/LedgerHandler_8cpp_source.html +++ b/LedgerHandler_8cpp_source.html @@ -162,232 +162,273 @@ $(document).ready(function() { init_codefold(0); });
76}
77
-
78} // namespace RPC
-
79
- -
- -
82{
-
83 auto begin = std::chrono::system_clock::now();
-
84 org::xrpl::rpc::v1::GetLedgerRequest& request = context.params;
-
85 org::xrpl::rpc::v1::GetLedgerResponse response;
-
86 grpc::Status status = grpc::Status::OK;
-
87
- -
89 if (auto status = RPC::ledgerFromRequest(ledger, context))
-
90 {
-
91 grpc::Status errorStatus;
-
92 if (status.toErrorCode() == rpcINVALID_PARAMS)
+
78void
+
+ +
80{
+
81 if (ledger_)
+
82 {
+
83 copyFrom(value, result_);
+ +
85 }
+
86 else
+
87 {
+
88 auto& master = context_.app.getLedgerMaster();
+
89 {
+
90 auto& closed = value[jss::closed] = Json::objectValue;
+
91 addJson(closed, {*master.getClosedLedger(), &context_, 0});
+
92 }
93 {
-
94 errorStatus = grpc::Status(
-
95 grpc::StatusCode::INVALID_ARGUMENT, status.message());
+
94 auto& open = value[jss::open] = Json::objectValue;
+
95 addJson(open, {*master.getCurrentLedger(), &context_, 0});
96 }
-
97 else
-
98 {
-
99 errorStatus =
-
100 grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());
-
101 }
-
102 return {response, errorStatus};
-
103 }
-
104
-
105 Serializer s;
-
106 addRaw(ledger->header(), s, true);
-
107
-
108 response.set_ledger_header(s.peekData().data(), s.getLength());
-
109
-
110 if (request.transactions())
-
111 {
-
112 try
-
113 {
-
114 for (auto& i : ledger->txs)
-
115 {
-
116 XRPL_ASSERT(
-
117 i.first, "xrpl::doLedgerGrpc : non-null transaction");
-
118 if (request.expand())
-
119 {
-
120 auto txn = response.mutable_transactions_list()
-
121 ->add_transactions();
-
122 Serializer sTxn = i.first->getSerializer();
-
123 txn->set_transaction_blob(sTxn.data(), sTxn.getLength());
-
124 if (i.second)
-
125 {
-
126 Serializer sMeta = i.second->getSerializer();
-
127 txn->set_metadata_blob(sMeta.data(), sMeta.getLength());
-
128 }
-
129 }
-
130 else
-
131 {
-
132 auto const& hash = i.first->getTransactionID();
-
133 response.mutable_hashes_list()->add_hashes(
-
134 hash.data(), hash.size());
-
135 }
-
136 }
-
137 }
-
138 catch (std::exception const& e)
-
139 {
-
140 JLOG(context.j.error())
-
141 << __func__ << " - Error deserializing transaction in ledger "
-
142 << ledger->header().seq
-
143 << " . skipping transaction and following transactions. You "
-
144 "should look into this further";
-
145 }
-
146 }
-
147
-
148 if (request.get_objects())
-
149 {
- -
151 context.app.getLedgerMaster().getLedgerBySeq(ledger->seq() - 1);
-
152
- - -
155 if (!base)
-
156 {
-
157 grpc::Status errorStatus{
-
158 grpc::StatusCode::NOT_FOUND, "parent ledger not validated"};
-
159 return {response, errorStatus};
-
160 }
-
161
- - -
164 if (!desired)
-
165 {
-
166 grpc::Status errorStatus{
-
167 grpc::StatusCode::NOT_FOUND, "ledger not validated"};
-
168 return {response, errorStatus};
-
169 }
-
170 SHAMap::Delta differences;
-
171
-
172 int maxDifferences = std::numeric_limits<int>::max();
-
173
-
174 bool res = base->stateMap().compare(
-
175 desired->stateMap(), differences, maxDifferences);
-
176 if (!res)
-
177 {
-
178 grpc::Status errorStatus{
-
179 grpc::StatusCode::RESOURCE_EXHAUSTED,
-
180 "too many differences between specified ledgers"};
-
181 return {response, errorStatus};
-
182 }
-
183
-
184 for (auto& [k, v] : differences)
-
185 {
-
186 auto obj = response.mutable_ledger_objects()->add_objects();
-
187 auto inBase = v.first;
-
188 auto inDesired = v.second;
-
189
-
190 obj->set_key(k.data(), k.size());
-
191 if (inDesired)
-
192 {
-
193 XRPL_ASSERT(
-
194 inDesired->size() > 0,
-
195 "xrpl::doLedgerGrpc : non-empty desired");
-
196 obj->set_data(inDesired->data(), inDesired->size());
-
197 }
-
198 if (inBase && inDesired)
-
199 obj->set_mod_type(
-
200 org::xrpl::rpc::v1::RawLedgerObject::MODIFIED);
-
201 else if (inBase && !inDesired)
-
202 obj->set_mod_type(org::xrpl::rpc::v1::RawLedgerObject::DELETED);
-
203 else
-
204 obj->set_mod_type(org::xrpl::rpc::v1::RawLedgerObject::CREATED);
-
205 auto const blob = inDesired ? inDesired->slice() : inBase->slice();
-
206 auto const objectType =
-
207 static_cast<LedgerEntryType>(blob[1] << 8 | blob[2]);
-
208
-
209 if (request.get_object_neighbors())
-
210 {
-
211 if (!(inBase && inDesired))
-
212 {
-
213 auto lb = desired->stateMap().lower_bound(k);
-
214 auto ub = desired->stateMap().upper_bound(k);
-
215 if (lb != desired->stateMap().end())
-
216 obj->set_predecessor(
-
217 lb->key().data(), lb->key().size());
-
218 if (ub != desired->stateMap().end())
-
219 obj->set_successor(ub->key().data(), ub->key().size());
-
220 if (objectType == ltDIR_NODE)
-
221 {
-
222 auto sle = std::make_shared<SLE>(SerialIter{blob}, k);
-
223 if (!sle->isFieldPresent(sfOwner))
-
224 {
-
225 auto bookBase = keylet::quality({ltDIR_NODE, k}, 0);
-
226 if (!inBase && inDesired)
-
227 {
-
228 auto firstBook =
-
229 desired->stateMap().upper_bound(
-
230 bookBase.key);
-
231 if (firstBook != desired->stateMap().end() &&
-
232 firstBook->key() <
-
233 getQualityNext(bookBase.key) &&
-
234 firstBook->key() == k)
-
235 {
-
236 auto succ = response.add_book_successors();
-
237 succ->set_book_base(
-
238 bookBase.key.data(),
-
239 bookBase.key.size());
-
240 succ->set_first_book(
-
241 firstBook->key().data(),
-
242 firstBook->key().size());
-
243 }
-
244 }
-
245 if (inBase && !inDesired)
-
246 {
-
247 auto oldFirstBook =
-
248 base->stateMap().upper_bound(bookBase.key);
-
249 if (oldFirstBook != base->stateMap().end() &&
-
250 oldFirstBook->key() <
-
251 getQualityNext(bookBase.key) &&
-
252 oldFirstBook->key() == k)
-
253 {
-
254 auto succ = response.add_book_successors();
-
255 succ->set_book_base(
-
256 bookBase.key.data(),
-
257 bookBase.key.size());
-
258 auto newFirstBook =
-
259 desired->stateMap().upper_bound(
-
260 bookBase.key);
-
261
-
262 if (newFirstBook !=
-
263 desired->stateMap().end() &&
-
264 newFirstBook->key() <
-
265 getQualityNext(bookBase.key))
-
266 {
-
267 succ->set_first_book(
-
268 newFirstBook->key().data(),
-
269 newFirstBook->key().size());
-
270 }
-
271 }
-
272 }
-
273 }
-
274 }
-
275 }
-
276 }
-
277 }
-
278 response.set_objects_included(true);
-
279 response.set_object_neighbors_included(request.get_object_neighbors());
-
280 response.set_skiplist_included(true);
-
281 }
-
282
-
283 response.set_validated(context.ledgerMaster.isValidated(*ledger));
-
284
- -
286 auto duration =
-
287 std::chrono::duration_cast<std::chrono::milliseconds>(end - begin)
-
288 .count() *
-
289 1.0;
-
290 JLOG(context.j.warn())
-
291 << __func__ << " - Extract time = " << duration
-
292 << " - num objects = " << response.ledger_objects().objects_size()
-
293 << " - num txns = " << response.transactions_list().transactions_size()
-
294 << " - ms per obj "
-
295 << duration / response.ledger_objects().objects_size()
-
296 << " - ms per txn "
-
297 << duration / response.transactions_list().transactions_size();
-
298
-
299 return {response, status};
-
300}
+
97 }
+
98
+ +
100 if (context_.params.isMember(jss::type))
+
101 {
+
102 Json::Value& w = warnings.append(Json::objectValue);
+
103 w[jss::id] = warnRPC_FIELDS_DEPRECATED;
+
104 w[jss::message] =
+
105 "Some fields from your request are deprecated. Please check the "
+
106 "documentation at "
+
107 "https://xrpl.org/docs/references/http-websocket-apis/ "
+
108 "and update your request. Field `type` is deprecated.";
+
109 }
+
110
+
111 if (warnings.size())
+
112 value[jss::warnings] = std::move(warnings);
+
113}
-
301} // namespace xrpl
+
114
+
115} // namespace RPC
+
116
+ +
+ +
119{
+
120 auto begin = std::chrono::system_clock::now();
+
121 org::xrpl::rpc::v1::GetLedgerRequest& request = context.params;
+
122 org::xrpl::rpc::v1::GetLedgerResponse response;
+
123 grpc::Status status = grpc::Status::OK;
+
124
+ +
126 if (auto status = RPC::ledgerFromRequest(ledger, context))
+
127 {
+
128 grpc::Status errorStatus;
+
129 if (status.toErrorCode() == rpcINVALID_PARAMS)
+
130 {
+
131 errorStatus = grpc::Status(
+
132 grpc::StatusCode::INVALID_ARGUMENT, status.message());
+
133 }
+
134 else
+
135 {
+
136 errorStatus =
+
137 grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());
+
138 }
+
139 return {response, errorStatus};
+
140 }
+
141
+
142 Serializer s;
+
143 addRaw(ledger->header(), s, true);
+
144
+
145 response.set_ledger_header(s.peekData().data(), s.getLength());
+
146
+
147 if (request.transactions())
+
148 {
+
149 try
+
150 {
+
151 for (auto& i : ledger->txs)
+
152 {
+
153 XRPL_ASSERT(
+
154 i.first, "xrpl::doLedgerGrpc : non-null transaction");
+
155 if (request.expand())
+
156 {
+
157 auto txn = response.mutable_transactions_list()
+
158 ->add_transactions();
+
159 Serializer sTxn = i.first->getSerializer();
+
160 txn->set_transaction_blob(sTxn.data(), sTxn.getLength());
+
161 if (i.second)
+
162 {
+
163 Serializer sMeta = i.second->getSerializer();
+
164 txn->set_metadata_blob(sMeta.data(), sMeta.getLength());
+
165 }
+
166 }
+
167 else
+
168 {
+
169 auto const& hash = i.first->getTransactionID();
+
170 response.mutable_hashes_list()->add_hashes(
+
171 hash.data(), hash.size());
+
172 }
+
173 }
+
174 }
+
175 catch (std::exception const& e)
+
176 {
+
177 JLOG(context.j.error())
+
178 << __func__ << " - Error deserializing transaction in ledger "
+
179 << ledger->header().seq
+
180 << " . skipping transaction and following transactions. You "
+
181 "should look into this further";
+
182 }
+
183 }
+
184
+
185 if (request.get_objects())
+
186 {
+ +
188 context.app.getLedgerMaster().getLedgerBySeq(ledger->seq() - 1);
+
189
+ + +
192 if (!base)
+
193 {
+
194 grpc::Status errorStatus{
+
195 grpc::StatusCode::NOT_FOUND, "parent ledger not validated"};
+
196 return {response, errorStatus};
+
197 }
+
198
+ + +
201 if (!desired)
+
202 {
+
203 grpc::Status errorStatus{
+
204 grpc::StatusCode::NOT_FOUND, "ledger not validated"};
+
205 return {response, errorStatus};
+
206 }
+
207 SHAMap::Delta differences;
+
208
+
209 int maxDifferences = std::numeric_limits<int>::max();
+
210
+
211 bool res = base->stateMap().compare(
+
212 desired->stateMap(), differences, maxDifferences);
+
213 if (!res)
+
214 {
+
215 grpc::Status errorStatus{
+
216 grpc::StatusCode::RESOURCE_EXHAUSTED,
+
217 "too many differences between specified ledgers"};
+
218 return {response, errorStatus};
+
219 }
+
220
+
221 for (auto& [k, v] : differences)
+
222 {
+
223 auto obj = response.mutable_ledger_objects()->add_objects();
+
224 auto inBase = v.first;
+
225 auto inDesired = v.second;
+
226
+
227 obj->set_key(k.data(), k.size());
+
228 if (inDesired)
+
229 {
+
230 XRPL_ASSERT(
+
231 inDesired->size() > 0,
+
232 "xrpl::doLedgerGrpc : non-empty desired");
+
233 obj->set_data(inDesired->data(), inDesired->size());
+
234 }
+
235 if (inBase && inDesired)
+
236 obj->set_mod_type(
+
237 org::xrpl::rpc::v1::RawLedgerObject::MODIFIED);
+
238 else if (inBase && !inDesired)
+
239 obj->set_mod_type(org::xrpl::rpc::v1::RawLedgerObject::DELETED);
+
240 else
+
241 obj->set_mod_type(org::xrpl::rpc::v1::RawLedgerObject::CREATED);
+
242 auto const blob = inDesired ? inDesired->slice() : inBase->slice();
+
243 auto const objectType =
+
244 static_cast<LedgerEntryType>(blob[1] << 8 | blob[2]);
+
245
+
246 if (request.get_object_neighbors())
+
247 {
+
248 if (!(inBase && inDesired))
+
249 {
+
250 auto lb = desired->stateMap().lower_bound(k);
+
251 auto ub = desired->stateMap().upper_bound(k);
+
252 if (lb != desired->stateMap().end())
+
253 obj->set_predecessor(
+
254 lb->key().data(), lb->key().size());
+
255 if (ub != desired->stateMap().end())
+
256 obj->set_successor(ub->key().data(), ub->key().size());
+
257 if (objectType == ltDIR_NODE)
+
258 {
+
259 auto sle = std::make_shared<SLE>(SerialIter{blob}, k);
+
260 if (!sle->isFieldPresent(sfOwner))
+
261 {
+
262 auto bookBase = keylet::quality({ltDIR_NODE, k}, 0);
+
263 if (!inBase && inDesired)
+
264 {
+
265 auto firstBook =
+
266 desired->stateMap().upper_bound(
+
267 bookBase.key);
+
268 if (firstBook != desired->stateMap().end() &&
+
269 firstBook->key() <
+
270 getQualityNext(bookBase.key) &&
+
271 firstBook->key() == k)
+
272 {
+
273 auto succ = response.add_book_successors();
+
274 succ->set_book_base(
+
275 bookBase.key.data(),
+
276 bookBase.key.size());
+
277 succ->set_first_book(
+
278 firstBook->key().data(),
+
279 firstBook->key().size());
+
280 }
+
281 }
+
282 if (inBase && !inDesired)
+
283 {
+
284 auto oldFirstBook =
+
285 base->stateMap().upper_bound(bookBase.key);
+
286 if (oldFirstBook != base->stateMap().end() &&
+
287 oldFirstBook->key() <
+
288 getQualityNext(bookBase.key) &&
+
289 oldFirstBook->key() == k)
+
290 {
+
291 auto succ = response.add_book_successors();
+
292 succ->set_book_base(
+
293 bookBase.key.data(),
+
294 bookBase.key.size());
+
295 auto newFirstBook =
+
296 desired->stateMap().upper_bound(
+
297 bookBase.key);
+
298
+
299 if (newFirstBook !=
+
300 desired->stateMap().end() &&
+
301 newFirstBook->key() <
+
302 getQualityNext(bookBase.key))
+
303 {
+
304 succ->set_first_book(
+
305 newFirstBook->key().data(),
+
306 newFirstBook->key().size());
+
307 }
+
308 }
+
309 }
+
310 }
+
311 }
+
312 }
+
313 }
+
314 }
+
315 response.set_objects_included(true);
+
316 response.set_object_neighbors_included(request.get_object_neighbors());
+
317 response.set_skiplist_included(true);
+
318 }
+
319
+
320 response.set_validated(context.ledgerMaster.isValidated(*ledger));
+
321
+ +
323 auto duration =
+
324 std::chrono::duration_cast<std::chrono::milliseconds>(end - begin)
+
325 .count() *
+
326 1.0;
+
327 JLOG(context.j.warn())
+
328 << __func__ << " - Extract time = " << duration
+
329 << " - num objects = " << response.ledger_objects().objects_size()
+
330 << " - num txns = " << response.transactions_list().transactions_size()
+
331 << " - ms per obj "
+
332 << duration / response.ledger_objects().objects_size()
+
333 << " - ms per txn "
+
334 << duration / response.transactions_list().transactions_size();
+
335
+
336 return {response, status};
+
337}
+
+
338} // namespace xrpl
+
Represents a JSON value.
Definition json_value.h:131
+
Value & append(Value const &value)
Append value to array at the end.
bool isMember(char const *key) const
Return true if the object has a member named key.
Stream error() const
Definition Journal.h:327
Stream warn() const
Definition Journal.h:321
@@ -397,13 +438,14 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< Ledger const > getLedgerBySeq(std::uint32_t index)
bool isValidated(ReadView const &ledger)
bool isLoadedLocal() const
-
std::shared_ptr< ReadView const > ledger_
- - +
void writeResult(Json::Value &)
+
std::shared_ptr< ReadView const > ledger_
+ + -
std::vector< TxQ::TxDetails > queueTxs_
+
std::vector< TxQ::TxDetails > queueTxs_
- +
Blob const & peekData() const
Definition Serializer.h:183
@@ -415,6 +457,8 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
T max(T... args)
+
@ arrayValue
array value (ordered list)
Definition json_value.h:26
+
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
Status ledgerFromRequest(T &ledger, GRPCContext< R > const &context)
Retrieves a ledger from a gRPC request context.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Charge const feeMediumBurdenRPC
@@ -422,24 +466,28 @@ $(document).ready(function() { init_codefold(0); });
Keylet quality(Keylet const &k, std::uint64_t q) noexcept
The initial directory page for a specific quality.
Definition Indexes.cpp:262
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
+
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
+
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
void addRaw(LedgerHeader const &, Serializer &, bool includeHash=false)
uint256 getQualityNext(uint256 const &uBase)
Definition Indexes.cpp:123
+
@ open
We haven't closed our ledger yet, but others might have.
+
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Value with a description of the ledger.
LedgerEntryType
Identifiers for on-ledger objects.
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Definition Role.cpp:106
@ rpcTOO_BUSY
Definition ErrorCodes.h:37
@ rpcNO_PERMISSION
Definition ErrorCodes.h:34
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:65
+
@ warnRPC_FIELDS_DEPRECATED
Definition ErrorCodes.h:158
- - - - - - - + + + + + + +
beast::Journal const j
Definition Context.h:21
Application & app
Definition Context.h:22
Resource::Charge & loadType
Definition Context.h:23
diff --git a/LedgerHandler_8h_source.html b/LedgerHandler_8h_source.html index 973a868676..51833021f7 100644 --- a/LedgerHandler_8h_source.html +++ b/LedgerHandler_8h_source.html @@ -92,127 +92,75 @@ $(document).ready(function() { init_codefold(0); });
9#include <xrpld/rpc/Status.h>
10#include <xrpld/rpc/detail/Handler.h>
11
-
12#include <xrpl/json/Object.h>
-
13#include <xrpl/ledger/ReadView.h>
-
14#include <xrpl/protocol/ApiVersion.h>
-
15#include <xrpl/protocol/jss.h>
-
16
-
17namespace Json {
-
18class Object;
-
19}
-
20
-
21namespace xrpl {
-
22namespace RPC {
-
23
-
24struct JsonContext;
-
25
-
26// ledger [id|index|current|closed] [full]
-
27// {
-
28// ledger: 'current' | 'closed' | <uint256> | <number>, // optional
-
29// full: true | false // optional, defaults to false.
-
30// }
-
31
-
- -
33{
-
34public:
-
35 explicit LedgerHandler(JsonContext&);
-
36
-
37 Status
-
38 check();
-
39
-
40 template <class Object>
-
41 void
-
42 writeResult(Object&);
+
12#include <xrpl/ledger/ReadView.h>
+
13#include <xrpl/protocol/ApiVersion.h>
+
14#include <xrpl/protocol/jss.h>
+
15
+
16namespace Json {
+
17class Object;
+
18}
+
19
+
20namespace xrpl {
+
21namespace RPC {
+
22
+
23struct JsonContext;
+
24
+
25// ledger [id|index|current|closed] [full]
+
26// {
+
27// ledger: 'current' | 'closed' | <uint256> | <number>, // optional
+
28// full: true | false // optional, defaults to false.
+
29// }
+
30
+
+ +
32{
+
33public:
+
34 explicit LedgerHandler(JsonContext&);
+
35
+
36 Status
+
37 check();
+
38
+
39 void
+ +
41
+
42 static constexpr char name[] = "ledger";
43
-
44 static constexpr char name[] = "ledger";
+
44 static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion;
45
-
46 static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion;
+
46 static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion;
47
-
48 static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion;
+
48 static constexpr Role role = Role::USER;
49
-
50 static constexpr Role role = Role::USER;
+
50 static constexpr Condition condition = NO_CONDITION;
51
-
52 static constexpr Condition condition = NO_CONDITION;
-
53
-
54private:
- - - - -
59 int options_ = 0;
-
60};
+
52private:
+ + + + +
57 int options_ = 0;
+
58};
-
61
-
64//
-
65// Implementation.
-
66
-
67template <class Object>
-
68void
-
- -
70{
-
71 if (ledger_)
-
72 {
-
73 Json::copyFrom(value, result_);
- -
75 }
-
76 else
-
77 {
-
78 auto& master = context_.app.getLedgerMaster();
-
79 {
-
80 auto&& closed = Json::addObject(value, jss::closed);
-
81 addJson(closed, {*master.getClosedLedger(), &context_, 0});
-
82 }
-
83 {
-
84 auto&& open = Json::addObject(value, jss::open);
-
85 addJson(open, {*master.getCurrentLedger(), &context_, 0});
-
86 }
-
87 }
-
88
- -
90 if (context_.params.isMember(jss::type))
-
91 {
- -
93 w[jss::id] = warnRPC_FIELDS_DEPRECATED;
-
94 w[jss::message] =
-
95 "Some fields from your request are deprecated. Please check the "
-
96 "documentation at "
-
97 "https://xrpl.org/docs/references/http-websocket-apis/ "
-
98 "and update your request. Field `type` is deprecated.";
-
99 }
-
100
-
101 if (warnings.size())
-
102 value[jss::warnings] = std::move(warnings);
-
103}
-
-
104
-
105} // namespace RPC
-
106} // namespace xrpl
-
107
-
108#endif
+
59
+
60} // namespace RPC
+
61} // namespace xrpl
+
62
+
63#endif
Represents a JSON value.
Definition json_value.h:131
-
Value & append(Value const &value)
Append value to array at the end.
-
bool isMember(char const *key) const
Return true if the object has a member named key.
-
virtual LedgerMaster & getLedgerMaster()=0
- -
static constexpr unsigned maxApiVer
-
std::shared_ptr< ReadView const > ledger_
-
static constexpr unsigned minApiVer
- - -
static constexpr Condition condition
+ +
static constexpr unsigned maxApiVer
+
void writeResult(Json::Value &)
+
std::shared_ptr< ReadView const > ledger_
+
static constexpr unsigned minApiVer
+ + +
static constexpr Condition condition
-
static constexpr char name[]
-
static constexpr Role role
-
std::vector< TxQ::TxDetails > queueTxs_
- -
void writeResult(Object &)
+
static constexpr char name[]
+
static constexpr Role role
+
std::vector< TxQ::TxDetails > queueTxs_
+
JSON (JavaScript Object Notation).
Definition json_errors.h:6
-
@ arrayValue
array value (ordered list)
Definition json_value.h:26
-
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value & addObject(Json::Value &, Json::StaticString const &key)
Add a new subobject at a named key in a Json object.
Definition Object.h:408
-
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
Definition Object.cpp:213
@ NO_CONDITION
Definition Handler.h:21
static constexpr auto apiMinimumSupportedVersion
Definition ApiVersion.h:42
@@ -220,13 +168,8 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Role
Indicates the level of administrative permission to grant.
Definition Role.h:25
-
@ open
We haven't closed our ledger yet, but others might have.
-
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
-
@ warnRPC_FIELDS_DEPRECATED
Definition ErrorCodes.h:158
-
Application & app
Definition Context.h:22
-
Json::Value params
Definition Context.h:44
Status represents the results of an operation that might fail.
Definition Status.h:21
diff --git a/LedgerHistory_8cpp_source.html b/LedgerHistory_8cpp_source.html index c05063af9c..fee00417c4 100644 --- a/LedgerHistory_8cpp_source.html +++ b/LedgerHistory_8cpp_source.html @@ -689,7 +689,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::shared_ptr< Ledger > loadByHash(uint256 const &ledgerHash, Application &app, bool acquire)
Definition Ledger.cpp:1115
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
Stopwatch & stopwatch()
Returns an instance of a wall clock.
Definition chrono.h:100
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
static void log_metadata_difference(ReadView const &builtLedger, ReadView const &validLedger, uint256 const &tx, beast::Journal j)
diff --git a/LedgerRPC__test_8cpp_source.html b/LedgerRPC__test_8cpp_source.html index 9b8466c4e5..18feafb6b6 100644 --- a/LedgerRPC__test_8cpp_source.html +++ b/LedgerRPC__test_8cpp_source.html @@ -886,7 +886,7 @@ $(document).ready(function() { init_codefold(0); });
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition ter.h:16
T empty(T... args)
@ nullValue
'null' value
Definition json_value.h:20
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
Json::Value pay(AccountID const &account, AccountID const &to, AnyAmount amount)
Create a payment.
Definition pay.cpp:11
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Definition envconfig.h:35
diff --git a/LedgerRequest_8cpp_source.html b/LedgerRequest_8cpp_source.html index a69efdcd0e..af954721cb 100644 --- a/LedgerRequest_8cpp_source.html +++ b/LedgerRequest_8cpp_source.html @@ -120,7 +120,7 @@ $(document).ready(function() { init_codefold(0); });
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doLedgerRequest(RPC::JsonContext &)
-
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
+
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Value with a description of the ledger.
Resource::Charge & loadType
Definition Context.h:23
diff --git a/LedgerRequest__test_8cpp_source.html b/LedgerRequest__test_8cpp_source.html index 40d1a3460f..3b2b807658 100644 --- a/LedgerRequest__test_8cpp_source.html +++ b/LedgerRequest__test_8cpp_source.html @@ -498,7 +498,7 @@ $(document).ready(function() { init_codefold(0); });
@ nullValue
'null' value
Definition json_value.h:20
static constexpr std::integral_constant< unsigned, Version > apiVersion
Definition ApiVersion.h:39
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void forAllApiVersions(Fn const &fn, Args &&... args)
Definition ApiVersion.h:158
T to_string(T... args)
diff --git a/LedgerToJson_8cpp_source.html b/LedgerToJson_8cpp_source.html index 6405282f76..d6a5a0afd5 100644 --- a/LedgerToJson_8cpp_source.html +++ b/LedgerToJson_8cpp_source.html @@ -115,331 +115,342 @@ $(document).ready(function() { init_codefold(0); });
32 return fill.options & LedgerFill::binary;
33}
34
-
35template <class Object>
-
36void
-
37fillJson(
-
38 Object& json,
-
39 bool closed,
-
40 LedgerHeader const& info,
-
41 bool bFull,
-
42 unsigned apiVersion)
-
43{
-
44 json[jss::parent_hash] = to_string(info.parentHash);
-
45 json[jss::ledger_index] = (apiVersion > 1)
-
46 ? Json::Value(info.seq)
-
47 : Json::Value(std::to_string(info.seq));
-
48
-
49 if (closed)
-
50 {
-
51 json[jss::closed] = true;
-
52 }
-
53 else if (!bFull)
-
54 {
-
55 json[jss::closed] = false;
-
56 return;
-
57 }
-
58
-
59 json[jss::ledger_hash] = to_string(info.hash);
-
60 json[jss::transaction_hash] = to_string(info.txHash);
-
61 json[jss::account_hash] = to_string(info.accountHash);
-
62 json[jss::total_coins] = to_string(info.drops);
-
63
-
64 json[jss::close_flags] = info.closeFlags;
-
65
-
66 // Always show fields that contribute to the ledger hash
-
67 json[jss::parent_close_time] =
-
68 info.parentCloseTime.time_since_epoch().count();
-
69 json[jss::close_time] = info.closeTime.time_since_epoch().count();
-
70 json[jss::close_time_resolution] = info.closeTimeResolution.count();
-
71
-
72 if (info.closeTime != NetClock::time_point{})
-
73 {
-
74 json[jss::close_time_human] = to_string(info.closeTime);
-
75 if (!getCloseAgree(info))
-
76 json[jss::close_time_estimated] = true;
-
77 json[jss::close_time_iso] = to_string_iso(info.closeTime);
-
78 }
-
79}
-
80
-
81template <class Object>
-
82void
-
83fillJsonBinary(Object& json, bool closed, LedgerHeader const& info)
-
84{
-
85 if (!closed)
-
86 json[jss::closed] = false;
-
87 else
-
88 {
-
89 json[jss::closed] = true;
-
90
-
91 Serializer s;
-
92 addRaw(info, s);
-
93 json[jss::ledger_data] = strHex(s.peekData());
-
94 }
-
95}
-
96
- -
98fillJsonTx(
-
99 LedgerFill const& fill,
-
100 bool bBinary,
-
101 bool bExpanded,
- - -
104{
-
105 if (!bExpanded)
-
106 return to_string(txn->getTransactionID());
-
107
- -
109 auto const txnType = txn->getTxnType();
-
110 if (bBinary)
-
111 {
-
112 txJson[jss::tx_blob] = serializeHex(*txn);
-
113 if (fill.context->apiVersion > 1)
-
114 txJson[jss::hash] = to_string(txn->getTransactionID());
-
115
-
116 auto const json_meta =
-
117 (fill.context->apiVersion > 1 ? jss::meta_blob : jss::meta);
-
118 if (stMeta)
-
119 txJson[json_meta] = serializeHex(*stMeta);
-
120 }
-
121 else if (fill.context->apiVersion > 1)
-
122 {
-
123 copyFrom(
-
124 txJson[jss::tx_json],
-
125 txn->getJson(JsonOptions::disable_API_prior_V2, false));
-
126 txJson[jss::hash] = to_string(txn->getTransactionID());
- -
128 txJson[jss::tx_json], txnType, fill.context->apiVersion);
-
129
-
130 if (stMeta)
-
131 {
-
132 txJson[jss::meta] = stMeta->getJson(JsonOptions::none);
-
133
-
134 // If applicable, insert delivered amount
-
135 if (txnType == ttPAYMENT || txnType == ttCHECK_CASH)
- -
137 txJson[jss::meta],
-
138 fill.ledger,
-
139 txn,
-
140 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
-
141
-
142 // If applicable, insert mpt issuance id
- -
144 txJson[jss::meta],
-
145 txn,
-
146 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
-
147 }
-
148
-
149 if (!fill.ledger.open())
-
150 txJson[jss::ledger_hash] = to_string(fill.ledger.header().hash);
-
151
-
152 bool const validated =
-
153 fill.context->ledgerMaster.isValidated(fill.ledger);
-
154 txJson[jss::validated] = validated;
-
155 if (validated)
-
156 {
-
157 auto const seq = fill.ledger.seq();
-
158 txJson[jss::ledger_index] = seq;
-
159 if (fill.closeTime)
-
160 txJson[jss::close_time_iso] = to_string_iso(*fill.closeTime);
-
161 }
-
162 }
-
163 else
-
164 {
-
165 copyFrom(txJson, txn->getJson(JsonOptions::none));
-
166 RPC::insertDeliverMax(txJson, txnType, fill.context->apiVersion);
-
167 if (stMeta)
-
168 {
-
169 txJson[jss::metaData] = stMeta->getJson(JsonOptions::none);
-
170
-
171 // If applicable, insert delivered amount
-
172 if (txnType == ttPAYMENT || txnType == ttCHECK_CASH)
- -
174 txJson[jss::metaData],
-
175 fill.ledger,
-
176 txn,
-
177 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
-
178
-
179 // If applicable, insert mpt issuance id
- -
181 txJson[jss::metaData],
-
182 txn,
-
183 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
-
184 }
-
185 }
-
186
-
187 if ((fill.options & LedgerFill::ownerFunds) &&
-
188 txn->getTxnType() == ttOFFER_CREATE)
-
189 {
-
190 auto const account = txn->getAccountID(sfAccount);
-
191 auto const amount = txn->getFieldAmount(sfTakerGets);
-
192
-
193 // If the offer create is not self funded then add the
-
194 // owner balance
-
195 if (account != amount.getIssuer())
-
196 {
-
197 auto const ownerFunds = accountFunds(
-
198 fill.ledger,
-
199 account,
-
200 amount,
- -
202 beast::Journal{beast::Journal::getNullSink()});
-
203 txJson[jss::owner_funds] = ownerFunds.getText();
-
204 }
-
205 }
-
206
-
207 return txJson;
-
208}
-
209
-
210template <class Object>
-
211void
-
212fillJsonTx(Object& json, LedgerFill const& fill)
-
213{
-
214 auto&& txns = setArray(json, jss::transactions);
-
215 auto bBinary = isBinary(fill);
-
216 auto bExpanded = isExpanded(fill);
-
217
-
218 try
-
219 {
-
220 auto appendAll = [&](auto const& txs) {
-
221 for (auto& i : txs)
-
222 {
-
223 txns.append(
-
224 fillJsonTx(fill, bBinary, bExpanded, i.first, i.second));
-
225 }
-
226 };
-
227
-
228 appendAll(fill.ledger.txs);
-
229 }
-
230 catch (std::exception const& ex)
-
231 {
-
232 // Nothing the user can do about this.
-
233 if (fill.context)
-
234 {
-
235 JLOG(fill.context->j.error())
-
236 << "Exception in " << __func__ << ": " << ex.what();
-
237 }
-
238 }
-
239}
-
240
-
241template <class Object>
-
242void
-
243fillJsonState(Object& json, LedgerFill const& fill)
-
244{
-
245 auto& ledger = fill.ledger;
-
246 auto&& array = Json::setArray(json, jss::accountState);
-
247 auto expanded = isExpanded(fill);
-
248 auto binary = isBinary(fill);
-
249
-
250 for (auto const& sle : ledger.sles)
-
251 {
-
252 if (binary)
-
253 {
-
254 auto&& obj = appendObject(array);
-
255 obj[jss::hash] = to_string(sle->key());
-
256 obj[jss::tx_blob] = serializeHex(*sle);
-
257 }
-
258 else if (expanded)
-
259 array.append(sle->getJson(JsonOptions::none));
-
260 else
-
261 array.append(to_string(sle->key()));
-
262 }
-
263}
-
264
-
265template <class Object>
-
266void
-
267fillJsonQueue(Object& json, LedgerFill const& fill)
-
268{
-
269 auto&& queueData = Json::setArray(json, jss::queue_data);
-
270 auto bBinary = isBinary(fill);
-
271 auto bExpanded = isExpanded(fill);
-
272
-
273 for (auto const& tx : fill.txQueue)
-
274 {
-
275 auto&& txJson = appendObject(queueData);
-
276 txJson[jss::fee_level] = to_string(tx.feeLevel);
-
277 if (tx.lastValid)
-
278 txJson[jss::LastLedgerSequence] = *tx.lastValid;
-
279
-
280 txJson[jss::fee] = to_string(tx.consequences.fee());
-
281 auto const spend =
-
282 tx.consequences.potentialSpend() + tx.consequences.fee();
-
283 txJson[jss::max_spend_drops] = to_string(spend);
-
284 txJson[jss::auth_change] = tx.consequences.isBlocker();
-
285
-
286 txJson[jss::account] = to_string(tx.account);
-
287 txJson["retries_remaining"] = tx.retriesRemaining;
-
288 txJson["preflight_result"] = transToken(tx.preflightResult);
-
289 if (tx.lastResult)
-
290 txJson["last_result"] = transToken(*tx.lastResult);
-
291
-
292 auto&& temp = fillJsonTx(fill, bBinary, bExpanded, tx.txn, nullptr);
-
293 if (fill.context->apiVersion > 1)
-
294 copyFrom(txJson, temp);
-
295 else
-
296 copyFrom(txJson[jss::tx], temp);
-
297 }
-
298}
-
299
-
300template <class Object>
-
301void
-
302fillJson(Object& json, LedgerFill const& fill)
-
303{
-
304 // TODO: what happens if bBinary and bExtracted are both set?
-
305 // Is there a way to report this back?
-
306 auto bFull = isFull(fill);
-
307 if (isBinary(fill))
-
308 fillJsonBinary(json, !fill.ledger.open(), fill.ledger.header());
-
309 else
-
310 fillJson(
-
311 json,
-
312 !fill.ledger.open(),
-
313 fill.ledger.header(),
-
314 bFull,
-
315 (fill.context ? fill.context->apiVersion
-
316 : RPC::apiMaximumSupportedVersion));
-
317
-
318 if (bFull || fill.options & LedgerFill::dumpTxrp)
-
319 fillJsonTx(json, fill);
+
35void
+
36fillJson(
+
37 Json::Value& json,
+
38 bool closed,
+
39 LedgerHeader const& info,
+
40 bool bFull,
+
41 unsigned apiVersion)
+
42{
+
43 json[jss::parent_hash] = to_string(info.parentHash);
+
44 json[jss::ledger_index] = (apiVersion > 1)
+
45 ? Json::Value(info.seq)
+
46 : Json::Value(std::to_string(info.seq));
+
47
+
48 if (closed)
+
49 {
+
50 json[jss::closed] = true;
+
51 }
+
52 else if (!bFull)
+
53 {
+
54 json[jss::closed] = false;
+
55 return;
+
56 }
+
57
+
58 json[jss::ledger_hash] = to_string(info.hash);
+
59 json[jss::transaction_hash] = to_string(info.txHash);
+
60 json[jss::account_hash] = to_string(info.accountHash);
+
61 json[jss::total_coins] = to_string(info.drops);
+
62
+
63 json[jss::close_flags] = info.closeFlags;
+
64
+
65 // Always show fields that contribute to the ledger hash
+
66 json[jss::parent_close_time] =
+
67 info.parentCloseTime.time_since_epoch().count();
+
68 json[jss::close_time] = info.closeTime.time_since_epoch().count();
+
69 json[jss::close_time_resolution] = info.closeTimeResolution.count();
+
70
+
71 if (info.closeTime != NetClock::time_point{})
+
72 {
+
73 json[jss::close_time_human] = to_string(info.closeTime);
+
74 if (!getCloseAgree(info))
+
75 json[jss::close_time_estimated] = true;
+
76 json[jss::close_time_iso] = to_string_iso(info.closeTime);
+
77 }
+
78}
+
79
+
80void
+
81fillJsonBinary(Json::Value& json, bool closed, LedgerHeader const& info)
+
82{
+
83 if (!closed)
+
84 json[jss::closed] = false;
+
85 else
+
86 {
+
87 json[jss::closed] = true;
+
88
+
89 Serializer s;
+
90 addRaw(info, s);
+
91 json[jss::ledger_data] = strHex(s.peekData());
+
92 }
+
93}
+
94
+ +
96fillJsonTx(
+
97 LedgerFill const& fill,
+
98 bool bBinary,
+
99 bool bExpanded,
+ + +
102{
+
103 if (!bExpanded)
+
104 return to_string(txn->getTransactionID());
+
105
+ +
107 auto const txnType = txn->getTxnType();
+
108 if (bBinary)
+
109 {
+
110 txJson[jss::tx_blob] = serializeHex(*txn);
+
111 if (fill.context->apiVersion > 1)
+
112 txJson[jss::hash] = to_string(txn->getTransactionID());
+
113
+
114 auto const json_meta =
+
115 (fill.context->apiVersion > 1 ? jss::meta_blob : jss::meta);
+
116 if (stMeta)
+
117 txJson[json_meta] = serializeHex(*stMeta);
+
118 }
+
119 else if (fill.context->apiVersion > 1)
+
120 {
+
121 copyFrom(
+
122 txJson[jss::tx_json],
+
123 txn->getJson(JsonOptions::disable_API_prior_V2, false));
+
124 txJson[jss::hash] = to_string(txn->getTransactionID());
+ +
126 txJson[jss::tx_json], txnType, fill.context->apiVersion);
+
127
+
128 if (stMeta)
+
129 {
+
130 txJson[jss::meta] = stMeta->getJson(JsonOptions::none);
+
131
+
132 // If applicable, insert delivered amount
+
133 if (txnType == ttPAYMENT || txnType == ttCHECK_CASH)
+ +
135 txJson[jss::meta],
+
136 fill.ledger,
+
137 txn,
+
138 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
+
139
+
140 // If applicable, insert mpt issuance id
+ +
142 txJson[jss::meta],
+
143 txn,
+
144 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
+
145 }
+
146
+
147 if (!fill.ledger.open())
+
148 txJson[jss::ledger_hash] = to_string(fill.ledger.header().hash);
+
149
+
150 bool const validated =
+
151 fill.context->ledgerMaster.isValidated(fill.ledger);
+
152 txJson[jss::validated] = validated;
+
153 if (validated)
+
154 {
+
155 auto const seq = fill.ledger.seq();
+
156 txJson[jss::ledger_index] = seq;
+
157 if (fill.closeTime)
+
158 txJson[jss::close_time_iso] = to_string_iso(*fill.closeTime);
+
159 }
+
160 }
+
161 else
+
162 {
+
163 copyFrom(txJson, txn->getJson(JsonOptions::none));
+
164 RPC::insertDeliverMax(txJson, txnType, fill.context->apiVersion);
+
165 if (stMeta)
+
166 {
+
167 txJson[jss::metaData] = stMeta->getJson(JsonOptions::none);
+
168
+
169 // If applicable, insert delivered amount
+
170 if (txnType == ttPAYMENT || txnType == ttCHECK_CASH)
+ +
172 txJson[jss::metaData],
+
173 fill.ledger,
+
174 txn,
+
175 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
+
176
+
177 // If applicable, insert mpt issuance id
+ +
179 txJson[jss::metaData],
+
180 txn,
+
181 {txn->getTransactionID(), fill.ledger.seq(), *stMeta});
+
182 }
+
183 }
+
184
+
185 if ((fill.options & LedgerFill::ownerFunds) &&
+
186 txn->getTxnType() == ttOFFER_CREATE)
+
187 {
+
188 auto const account = txn->getAccountID(sfAccount);
+
189 auto const amount = txn->getFieldAmount(sfTakerGets);
+
190
+
191 // If the offer create is not self funded then add the
+
192 // owner balance
+
193 if (account != amount.getIssuer())
+
194 {
+
195 auto const ownerFunds = accountFunds(
+
196 fill.ledger,
+
197 account,
+
198 amount,
+ +
200 beast::Journal{beast::Journal::getNullSink()});
+
201 txJson[jss::owner_funds] = ownerFunds.getText();
+
202 }
+
203 }
+
204
+
205 return txJson;
+
206}
+
207
+
208void
+
209fillJsonTx(Json::Value& json, LedgerFill const& fill)
+
210{
+
211 auto& txns = json[jss::transactions] = Json::arrayValue;
+
212 auto bBinary = isBinary(fill);
+
213 auto bExpanded = isExpanded(fill);
+
214
+
215 try
+
216 {
+
217 auto appendAll = [&](auto const& txs) {
+
218 for (auto& i : txs)
+
219 {
+
220 txns.append(
+
221 fillJsonTx(fill, bBinary, bExpanded, i.first, i.second));
+
222 }
+
223 };
+
224
+
225 appendAll(fill.ledger.txs);
+
226 }
+
227 catch (std::exception const& ex)
+
228 {
+
229 // Nothing the user can do about this.
+
230 if (fill.context)
+
231 {
+
232 JLOG(fill.context->j.error())
+
233 << "Exception in " << __func__ << ": " << ex.what();
+
234 }
+
235 }
+
236}
+
237
+
238void
+
239fillJsonState(Json::Value& json, LedgerFill const& fill)
+
240{
+
241 auto& ledger = fill.ledger;
+
242 auto& array = json[jss::accountState] = Json::arrayValue;
+
243 auto expanded = isExpanded(fill);
+
244 auto binary = isBinary(fill);
+
245
+
246 for (auto const& sle : ledger.sles)
+
247 {
+
248 if (binary)
+
249 {
+
250 auto& obj = array.append(Json::objectValue);
+
251 obj[jss::hash] = to_string(sle->key());
+
252 obj[jss::tx_blob] = serializeHex(*sle);
+
253 }
+
254 else if (expanded)
+
255 array.append(sle->getJson(JsonOptions::none));
+
256 else
+
257 array.append(to_string(sle->key()));
+
258 }
+
259}
+
260
+
261void
+
262fillJsonQueue(Json::Value& json, LedgerFill const& fill)
+
263{
+
264 auto& queueData = json[jss::queue_data] = Json::arrayValue;
+
265 auto bBinary = isBinary(fill);
+
266 auto bExpanded = isExpanded(fill);
+
267
+
268 for (auto const& tx : fill.txQueue)
+
269 {
+
270 auto& txJson = queueData.append(Json::objectValue);
+
271 txJson[jss::fee_level] = to_string(tx.feeLevel);
+
272 if (tx.lastValid)
+
273 txJson[jss::LastLedgerSequence] = *tx.lastValid;
+
274
+
275 txJson[jss::fee] = to_string(tx.consequences.fee());
+
276 auto const spend =
+
277 tx.consequences.potentialSpend() + tx.consequences.fee();
+
278 txJson[jss::max_spend_drops] = to_string(spend);
+
279 txJson[jss::auth_change] = tx.consequences.isBlocker();
+
280
+
281 txJson[jss::account] = to_string(tx.account);
+
282 txJson["retries_remaining"] = tx.retriesRemaining;
+
283 txJson["preflight_result"] = transToken(tx.preflightResult);
+
284 if (tx.lastResult)
+
285 txJson["last_result"] = transToken(*tx.lastResult);
+
286
+
287 auto&& temp = fillJsonTx(fill, bBinary, bExpanded, tx.txn, nullptr);
+
288 if (fill.context->apiVersion > 1)
+
289 copyFrom(txJson, temp);
+
290 else
+
291 copyFrom(txJson[jss::tx], temp);
+
292 }
+
293}
+
294
+
295void
+
296fillJson(Json::Value& json, LedgerFill const& fill)
+
297{
+
298 // TODO: what happens if bBinary and bExtracted are both set?
+
299 // Is there a way to report this back?
+
300 auto bFull = isFull(fill);
+
301 if (isBinary(fill))
+
302 fillJsonBinary(json, !fill.ledger.open(), fill.ledger.header());
+
303 else
+
304 fillJson(
+
305 json,
+
306 !fill.ledger.open(),
+
307 fill.ledger.header(),
+
308 bFull,
+
309 (fill.context ? fill.context->apiVersion
+
310 : RPC::apiMaximumSupportedVersion));
+
311
+
312 if (bFull || fill.options & LedgerFill::dumpTxrp)
+
313 fillJsonTx(json, fill);
+
314
+
315 if (bFull || fill.options & LedgerFill::dumpState)
+
316 fillJsonState(json, fill);
+
317}
+
318
+
319} // namespace
320
-
321 if (bFull || fill.options & LedgerFill::dumpState)
-
322 fillJsonState(json, fill);
-
323}
-
324
-
325} // namespace
+
321void
+
+
322addJson(Json::Value& json, LedgerFill const& fill)
+
323{
+
324 auto& object = json[jss::ledger] = Json::objectValue;
+
325 fillJson(object, fill);
326
-
327void
-
-
328addJson(Json::Value& json, LedgerFill const& fill)
-
329{
-
330 auto&& object = Json::addObject(json, jss::ledger);
-
331 fillJson(object, fill);
-
332
-
333 if ((fill.options & LedgerFill::dumpQueue) && !fill.txQueue.empty())
-
334 fillJsonQueue(json, fill);
-
335}
+
327 if ((fill.options & LedgerFill::dumpQueue) && !fill.txQueue.empty())
+
328 fillJsonQueue(json, fill);
+
329}
-
336
- -
-
338getJson(LedgerFill const& fill)
-
339{
-
340 Json::Value json;
-
341 fillJson(json, fill);
-
342 return json;
-
343}
+
330
+ +
+
332getJson(LedgerFill const& fill)
+
333{
+
334 Json::Value json;
+
335 fillJson(json, fill);
+
336 return json;
+
337}
-
344
-
345} // namespace xrpl
+
338
+
339void
+
+ +
341{
+
342 if (!to) // Short circuit this very common case.
+
343 to = from;
+
344 else
+
345 {
+
346 // TODO: figure out if there is a way to remove this clause
+
347 // or check that it does/needs to do a deep copy
+
348 XRPL_ASSERT(from.isObjectOrNull(), "copyFrom : invalid input type");
+
349 auto const members = from.getMemberNames();
+
350 for (auto const& m : members)
+
351 to[m] = from[m];
+
352 }
+
353}
+
+
354
+
355} // namespace xrpl
Represents a JSON value.
Definition json_value.h:131
+
bool isObjectOrNull() const
+
Members getMemberNames() const
Return a list of the member names.
A generic endpoint for log messages.
Definition Journal.h:41
std::chrono::time_point< NetClock > time_point
Definition chrono.h:50
T fill(T... args)
+
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value & setArray(Json::Value &, Json::StaticString const &key)
Add a new subarray at a named key in a Json object.
Definition Object.h:396
-
Json::Value & addObject(Json::Value &, Json::StaticString const &key)
Add a new subobject at a named key in a Json object.
Definition Object.h:408
-
Json::Value & appendObject(Json::Value &)
Append a new subobject to a Json object.
Definition Object.h:432
-
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
Definition Object.cpp:213
void insertDeliverMax(Json::Value &tx_json, TxType txnType, unsigned int apiVersion)
Copy Amount field to DeliverMax field in transaction output JSON.
Definition DeliverMax.cpp:9
void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
void insertDeliveredAmount(Json::Value &meta, ReadView const &, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &)
Add a delivered_amount field to the meta input/output parameter.
@@ -447,27 +458,28 @@ $(document).ready(function() { init_codefold(0); });
auto const amount
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@ fhIGNORE_FREEZE
Definition View.h:59
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
std::string transToken(TER code)
Definition TER.cpp:245
bool getCloseAgree(LedgerHeader const &info)
STAmount accountFunds(ReadView const &view, AccountID const &id, STAmount const &saDefault, FreezeHandling freezeHandling, beast::Journal j)
Definition View.cpp:657
+
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
void addRaw(LedgerHeader const &, Serializer &, bool includeHash=false)
std::string serializeHex(STObject const &o)
Serialize an object to a hex string.
Definition serialize.h:22
std::string to_string_iso(date::sys_time< Duration > tp)
Definition chrono.h:73
-
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
+
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Value with a description of the ledger.
- - - - - - - - + + + + + + + +
T to_string(T... args)
T what(T... args)
diff --git a/LedgerToJson_8h_source.html b/LedgerToJson_8h_source.html index e89bcb620a..572594bfa7 100644 --- a/LedgerToJson_8h_source.html +++ b/LedgerToJson_8h_source.html @@ -90,80 +90,83 @@ $(document).ready(function() { init_codefold(0); });
7#include <xrpld/rpc/Context.h>
8
9#include <xrpl/basics/chrono.h>
-
10#include <xrpl/json/Object.h>
-
11#include <xrpl/protocol/serialize.h>
-
12
-
13namespace xrpl {
-
14
-
- -
16{
-
- -
18 ReadView const& l,
-
19 RPC::Context const* ctx,
-
20 int o = 0,
- -
22 : ledger(l), options(o), txQueue(std::move(q)), context(ctx)
-
23 {
-
24 if (context)
- -
26 }
+
10#include <xrpl/protocol/serialize.h>
+
11
+
12namespace xrpl {
+
13
+
+ +
15{
+
+ +
17 ReadView const& l,
+
18 RPC::Context const* ctx,
+
19 int o = 0,
+ +
21 : ledger(l), options(o), txQueue(std::move(q)), context(ctx)
+
22 {
+
23 if (context)
+ +
25 }
-
27
- -
44
-
49void
- -
51
- -
54getJson(LedgerFill const&);
-
55
-
56} // namespace xrpl
+
43
+
47void
+ +
49
+ +
52getJson(LedgerFill const&);
+
53
+
55void
+
56copyFrom(Json::Value& to, Json::Value const& from);
57
-
58#endif
+
58} // namespace xrpl
+
59
+
60#endif
Represents a JSON value.
Definition json_value.h:131
std::optional< NetClock::time_point > getCloseTimeBySeq(LedgerIndex ledgerIndex)
A view into a ledger.
Definition ReadView.h:32
LedgerIndex seq() const
Returns the sequence number of the base ledger.
Definition ReadView.h:99
STL namespace.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
-
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
+
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Value with a description of the ledger.
- - - - - - - - - - -
LedgerFill(ReadView const &l, RPC::Context const *ctx, int o=0, std::vector< TxQ::TxDetails > q={})
-
RPC::Context const * context
-
std::vector< TxQ::TxDetails > txQueue
-
std::optional< NetClock::time_point > closeTime
-
ReadView const & ledger
+ + + + + + + + + + +
LedgerFill(ReadView const &l, RPC::Context const *ctx, int o=0, std::vector< TxQ::TxDetails > q={})
+
RPC::Context const * context
+
std::vector< TxQ::TxDetails > txQueue
+
std::optional< NetClock::time_point > closeTime
+
ReadView const & ledger
The context of information needed to call an RPC.
Definition Context.h:20
LedgerMaster & ledgerMaster
Definition Context.h:25
diff --git a/Ledger_8cpp_source.html b/Ledger_8cpp_source.html index ff0fc50abb..7fea0064a2 100644 --- a/Ledger_8cpp_source.html +++ b/Ledger_8cpp_source.html @@ -1511,7 +1511,7 @@ $(document).ready(function() { init_codefold(0); });
bool isFlagLedger(LedgerIndex seq)
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition Ledger.cpp:945
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
Definition tokens.cpp:138
boost::intrusive_ptr< SHAMapItem > make_shamapitem(uint256 const &tag, Slice data)
Definition SHAMapItem.h:142
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
Definition digest.h:205
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
Rules makeRulesGivenLedger(DigestAwareReadView const &ledger, Rules const &current)
Definition ReadView.cpp:50
diff --git a/LogLevel_8cpp_source.html b/LogLevel_8cpp_source.html index 22266b37b6..040d4cfd6e 100644 --- a/LogLevel_8cpp_source.html +++ b/LogLevel_8cpp_source.html @@ -120,7 +120,7 @@ $(document).ready(function() { init_codefold(0); });
36 Logs::fromString(context.params[jss::severity].asString()));
37
38 if (sv == lsINVALID)
- +
40
41 auto severity = Logs::toSeverity(sv);
42 // log_level severity
@@ -145,7 +145,7 @@ $(document).ready(function() { init_codefold(0); });
61 return Json::objectValue;
62 }
63
- +
65}
66
@@ -168,7 +168,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value doLogLevel(RPC::JsonContext &)
Definition LogLevel.cpp:15
LogSeverity
Definition Log.h:19
@ lsINVALID
Definition Log.h:20
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:65
Application & app
Definition Context.h:22
diff --git a/Manifest__test_8cpp_source.html b/Manifest__test_8cpp_source.html index 1eaaed442a..b88812de15 100644 --- a/Manifest__test_8cpp_source.html +++ b/Manifest__test_8cpp_source.html @@ -1251,7 +1251,7 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
T max(T... args)
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
KeyType
Definition KeyType.h:9
diff --git a/NFTOffers_8cpp_source.html b/NFTOffers_8cpp_source.html index fb2d2b68cd..f29836424f 100644 --- a/NFTOffers_8cpp_source.html +++ b/NFTOffers_8cpp_source.html @@ -143,7 +143,7 @@ $(document).ready(function() { init_codefold(0); });
57 return result;
58
59 if (!ledger->exists(directory))
- +
61
62 Json::Value result;
63 result[jss::nft_id] = to_string(nftId);
@@ -165,12 +165,12 @@ $(document).ready(function() { init_codefold(0); });
79 return RPC::expected_field_error(jss::marker, "string");
80
81 if (!startAfter.parseHex(marker.asString()))
- +
83
84 auto const sle = ledger->read(keylet::nftoffer(startAfter));
85
86 if (!sle || nftId != sle->getFieldH256(sfNFTokenID))
- +
88
89 startHint = sle->getFieldU64(sfNFTokenOfferNode);
90 appendNftOfferJson(context.app, sle, jsonOffers);
@@ -198,7 +198,7 @@ $(document).ready(function() { init_codefold(0); });
112 return false;
113 }))
114 {
- +
116 }
117
118 if (offers.size() == reserve)
@@ -260,9 +260,9 @@ $(document).ready(function() { init_codefold(0); });
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
static LimitRange constexpr nftOffers
Limits for the nft_buy_offers & nft_sell_offers commands.
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Charge const feeMediumBurdenRPC
Keylet nftoffer(AccountID const &owner, std::uint32_t seq)
An offer from an account to buy or sell an NFT.
Definition Indexes.cpp:409
@@ -272,7 +272,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value doNFTSellOffers(RPC::JsonContext &)
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
Json::Value doNFTBuyOffers(RPC::JsonContext &)
static Json::Value enumerateNFTOffers(RPC::JsonContext &context, uint256 const &nftId, Keylet const &directory)
Definition NFTOffers.cpp:45
bool forEachItemAfter(ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items after an item in the given directory.
Definition View.cpp:786
diff --git a/NetworkOPs_8cpp_source.html b/NetworkOPs_8cpp_source.html index 02e3d91fc6..f69c215b4f 100644 --- a/NetworkOPs_8cpp_source.html +++ b/NetworkOPs_8cpp_source.html @@ -3921,7 +3921,7 @@ $(document).ready(function() { init_codefold(0); });
3719 << toBase58(subInfo.index_->accountId_) << " no database";
3720 if (auto sptr = subInfo.sinkWptr_.lock(); sptr)
3721 {
-
3722 sptr->send(rpcError(rpcINTERNAL), true);
+
3722 sptr->send(rpcError(rpcINTERNAL), true);
3723 unsubAccountHistory(sptr, subInfo.index_->accountId_, false);
3724 }
3725 return;
@@ -4097,7 +4097,7 @@ $(document).ready(function() { init_codefold(0); });
3895 JLOG(m_journal.debug())
3896 << "AccountHistory job for account "
3897 << toBase58(accountId) << " getMoreTxns failed.";
-
3898 send(rpcError(rpcINTERNAL), true);
+
3898 send(rpcError(rpcINTERNAL), true);
3899 return;
3900 // LCOV_EXCL_STOP
3901 }
@@ -4114,7 +4114,7 @@ $(document).ready(function() { init_codefold(0); });
3912 JLOG(m_journal.debug())
3913 << "AccountHistory job for account "
3914 << toBase58(accountId) << " empty tx or meta.";
-
3915 send(rpcError(rpcINTERNAL), true);
+
3915 send(rpcError(rpcINTERNAL), true);
3916 return;
3917 }
3918 auto curTxLedger =
@@ -4129,7 +4129,7 @@ $(document).ready(function() { init_codefold(0); });
3927 JLOG(m_journal.debug())
3928 << "AccountHistory job for account "
3929 << toBase58(accountId) << " no ledger.";
-
3930 send(rpcError(rpcINTERNAL), true);
+
3930 send(rpcError(rpcINTERNAL), true);
3931 return;
3932 // LCOV_EXCL_STOP
3933 }
@@ -4145,7 +4145,7 @@ $(document).ready(function() { init_codefold(0); });
3943 << "AccountHistory job for account "
3944 << toBase58(accountId)
3945 << " getSTransaction failed.";
-
3946 send(rpcError(rpcINTERNAL), true);
+
3946 send(rpcError(rpcINTERNAL), true);
3947 return;
3948 // LCOV_EXCL_STOP
3949 }
@@ -5558,7 +5558,7 @@ $(document).ready(function() { init_codefold(0); });
@ fhIGNORE_FREEZE
Definition View.h:59
csprng_engine & crypto_prng()
The default cryptographically secure PRNG.
std::optional< std::uint64_t > mulDiv(std::uint64_t value, std::uint64_t mul, std::uint64_t div)
Return value*mul/div accurately.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
@ INVALID
Definition Transaction.h:29
@ OBSOLETE
Definition Transaction.h:35
@ INCLUDED
Definition Transaction.h:30
@@ -5582,7 +5582,6 @@ $(document).ready(function() { init_codefold(0); });
std::pair< PublicKey, SecretKey > generateKeyPair(KeyType type, Seed const &seed)
Generate a key pair deterministically.
STAmount accountHolds(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer, FreezeHandling zeroIfFrozen, beast::Journal j)
Definition View.cpp:461
@ current
This was a new validation and was added.
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
constexpr std::size_t maxPoppedTransactions
STAmount accountFunds(ReadView const &view, AccountID const &id, STAmount const &saDefault, FreezeHandling freezeHandling, beast::Journal j)
Definition View.cpp:657
bool isGlobalFrozen(ReadView const &view, AccountID const &issuer)
Definition View.cpp:163
@@ -5607,6 +5606,7 @@ $(document).ready(function() { init_codefold(0); });
uint256 getBookBase(Book const &book)
Definition Indexes.cpp:98
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
std::string to_string_iso(date::sys_time< Duration > tp)
Definition chrono.h:73
std::unique_ptr< LocalTxs > make_LocalTxs()
Definition LocalTxs.cpp:173
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules, Config const &config)
Checks transaction signature and local checks.
Definition apply.cpp:25
diff --git a/NoRippleCheck_8cpp_source.html b/NoRippleCheck_8cpp_source.html index 0a736894b7..ce0e678c3e 100644 --- a/NoRippleCheck_8cpp_source.html +++ b/NoRippleCheck_8cpp_source.html @@ -178,13 +178,13 @@ $(document).ready(function() { init_codefold(0); });
92 auto id = parseBase58<AccountID>(params[jss::account].asString());
93 if (!id)
94 {
- +
96 return result;
97 }
98 auto const accountID{std::move(id.value())};
99 auto const sle = ledger->read(keylet::account(accountID));
100 if (!sle)
- +
102
103 std::uint32_t seq = sle->getFieldU32(sfSequence);
104
@@ -291,9 +291,9 @@ $(document).ready(function() { init_codefold(0); });
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
unsigned int UInt
static LimitRange constexpr noRippleCheck
Limits for the no_ripple_check command.
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@@ -301,8 +301,8 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t tfSetNoRipple
Definition TxFlags.h:97
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
base_uint< 256 > uint256
Definition base_uint.h:539
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
constexpr std::uint32_t tfClearNoRipple
Definition TxFlags.h:98
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
XRPAmount scaleFeeLoad(XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited)
bool forEachItemAfter(ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items after an item in the given directory.
Definition View.cpp:786
@ lsfDefaultRipple
diff --git a/Node_8cpp_source.html b/Node_8cpp_source.html index 7839add8c1..c6c4b1ed48 100644 --- a/Node_8cpp_source.html +++ b/Node_8cpp_source.html @@ -1489,7 +1489,7 @@ $(document).ready(function() { init_codefold(0); });
std::optional< LedgerHashPair > getHashesByIndex(soci::session &session, LedgerIndex ledgerIndex, beast::Journal j)
getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequenc...
Definition Node.cpp:545
PrettyAmount drops(Integer i)
Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
ClosedInterval< T > range(T low, T high)
Create a closed range interval.
Definition RangeSet.h:35
constexpr std::array< char const *, 8 > TxDBInit
Definition DBInit.h:53
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
diff --git a/Object_8cpp_source.html b/Object_8cpp_source.html deleted file mode 100644 index f5e12b5f7d..0000000000 --- a/Object_8cpp_source.html +++ /dev/null @@ -1,416 +0,0 @@ - - - - - - - -rippled: Object.cpp Source File - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Object.cpp
-
-
-
1#include <xrpl/basics/contract.h>
-
2#include <xrpl/beast/utility/instrumentation.h>
-
3#include <xrpl/json/Object.h>
-
4#include <xrpl/json/Output.h>
-
5#include <xrpl/json/Writer.h>
-
6#include <xrpl/json/json_value.h>
-
7
-
8#include <stdexcept>
-
9#include <utility>
-
10
-
11namespace Json {
-
12
-
- -
14 : parent_(parent), writer_(writer), enabled_(true)
-
15{
-
16 checkWritable("Collection::Collection()");
-
17 if (parent_)
-
18 {
-
19 check(parent_->enabled_, "Parent not enabled in constructor");
-
20 parent_->enabled_ = false;
-
21 }
-
22}
-
-
23
-
- -
25{
-
26 if (writer_)
-
27 writer_->finish();
-
28 if (parent_)
-
29 parent_->enabled_ = true;
-
30}
-
-
31
- -
- -
34{
-
35 parent_ = that.parent_;
-
36 writer_ = that.writer_;
-
37 enabled_ = that.enabled_;
-
38
-
39 that.parent_ = nullptr;
-
40 that.writer_ = nullptr;
-
41 that.enabled_ = false;
-
42
-
43 return *this;
-
44}
-
-
45
-
- -
47{
-
48 *this = std::move(that);
-
49}
-
-
50
-
51void
-
- -
53{
-
54 if (!enabled_)
-
55 xrpl::Throw<std::logic_error>(label + ": not enabled");
-
56 if (!writer_)
-
57 xrpl::Throw<std::logic_error>(label + ": not writable");
-
58}
-
-
59
-
60//------------------------------------------------------------------------------
-
61
-
- -
63{
- -
65}
-
-
66
- -
- -
69{
-
70 checkWritable("Object::setObject");
-
71 if (writer_)
- -
73 return Object(this, writer_);
-
74}
-
-
75
- -
- -
78{
-
79 checkWritable("Object::setArray");
-
80 if (writer_)
- -
82 return Array(this, writer_);
-
83}
-
-
84
-
85//------------------------------------------------------------------------------
-
86
- -
- -
89{
-
90 checkWritable("Array::appendObject");
-
91 if (writer_)
- -
93 return Object(this, writer_);
-
94}
-
-
95
- -
- -
98{
-
99 checkWritable("Array::makeArray");
-
100 if (writer_)
- -
102 return Array(this, writer_);
-
103}
-
-
104
-
105//------------------------------------------------------------------------------
-
106
-
- -
108 : object_(object), key_(key)
-
109{
-
110}
-
-
111
- -
- -
114{
-
115 return Proxy(*this, key);
-
116}
-
-
117
- -
- -
120{
-
121 return Proxy(*this, std::string(key));
-
122}
-
-
123
-
124//------------------------------------------------------------------------------
-
125
-
126void
-
- -
128{
-
129 auto t = v.type();
-
130 switch (t)
-
131 {
-
132 case Json::nullValue:
-
133 return append(nullptr);
-
134 case Json::intValue:
-
135 return append(v.asInt());
-
136 case Json::uintValue:
-
137 return append(v.asUInt());
-
138 case Json::realValue:
-
139 return append(v.asDouble());
- -
141 return append(v.asString());
- -
143 return append(v.asBool());
-
144
-
145 case Json::objectValue: {
-
146 auto object = appendObject();
-
147 copyFrom(object, v);
-
148 return;
-
149 }
-
150
-
151 case Json::arrayValue: {
-
152 auto array = appendArray();
-
153 for (auto& item : v)
-
154 array.append(item);
-
155 return;
-
156 }
-
157 }
-
158 UNREACHABLE("Json::Array::append : invalid type"); // LCOV_EXCL_LINE
-
159}
-
-
160
-
161void
-
- -
163{
-
164 auto t = v.type();
-
165 switch (t)
-
166 {
-
167 case Json::nullValue:
-
168 return set(k, nullptr);
-
169 case Json::intValue:
-
170 return set(k, v.asInt());
-
171 case Json::uintValue:
-
172 return set(k, v.asUInt());
-
173 case Json::realValue:
-
174 return set(k, v.asDouble());
- -
176 return set(k, v.asString());
- -
178 return set(k, v.asBool());
-
179
-
180 case Json::objectValue: {
-
181 auto object = setObject(k);
-
182 copyFrom(object, v);
-
183 return;
-
184 }
-
185
-
186 case Json::arrayValue: {
-
187 auto array = setArray(k);
-
188 for (auto& item : v)
-
189 array.append(item);
-
190 return;
-
191 }
-
192 }
-
193 UNREACHABLE("Json::Object::set : invalid type"); // LCOV_EXCL_LINE
-
194}
-
-
195
-
196//------------------------------------------------------------------------------
-
197
-
198namespace {
-
199
-
200template <class Object>
-
201void
-
202doCopyFrom(Object& to, Json::Value const& from)
-
203{
-
204 XRPL_ASSERT(from.isObjectOrNull(), "Json::doCopyFrom : valid input type");
-
205 auto members = from.getMemberNames();
-
206 for (auto& m : members)
-
207 to[m] = from[m];
-
208}
-
209
-
210} // namespace
-
211
-
212void
-
- -
214{
-
215 if (!to) // Short circuit this very common case.
-
216 to = from;
-
217 else
-
218 doCopyFrom(to, from);
-
219}
-
-
220
-
221void
-
-
222copyFrom(Object& to, Json::Value const& from)
-
223{
-
224 doCopyFrom(to, from);
-
225}
-
-
226
-
227WriterObject
-
- -
229{
-
230 return WriterObject(stringOutput(s));
-
231}
-
-
232
-
233} // namespace Json
- -
Represents a JSON array being written to a Writer.
Definition Object.h:228
-
Object appendObject()
Append a new Object and return it.
Definition Object.cpp:88
-
Array appendArray()
Append a new Array and return it.
Definition Object.cpp:97
-
void append(Scalar const &)
Append a scalar to the Arrary.
Definition Object.h:379
- -
void checkWritable(std::string const &label)
Definition Object.cpp:52
- -
Collection & operator=(Collection &&c) noexcept
Definition Object.cpp:33
- -
Collection()=delete
-
Collection * parent_
Definition Object.h:150
-
Writer * writer_
Definition Object.h:151
- -
Proxy(Object &object, std::string const &key)
Definition Object.cpp:107
- -
Represents a JSON object being written to a Writer.
Definition Object.h:161
-
Proxy operator[](std::string const &key)
Definition Object.cpp:113
-
void set(std::string const &key, Scalar const &)
Set a scalar value in the Object for a key.
Definition Object.h:388
-
friend class Array
Definition Object.h:211
-
Array setArray(std::string const &key)
Make a new Array at a key and return it.
Definition Object.cpp:77
-
Object setObject(std::string const &key)
Make a new Object at a key and return it.
Definition Object.cpp:68
-
Lightweight wrapper to tag static string.
Definition json_value.h:45
-
Represents a JSON value.
Definition json_value.h:131
-
bool isObjectOrNull() const
-
Int asInt() const
-
UInt asUInt() const
-
Members getMemberNames() const
Return a list of the member names.
-
ValueType type() const
-
std::string asString() const
Returns the unquoted string value.
-
bool asBool() const
-
double asDouble() const
-
An Object that contains its own Writer.
Definition Object.h:316
-
Writer implements an O(1)-space, O(1)-granular output JSON writer.
-
void finish()
Finish the collection most recently started.
-
void startRoot(CollectionType)
Start a new collection at the root level.
- - -
void startAppend(CollectionType)
Start a new collection inside an array.
-
void startSet(CollectionType, std::string const &key)
Start a new collection inside an object.
-
JSON (JavaScript Object Notation).
Definition json_errors.h:6
-
Output stringOutput(std::string &s)
-
Json::Value & appendArray(Json::Value &)
Append a new subarray to a Json array.
Definition Object.h:420
-
@ booleanValue
bool value
Definition json_value.h:25
-
@ nullValue
'null' value
Definition json_value.h:20
-
@ stringValue
UTF-8 string value.
Definition json_value.h:24
-
@ realValue
double value
Definition json_value.h:23
-
@ arrayValue
array value (ordered list)
Definition json_value.h:26
-
@ intValue
signed integer value
Definition json_value.h:21
-
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
@ uintValue
unsigned integer value
Definition json_value.h:22
-
WriterObject stringWriterObject(std::string &)
Definition Object.cpp:228
-
Json::Value & appendObject(Json::Value &)
Append a new subobject to a Json object.
Definition Object.h:432
-
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
Definition Object.cpp:213
-
void check(bool condition, std::string const &message)
- - -
- - - - diff --git a/Object_8h_source.html b/Object_8h_source.html deleted file mode 100644 index ea3bad9462..0000000000 --- a/Object_8h_source.html +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - - -rippled: Object.h Source File - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Object.h
-
-
-
1#ifndef XRPL_JSON_OBJECT_H_INCLUDED
-
2#define XRPL_JSON_OBJECT_H_INCLUDED
-
3
-
4#include <xrpl/json/Writer.h>
-
5
-
6#include <memory>
-
7
-
8namespace Json {
-
9
-
- -
134{
-
135public:
-
136 Collection(Collection&& c) noexcept;
- -
138 operator=(Collection&& c) noexcept;
-
139 Collection() = delete;
-
140
-
141 ~Collection();
-
142
-
143protected:
-
144 // A null parent means "no parent at all".
-
145 // Writers cannot be null.
-
146 Collection(Collection* parent, Writer*);
-
147 void
-
148 checkWritable(std::string const& label);
-
149
- - - -
153};
-
-
154
-
155class Array;
-
156
-
157//------------------------------------------------------------------------------
-
158
-
-
160class Object : protected Collection
-
161{
-
162public:
-
164 class Root;
-
165
-
179 template <typename Scalar>
-
180 void
-
181 set(std::string const& key, Scalar const&);
-
182
-
183 void
-
184 set(std::string const& key, Json::Value const&);
-
185
-
186 // Detail class and method used to implement operator[].
-
187 class Proxy;
-
188
-
189 Proxy
-
190 operator[](std::string const& key);
-
191 Proxy
-
192 operator[](Json::StaticString const& key);
-
193
-
199 Object
-
200 setObject(std::string const& key);
-
201
-
207 Array
-
208 setArray(std::string const& key);
-
209
-
210protected:
-
211 friend class Array;
-
-
212 Object(Collection* parent, Writer* w) : Collection(parent, w)
-
213 {
-
214 }
-
-
215};
-
-
216
-
-
217class Object::Root : public Object
-
218{
-
219public:
-
221 Root(Writer&);
-
222};
-
-
223
-
224//------------------------------------------------------------------------------
-
225
-
-
227class Array : private Collection
-
228{
-
229public:
-
235 template <typename Scalar>
-
236 void
-
237 append(Scalar const&);
-
238
-
243 void
-
244 append(Json::Value const&);
-
245
-
251 Object
-
252 appendObject();
-
253
-
259 Array
-
260 appendArray();
-
261
-
262protected:
-
263 friend class Object;
-
-
264 Array(Collection* parent, Writer* w) : Collection(parent, w)
-
265 {
-
266 }
-
-
267};
-
-
268
-
269//------------------------------------------------------------------------------
-
270
-
271// Generic accessor functions to allow Json::Value and Collection to
-
272// interoperate.
-
273
- - -
277
-
279Array
-
280setArray(Object&, Json::StaticString const& key);
-
281
- - -
285
-
287Object
-
288addObject(Object&, Json::StaticString const& key);
-
289
- - -
293
-
295Array
-
296appendArray(Array&);
-
297
- - -
301
-
303Object
-
304appendObject(Array&);
-
305
-
307void
-
308copyFrom(Json::Value& to, Json::Value const& from);
-
309
-
311void
-
312copyFrom(Object& to, Json::Value const& from);
-
313
-
- -
316{
-
317public:
-
-
318 WriterObject(Output const& output)
-
319 : writer_(std::make_unique<Writer>(output))
-
320 , object_(std::make_unique<Object::Root>(*writer_))
-
321 {
-
322 }
-
-
323
-
324 WriterObject(WriterObject&& other) = default;
-
325
-
326 Object*
-
- -
328 {
-
329 return object_.get();
-
330 }
-
-
331
-
332 Object&
-
- -
334 {
-
335 return *object_;
-
336 }
-
-
337
-
338private:
- - -
341};
-
-
342
- - -
345
-
346//------------------------------------------------------------------------------
-
347// Implementation details.
-
348
-
349// Detail class for Object::operator[].
-
- -
351{
-
352private:
- - -
355
-
356public:
-
357 Proxy(Object& object, std::string const& key);
-
358
-
359 template <class T>
-
360 void
-
-
361 operator=(T const& t)
-
362 {
-
363 object_.set(key_, t);
-
364 // Note: This function shouldn't return *this, because it's a trap.
-
365 //
-
366 // In Json::Value, foo[jss::key] returns a reference to a
-
367 // mutable Json::Value contained _inside_ foo. But in the case of
-
368 // Json::Object, where we write once only, there isn't any such
-
369 // reference that can be returned. Returning *this would return an
-
370 // object "a level higher" than in Json::Value, leading to obscure bugs,
-
371 // particularly in generic code.
-
372 }
-
-
373};
-
-
374
-
375//------------------------------------------------------------------------------
-
376
-
377template <typename Scalar>
-
378void
-
-
379Array::append(Scalar const& value)
-
380{
-
381 checkWritable("append");
-
382 if (writer_)
-
383 writer_->append(value);
-
384}
-
-
385
-
386template <typename Scalar>
-
387void
-
-
388Object::set(std::string const& key, Scalar const& value)
-
389{
-
390 checkWritable("set");
-
391 if (writer_)
-
392 writer_->set(key, value);
-
393}
-
-
394
-
395inline Json::Value&
-
- -
397{
-
398 return (json[key] = Json::arrayValue);
-
399}
-
-
400
-
401inline Array
-
- -
403{
-
404 return json.setArray(std::string(key));
-
405}
-
-
406
-
407inline Json::Value&
-
- -
409{
-
410 return (json[key] = Json::objectValue);
-
411}
-
-
412
-
413inline Object
-
- -
415{
-
416 return object.setObject(std::string(key));
-
417}
-
-
418
-
419inline Json::Value&
-
- -
421{
-
422 return json.append(Json::arrayValue);
-
423}
-
-
424
-
425inline Array
-
- -
427{
-
428 return json.appendArray();
-
429}
-
-
430
-
431inline Json::Value&
-
- -
433{
-
434 return json.append(Json::objectValue);
-
435}
-
-
436
-
437inline Object
-
- -
439{
-
440 return json.appendObject();
-
441}
-
-
442
-
443} // namespace Json
-
444
-
445#endif
- -
Represents a JSON array being written to a Writer.
Definition Object.h:228
-
Object appendObject()
Append a new Object and return it.
Definition Object.cpp:88
-
Array(Collection *parent, Writer *w)
Definition Object.h:264
-
Array appendArray()
Append a new Array and return it.
Definition Object.cpp:97
-
void append(Scalar const &)
Append a scalar to the Arrary.
Definition Object.h:379
- -
void checkWritable(std::string const &label)
Definition Object.cpp:52
- -
Collection & operator=(Collection &&c) noexcept
Definition Object.cpp:33
- -
Collection()=delete
-
Collection * parent_
Definition Object.h:150
-
Writer * writer_
Definition Object.h:151
- -
Object & object_
Definition Object.h:353
-
void operator=(T const &t)
Definition Object.h:361
-
std::string const key_
Definition Object.h:354
- -
Represents a JSON object being written to a Writer.
Definition Object.h:161
-
Proxy operator[](std::string const &key)
Definition Object.cpp:113
-
Object(Collection *parent, Writer *w)
Definition Object.h:212
-
void set(std::string const &key, Scalar const &)
Set a scalar value in the Object for a key.
Definition Object.h:388
-
Array setArray(std::string const &key)
Make a new Array at a key and return it.
Definition Object.cpp:77
-
Object setObject(std::string const &key)
Make a new Object at a key and return it.
Definition Object.cpp:68
-
Lightweight wrapper to tag static string.
Definition json_value.h:45
-
Represents a JSON value.
Definition json_value.h:131
-
Value & append(Value const &value)
Append value to array at the end.
-
An Object that contains its own Writer.
Definition Object.h:316
-
std::unique_ptr< Writer > writer_
Definition Object.h:339
-
WriterObject(WriterObject &&other)=default
-
WriterObject(Output const &output)
Definition Object.h:318
-
Object * operator->()
Definition Object.h:327
-
std::unique_ptr< Object::Root > object_
Definition Object.h:340
-
Object & operator*()
Definition Object.h:333
-
Writer implements an O(1)-space, O(1)-granular output JSON writer.
-
void append(Scalar t)
Append a value to an array.
-
void set(std::string const &tag, Type t)
Add a key, value assignment to an object.
- - -
JSON (JavaScript Object Notation).
Definition json_errors.h:6
-
Json::Value & appendArray(Json::Value &)
Append a new subarray to a Json array.
Definition Object.h:420
-
@ arrayValue
array value (ordered list)
Definition json_value.h:26
-
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
WriterObject stringWriterObject(std::string &)
Definition Object.cpp:228
-
Json::Value & setArray(Json::Value &, Json::StaticString const &key)
Add a new subarray at a named key in a Json object.
Definition Object.h:396
-
Json::Value & addObject(Json::Value &, Json::StaticString const &key)
Add a new subobject at a named key in a Json object.
Definition Object.h:408
-
Json::Value & appendObject(Json::Value &)
Append a new subobject to a Json object.
Definition Object.h:432
-
void copyFrom(Json::Value &to, Json::Value const &from)
Copy all the keys and values from one object into another.
Definition Object.cpp:213
-
STL namespace.
- -
- - - - diff --git a/Object__test_8cpp_source.html b/Object__test_8cpp_source.html deleted file mode 100644 index fa557dfebc..0000000000 --- a/Object__test_8cpp_source.html +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - - -rippled: Object_test.cpp Source File - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Object_test.cpp
-
-
-
1#include <test/json/TestOutputSuite.h>
-
2
-
3#include <xrpl/beast/unit_test.h>
-
4#include <xrpl/json/Object.h>
-
5
-
6namespace Json {
-
7
-
- -
9{
-
10 void
-
-
11 setup(std::string const& testName)
-
12 {
-
13 testcase(testName);
-
14 output_.clear();
-
15 }
-
-
16
- -
18
-
19 Object&
- -
26
-
27 void
-
-
28 expectResult(std::string const& expected)
-
29 {
-
30 writerObject_.reset();
-
31 TestOutputSuite::expectResult(expected);
-
32 }
-
-
33
-
34public:
-
35 void
-
- -
37 {
-
38 setup("trivial");
-
39
-
40 {
-
41 auto& root = makeRoot();
-
42 (void)root;
-
43 }
-
44 expectResult("{}");
-
45 }
-
-
46
-
47 void
-
- -
49 {
-
50 setup("simple");
-
51 {
-
52 auto& root = makeRoot();
-
53 root["hello"] = "world";
-
54 root["skidoo"] = 23;
-
55 root["awake"] = false;
-
56 root["temperature"] = 98.6;
-
57 }
-
58
- -
60 "{\"hello\":\"world\","
-
61 "\"skidoo\":23,"
-
62 "\"awake\":false,"
-
63 "\"temperature\":98.6}");
-
64 }
-
-
65
-
66 void
-
- -
68 {
-
69 setup("oneSub");
-
70 {
-
71 auto& root = makeRoot();
-
72 root.setArray("ar");
-
73 }
-
74 expectResult("{\"ar\":[]}");
-
75 }
-
-
76
-
77 void
-
- -
79 {
-
80 setup("subs");
-
81 {
-
82 auto& root = makeRoot();
-
83
-
84 {
-
85 // Add an array with three entries.
-
86 auto array = root.setArray("ar");
-
87 array.append(23);
-
88 array.append(false);
-
89 array.append(23.5);
-
90 }
-
91
-
92 {
-
93 // Add an object with one entry.
-
94 auto obj = root.setObject("obj");
-
95 obj["hello"] = "world";
-
96 }
-
97
-
98 {
-
99 // Add another object with two entries.
-
100 Json::Value value;
-
101 value["h"] = "w";
-
102 value["f"] = false;
-
103 root["obj2"] = value;
-
104 }
-
105 }
-
106
-
107 // Json::Value has an unstable order...
-
108 auto case1 =
-
109 "{\"ar\":[23,false,23.5],"
-
110 "\"obj\":{\"hello\":\"world\"},"
-
111 "\"obj2\":{\"h\":\"w\",\"f\":false}}";
-
112 auto case2 =
-
113 "{\"ar\":[23,false,23.5],"
-
114 "\"obj\":{\"hello\":\"world\"},"
-
115 "\"obj2\":{\"f\":false,\"h\":\"w\"}}";
-
116 writerObject_.reset();
-
117 BEAST_EXPECT(output_ == case1 || output_ == case2);
-
118 }
-
-
119
-
120 void
-
- -
122 {
-
123 setup("subsShort");
-
124
-
125 {
-
126 auto& root = makeRoot();
-
127
-
128 {
-
129 // Add an array with three entries.
-
130 auto array = root.setArray("ar");
-
131 array.append(23);
-
132 array.append(false);
-
133 array.append(23.5);
-
134 }
-
135
-
136 // Add an object with one entry.
-
137 root.setObject("obj")["hello"] = "world";
-
138
-
139 {
-
140 // Add another object with two entries.
-
141 auto object = root.setObject("obj2");
-
142 object.set("h", "w");
-
143 object.set("f", false);
-
144 }
-
145 }
- -
147 "{\"ar\":[23,false,23.5],"
-
148 "\"obj\":{\"hello\":\"world\"},"
-
149 "\"obj2\":{\"h\":\"w\",\"f\":false}}");
-
150 }
-
-
151
-
152 void
-
- -
154 {
-
155 {
-
156 setup("object failure assign");
-
157 auto& root = makeRoot();
-
158 auto obj = root.setObject("o1");
-
159 expectException([&]() { root["fail"] = "complete"; });
-
160 }
-
161 {
-
162 setup("object failure object");
-
163 auto& root = makeRoot();
-
164 auto obj = root.setObject("o1");
-
165 expectException([&]() { root.setObject("o2"); });
-
166 }
-
167 {
-
168 setup("object failure Array");
-
169 auto& root = makeRoot();
-
170 auto obj = root.setArray("o1");
-
171 expectException([&]() { root.setArray("o2"); });
-
172 }
-
173 }
-
-
174
-
175 void
-
- -
177 {
-
178 {
-
179 setup("array failure append");
-
180 auto& root = makeRoot();
-
181 auto array = root.setArray("array");
-
182 auto subarray = array.appendArray();
-
183 auto fail = [&]() { array.append("fail"); };
- -
185 }
-
186 {
-
187 setup("array failure appendArray");
-
188 auto& root = makeRoot();
-
189 auto array = root.setArray("array");
-
190 auto subarray = array.appendArray();
-
191 auto fail = [&]() { array.appendArray(); };
- -
193 }
-
194 {
-
195 setup("array failure appendObject");
-
196 auto& root = makeRoot();
-
197 auto array = root.setArray("array");
-
198 auto subarray = array.appendArray();
-
199 auto fail = [&]() { array.appendObject(); };
- -
201 }
-
202 }
-
-
203
-
204 void
-
- -
206 {
-
207 setup("repeating keys");
-
208 auto& root = makeRoot();
-
209 root.set("foo", "bar");
-
210 root.set("baz", 0);
-
211 // setting key again throws in !NDEBUG builds
-
212 auto set_again = [&]() { root.set("foo", "bar"); };
-
213#ifdef NDEBUG
-
214 set_again();
-
215 pass();
-
216#else
-
217 expectException(set_again);
-
218#endif
-
219 }
-
-
220
-
221 void
-
-
222 run() override
-
223 {
-
224 testTrivial();
-
225 testSimple();
-
226
-
227 testOneSub();
-
228 testSubs();
- -
230
- - - -
234 }
-
-
235};
-
-
236
-
237BEAST_DEFINE_TESTSUITE(JsonObject, json, xrpl);
-
238
-
239} // namespace Json
- - -
void setup(std::string const &testName)
-
void expectResult(std::string const &expected)
- -
std::unique_ptr< WriterObject > writerObject_
- - - - - -
void run() override
Runs the suite.
- - - -
Represents a JSON object being written to a Writer.
Definition Object.h:161
-
Represents a JSON value.
Definition json_value.h:131
-
void pass()
Record a successful test condition.
Definition suite.h:508
-
testcase_t testcase
Memberspace for declaring test cases.
Definition suite.h:152
-
void fail(String const &reason, char const *file, int line)
Record a failure.
Definition suite.h:530
-
bool expectException(Functor f, std::string const &message="")
Definition TestSuite.h:81
- - -
T clear(T... args)
-
T is_same_v
-
JSON (JavaScript Object Notation).
Definition json_errors.h:6
-
WriterObject stringWriterObject(std::string &)
Definition Object.cpp:228
-
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
- -
- - - - diff --git a/Offer__test_8cpp_source.html b/Offer__test_8cpp_source.html index b2d3fec0b7..958376ef7f 100644 --- a/Offer__test_8cpp_source.html +++ b/Offer__test_8cpp_source.html @@ -5703,7 +5703,7 @@ $(document).ready(function() { init_codefold(0); });
Issue const & xrpIssue()
Returns an asset specifier that represents XRP.
Definition Issue.h:96
constexpr std::uint32_t tfImmediateOrCancel
Definition TxFlags.h:80
constexpr std::uint32_t tfFillOrKill
Definition TxFlags.h:81
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
constexpr std::uint32_t tfSetNoRipple
Definition TxFlags.h:97
void forEachItem(ReadView const &view, Keylet const &root, std::function< void(std::shared_ptr< SLE const > const &)> const &f)
Iterate all items in the given directory.
Definition View.cpp:759
diff --git a/OwnerInfo_8cpp_source.html b/OwnerInfo_8cpp_source.html index f1c7bb7786..f60c321e37 100644 --- a/OwnerInfo_8cpp_source.html +++ b/OwnerInfo_8cpp_source.html @@ -115,12 +115,12 @@ $(document).ready(function() { init_codefold(0); });
31 std::optional<AccountID> const accountID = parseBase58<AccountID>(strIdent);
32 ret[jss::accepted] = accountID.has_value()
33 ? context.netOps.getOwnerInfo(closedLedger, accountID.value())
- +
35
36 auto const& currentLedger = context.ledgerMaster.getCurrentLedger();
37 ret[jss::current] = accountID.has_value()
38 ? context.netOps.getOwnerInfo(currentLedger, *accountID)
- +
40 return ret;
41}
@@ -133,10 +133,10 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< Ledger const > getClosedLedger()
std::shared_ptr< ReadView const > getCurrentLedger()
virtual Json::Value getOwnerInfo(std::shared_ptr< ReadView const > lpLedger, AccountID const &account)=0
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doOwnerInfo(RPC::JsonContext &)
Definition OwnerInfo.cpp:16
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcACT_MALFORMED
Definition ErrorCodes.h:71
T has_value(T... args)
diff --git a/OwnerInfo__test_8cpp_source.html b/OwnerInfo__test_8cpp_source.html index 9e2e2ce5b1..9e206c2d96 100644 --- a/OwnerInfo__test_8cpp_source.html +++ b/OwnerInfo__test_8cpp_source.html @@ -307,7 +307,7 @@ $(document).ready(function() { init_codefold(0); });
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
owner_count< ltOFFER > offers
Match the number of offers in the account's owner directory.
Definition owners.h:73
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
diff --git a/PathFind_8cpp_source.html b/PathFind_8cpp_source.html index 14c79b6338..36c83e7ef5 100644 --- a/PathFind_8cpp_source.html +++ b/PathFind_8cpp_source.html @@ -98,18 +98,18 @@ $(document).ready(function() { init_codefold(0); });
15{
16 if (context.app.config().PATH_SEARCH_MAX == 0)
- +
18
19 auto lpLedger = context.ledgerMaster.getClosedLedger();
20
21 if (!context.params.isMember(jss::subcommand) ||
22 !context.params[jss::subcommand].isString())
23 {
- +
25 }
26
27 if (!context.infoSub)
-
28 return rpcError(rpcNO_EVENTS);
+
28 return rpcError(rpcNO_EVENTS);
29
30 context.infoSub->setApiVersion(context.apiVersion);
31
@@ -128,7 +128,7 @@ $(document).ready(function() { init_codefold(0); });
44 InfoSubRequest::pointer request = context.infoSub->getRequest();
45
46 if (!request)
- +
48
49 context.infoSub->clearRequest();
50 return request->doClose();
@@ -139,12 +139,12 @@ $(document).ready(function() { init_codefold(0); });
55 InfoSubRequest::pointer request = context.infoSub->getRequest();
56
57 if (!request)
- +
59
60 return request->doStatus(context.params);
61 }
62
- +
64}
65
@@ -164,7 +164,7 @@ $(document).ready(function() { init_codefold(0); });
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doPathFind(RPC::JsonContext &)
Definition PathFind.cpp:14
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcNO_PF_REQUEST
Definition ErrorCodes.h:67
@ rpcNO_EVENTS
Definition ErrorCodes.h:35
@ rpcNOT_SUPPORTED
Definition ErrorCodes.h:113
diff --git a/PathRequest_8cpp_source.html b/PathRequest_8cpp_source.html index 59027e8836..d351811780 100644 --- a/PathRequest_8cpp_source.html +++ b/PathRequest_8cpp_source.html @@ -256,7 +256,7 @@ $(document).ready(function() { init_codefold(0); });
158 if (!convert_all_ && (saSendMax || saDstAmount <= beast::zero))
159 {
160 // If send max specified, dst amt must be -1.
- +
162 return false;
163 }
164
@@ -265,7 +265,7 @@ $(document).ready(function() { init_codefold(0); });
167 if (!lrLedger->exists(keylet::account(*raSrcAccount)))
168 {
169 // Source account does not exist.
- +
171 return false;
172 }
173
@@ -280,14 +280,14 @@ $(document).ready(function() { init_codefold(0); });
182 if (!saDstAmount.native())
183 {
184 // Only XRP can be send to a non-existent account.
- +
186 return false;
187 }
188
189 if (!convert_all_ && saDstAmount < STAmount(lrLedger->fees().reserve))
190 {
191 // Payment must meet reserve.
- +
193 return false;
194 }
195 }
@@ -357,19 +357,19 @@ $(document).ready(function() { init_codefold(0); });
255{
256 if (!jvParams.isMember(jss::source_account))
257 {
- +
259 return PFR_PJ_INVALID;
260 }
261
262 if (!jvParams.isMember(jss::destination_account))
263 {
- +
265 return PFR_PJ_INVALID;
266 }
267
268 if (!jvParams.isMember(jss::destination_amount))
269 {
- +
271 return PFR_PJ_INVALID;
272 }
273
@@ -377,7 +377,7 @@ $(document).ready(function() { init_codefold(0); });
275 parseBase58<AccountID>(jvParams[jss::source_account].asString());
276 if (!raSrcAccount)
277 {
- +
279 return PFR_PJ_INVALID;
280 }
281
@@ -385,13 +385,13 @@ $(document).ready(function() { init_codefold(0); });
283 parseBase58<AccountID>(jvParams[jss::destination_account].asString());
284 if (!raDstAccount)
285 {
- +
287 return PFR_PJ_INVALID;
288 }
289
290 if (!amountFromJsonNoThrow(saDstAmount, jvParams[jss::destination_amount]))
291 {
- +
293 return PFR_PJ_INVALID;
294 }
295
@@ -402,7 +402,7 @@ $(document).ready(function() { init_codefold(0); });
301 (!convert_all_ && saDstAmount <= beast::zero))
302 {
- +
304 return PFR_PJ_INVALID;
305 }
306
@@ -411,7 +411,7 @@ $(document).ready(function() { init_codefold(0); });
309 // Send_max requires destination amount to be -1.
310 if (!convert_all_)
311 {
- +
313 return PFR_PJ_INVALID;
314 }
315
@@ -423,7 +423,7 @@ $(document).ready(function() { init_codefold(0); });
321 (*saSendMax <= beast::zero &&
322 *saSendMax != STAmount(saSendMax->issue(), 1u, 0, true)))
323 {
- +
325 return PFR_PJ_INVALID;
326 }
327 }
@@ -434,7 +434,7 @@ $(document).ready(function() { init_codefold(0); });
332 if (!jvSrcCurrencies.isArray() || jvSrcCurrencies.size() == 0 ||
333 jvSrcCurrencies.size() > RPC::Tuning::max_src_cur)
334 {
- +
336 return PFR_PJ_INVALID;
337 }
338
@@ -448,7 +448,7 @@ $(document).ready(function() { init_codefold(0); });
346 !c[jss::currency].isString() ||
347 !to_currency(srcCurrencyID, c[jss::currency].asString()))
348 {
- +
350 return PFR_PJ_INVALID;
351 }
352
@@ -458,7 +458,7 @@ $(document).ready(function() { init_codefold(0); });
356 (!c[jss::issuer].isString() ||
357 !to_issuer(srcIssuerID, c[jss::issuer].asString())))
358 {
- +
360 return PFR_PJ_INVALID;
361 }
362
@@ -466,7 +466,7 @@ $(document).ready(function() { init_codefold(0); });
364 {
365 if (srcIssuerID.isNonZero())
366 {
- +
368 return PFR_PJ_INVALID;
369 }
370 }
@@ -486,7 +486,7 @@ $(document).ready(function() { init_codefold(0); });
384 saSendMax->getIssuer() != *raSrcAccount &&
385 srcIssuerID != saSendMax->getIssuer())
386 {
- +
388 return PFR_PJ_INVALID;
389 }
390
@@ -525,7 +525,7 @@ $(document).ready(function() { init_codefold(0); });
423 if (!jvParams[jss::domain].isString() ||
424 !num.parseHex(jvParams[jss::domain].asString()))
425 {
- +
427 return PFR_PJ_INVALID;
428 }
429 else
@@ -845,7 +845,7 @@ $(document).ready(function() { init_codefold(0); });
731 else
732 {
733 bLastSuccess = false;
-
734 newStatus = rpcError(rpcINTERNAL);
+
734 newStatus = rpcError(rpcINTERNAL);
735 }
736
737 if (fast && quick_reply_ == steady_clock::time_point{})
@@ -987,8 +987,8 @@ $(document).ready(function() { init_codefold(0); });
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
std::string transHuman(TER code)
Definition TER.cpp:254
hash_set< Currency > accountSourceCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
bool amountFromJsonNoThrow(STAmount &result, Json::Value const &jvSource)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
@ tapNONE
Definition ApplyView.h:12
hash_set< Currency > accountDestCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
diff --git a/PathRequests_8cpp_source.html b/PathRequests_8cpp_source.html index f3e34c23f9..be58e54a5c 100644 --- a/PathRequests_8cpp_source.html +++ b/PathRequests_8cpp_source.html @@ -365,7 +365,7 @@ $(document).ready(function() { init_codefold(0); });
275 {
276 // The newPathRequest failed. Tell the caller.
-
277 jvRes = rpcError(rpcTOO_BUSY);
+
277 jvRes = rpcError(rpcTOO_BUSY);
278 req.reset();
279 }
280 }
@@ -427,8 +427,8 @@ $(document).ready(function() { init_codefold(0); });
TER valid(STTx const &tx, ReadView const &view, AccountID const &src, beast::Journal j)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
@ jtPATH_FIND
Definition Job.h:64
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcTOO_BUSY
Definition ErrorCodes.h:37
T remove_if(T... args)
T reset(T... args)
diff --git a/PayChanClaim_8cpp_source.html b/PayChanClaim_8cpp_source.html index 30c8b5b644..f2e1409561 100644 --- a/PayChanClaim_8cpp_source.html +++ b/PayChanClaim_8cpp_source.html @@ -138,14 +138,14 @@ $(document).ready(function() { init_codefold(0); });
54
55 uint256 channelId;
56 if (!channelId.parseHex(params[jss::channel_id].asString()))
- +
58
59 std::optional<std::uint64_t> const optDrops = params[jss::amount].isString()
60 ? to_uint64(params[jss::amount].asString())
62
63 if (!optDrops)
- +
65
66 std::uint64_t const drops = *optDrops;
67
@@ -194,30 +194,30 @@ $(document).ready(function() { init_codefold(0); });
108 {
109 auto pkHex = strUnHex(strPk);
110 if (!pkHex)
- +
112 auto const pkType = publicKeyType(makeSlice(*pkHex));
113 if (!pkType)
- +
115 pk.emplace(makeSlice(*pkHex));
116 }
117 }
118
119 uint256 channelId;
120 if (!channelId.parseHex(params[jss::channel_id].asString()))
- +
122
123 std::optional<std::uint64_t> const optDrops = params[jss::amount].isString()
124 ? to_uint64(params[jss::amount].asString())
125 : std::nullopt;
126
127 if (!optDrops)
- +
129
130 std::uint64_t const drops = *optDrops;
131
132 auto sig = strUnHex(params[jss::signature].asString());
133 if (!sig || !sig->size())
- +
135
136 Serializer msg;
137 serializePayChanAuthorization(msg, channelId, XRPAmount(drops));
@@ -244,10 +244,10 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
std::optional< std::pair< PublicKey, SecretKey > > keypairForSignature(Json::Value const &params, Json::Value &error, unsigned int apiVersion)
Generates a keypair for signature from RPC parameters.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
std::optional< std::uint64_t > to_uint64(std::string const &s)
@@ -255,11 +255,11 @@ $(document).ready(function() { init_codefold(0); });
Json::Value doChannelAuthorize(RPC::JsonContext &)
void serializePayChanAuthorization(Serializer &msg, uint256 const &key, XRPAmount const &amt)
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Json::Value doChannelVerify(RPC::JsonContext &)
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &message)
Generate a signature for a message.
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
Definition Slice.h:225
@ rpcCHANNEL_AMT_MALFORMED
Definition ErrorCodes.h:82
diff --git a/PayChan__test_8cpp_source.html b/PayChan__test_8cpp_source.html index 900c0ff6be..f615d82f29 100644 --- a/PayChan__test_8cpp_source.html +++ b/PayChan__test_8cpp_source.html @@ -2328,7 +2328,7 @@ $(document).ready(function() { init_codefold(0); });
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
Json::Value fclear(Account const &account, std::uint32_t off)
Remove account flag.
Definition flags.h:102
FeatureBitset testable_amendments()
Definition Env.h:55
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
Json::Value fset(Account const &account, std::uint32_t on, std::uint32_t off=0)
Add and/or remove flag.
Definition flags.cpp:10
Json::Value acctdelete(Account const &account, Account const &dest)
Delete account.
owner_count< ltTICKET > tickets
Match the number of tickets on the account.
Definition ticket.h:45
diff --git a/PerfLog__test_8cpp_source.html b/PerfLog__test_8cpp_source.html index b54d923a2b..22e81369c4 100644 --- a/PerfLog__test_8cpp_source.html +++ b/PerfLog__test_8cpp_source.html @@ -1224,7 +1224,7 @@ $(document).ready(function() { init_codefold(0); });
STL namespace.
std::set< char const * > getHandlerNames()
Return names of all methods.
Definition Handler.cpp:301
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
std::unique_ptr< PerfLog > make_PerfLog(PerfLog::Setup const &setup, Application &app, beast::Journal journal, std::function< void()> &&signalStop)
auto make_vector(Input const &input)
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Definition envconfig.h:35
diff --git a/RCLCxLedger_8h_source.html b/RCLCxLedger_8h_source.html index 7dc2fe9498..3b885460a8 100644 --- a/RCLCxLedger_8h_source.html +++ b/RCLCxLedger_8h_source.html @@ -195,7 +195,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
bool getCloseAgree(LedgerHeader const &info)
uint256 LedgerHash
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:255
diff --git a/RPCCall_8cpp_source.html b/RPCCall_8cpp_source.html index 7fd5d9ae7d..0e43377291 100644 --- a/RPCCall_8cpp_source.html +++ b/RPCCall_8cpp_source.html @@ -290,14 +290,14 @@ $(document).ready(function() { init_codefold(0); });
193
194 std::string const strPk = jvParams[0u].asString();
- +
197
198 jvRequest[jss::public_key] = strPk;
199
200 return jvRequest;
201 }
202
- +
204 }
205
@@ -327,7 +327,7 @@ $(document).ready(function() { init_codefold(0); });
226
227 auto const account = parseBase58<AccountID>(jvParams[0u].asString());
228 if (!account)
- +
230
231 jvRequest[jss::account] = toBase58(*account);
232
@@ -373,8 +373,8 @@ $(document).ready(function() { init_codefold(0); });
272 if (uLedgerMax != -1 && uLedgerMax < uLedgerMin)
273 {
274 if (apiVersion_ == 1)
- -
276 return rpcError(rpcNOT_SYNCED);
+ +
276 return rpcError(rpcNOT_SYNCED);
277 }
278
279 jvRequest[jss::ledger_index_min] = jvParams[1u].asInt();
@@ -549,7 +549,7 @@ $(document).ready(function() { init_codefold(0); });
439 parseEvented(Json::Value const& jvParams)
440 {
-
441 return rpcError(rpcNO_EVENTS);
+
441 return rpcError(rpcNO_EVENTS);
442 }
443
@@ -575,7 +575,7 @@ $(document).ready(function() { init_codefold(0); });
462 else if (boost::iequals(action, "accept"))
463 jvRequest[jss::vetoed] = Json::Value(false);
464 else
- +
466 }
467
468 return jvRequest;
@@ -624,7 +624,7 @@ $(document).ready(function() { init_codefold(0); });
507 return jvRequest;
508 }
509 }
- +
511 }
512
@@ -642,14 +642,14 @@ $(document).ready(function() { init_codefold(0); });
523 if (reader.parse(jvParams[1u].asString(), jvRequest))
524 {
525 if (!jvRequest.isObjectOrNull())
- +
527
528 jvRequest[jss::method] = jvParams[0u];
529
530 return jvRequest;
531 }
532
- +
534 }
535
@@ -726,7 +726,7 @@ $(document).ready(function() { init_codefold(0); });
603 }
604 return jv1;
605 }
-
606 auto jv_error = rpcError(rpcINVALID_PARAMS);
+
606 auto jv_error = rpcError(rpcINVALID_PARAMS);
607 if (jv.isMember(jss::jsonrpc))
608 jv_error[jss::jsonrpc] = jv[jss::jsonrpc];
609 if (jv.isMember(jss::ripplerpc))
@@ -802,7 +802,7 @@ $(document).ready(function() { init_codefold(0); });
673
674 if (jvParams.size() == 2 &&
675 !jvParseLedger(jvRequest, jvParams[1u].asString()))
- +
677
678 return jvRequest;
679 }
@@ -884,7 +884,7 @@ $(document).ready(function() { init_codefold(0); });
743 index++;
744
745 if (!keyTypeFromString(jvParams[index].asString()))
- +
747 jvRequest[jss::key_type] = jvParams[index];
748 index++;
749 }
@@ -898,14 +898,14 @@ $(document).ready(function() { init_codefold(0); });
757 // verify the channel id is a valid 256 bit number
758 uint256 channelId;
759 if (!channelId.parseHex(jvParams[index].asString()))
- +
761 jvRequest[jss::channel_id] = to_string(channelId);
762 index++;
763 }
764
765 if (!jvParams[index].isString() ||
766 !to_uint64(jvParams[index].asString()))
- +
768 jvRequest[jss::amount] = jvParams[index];
769
770 // If additional parameters are appended, be sure to increment index
@@ -923,7 +923,7 @@ $(document).ready(function() { init_codefold(0); });
780 std::string const strPk = jvParams[0u].asString();
781
782 if (!validPublicKey(strPk))
- +
784
786
@@ -932,12 +932,12 @@ $(document).ready(function() { init_codefold(0); });
789 // verify the channel id is a valid 256 bit number
790 uint256 channelId;
791 if (!channelId.parseHex(jvParams[1u].asString()))
- +
793 }
794 jvRequest[jss::channel_id] = jvParams[1u].asString();
795
796 if (!jvParams[2u].isString() || !to_uint64(jvParams[2u].asString()))
- +
798 jvRequest[jss::amount] = jvParams[2u];
799
800 jvRequest[jss::signature] = jvParams[3u].asString();
@@ -969,14 +969,14 @@ $(document).ready(function() { init_codefold(0); });
824 }
825 else
826 {
- +
828 }
829 }
830 else
831 {
832 if (jvParseLedger(jvRequest, strParam))
833 return jvRequest;
- +
835 }
836 }
837
@@ -993,7 +993,7 @@ $(document).ready(function() { init_codefold(0); });
846 unsigned int iCursor = jvParams.size();
847
848 if (!parseBase58<AccountID>(strIdent))
- +
850
851 // Get info on account.
@@ -1001,7 +1001,7 @@ $(document).ready(function() { init_codefold(0); });
854 jvRequest[jss::account] = strIdent;
855
856 if (iCursor == 2 && !jvParseLedger(jvRequest, jvParams[1u].asString()))
- +
858
859 return jvRequest;
860 }
@@ -1014,7 +1014,7 @@ $(document).ready(function() { init_codefold(0); });
865 std::string strVaultID = jvParams[0u].asString();
866 uint256 id = beast::zero;
867 if (!id.parseHex(strVaultID))
- +
869
871 jvRequest[jss::vault_id] = strVaultID;
@@ -1073,7 +1073,7 @@ $(document).ready(function() { init_codefold(0); });
918 return jvRequest;
919 }
920
- +
922 }
923
@@ -1101,7 +1101,7 @@ $(document).ready(function() { init_codefold(0); });
944 if (jvParams.size() == 2)
945 {
946 if (!jvParams[1u].isString() || jvParams[1u].asString() != "binary")
- +
948 jvRequest[jss::binary] = true;
949 }
950
@@ -1161,7 +1161,7 @@ $(document).ready(function() { init_codefold(0); });
1002 return jvRequest;
1003 }
1004
- +
1006 }
1007
@@ -1184,7 +1184,7 @@ $(document).ready(function() { init_codefold(0); });
1023 }
1024 }
1025
- +
1027 }
1028
@@ -1200,7 +1200,7 @@ $(document).ready(function() { init_codefold(0); });
1037
1038 std::string const txHash = jvParams[0u].asString();
1039 if (txHash.length() != 64)
- +
1041
1042 Json::Value jvRequest{Json::objectValue};
1043 jvRequest[jss::tx_hash] = txHash;
@@ -1211,7 +1211,7 @@ $(document).ready(function() { init_codefold(0); });
1048 // find a match.
1049 if (jvRequest.isMember(jss::ledger_index) &&
1050 jvRequest[jss::ledger_index] == 0)
- +
1052
1053 return jvRequest;
1054 }
@@ -1497,7 +1497,7 @@ $(document).ready(function() { init_codefold(0); });
1316 << " maximum=" << command.maxParams
1317 << " actual=" << count;
1318
-
1319 return rpcError(rpcBAD_SYNTAX);
+
1319 return rpcError(rpcBAD_SYNTAX);
1320 }
1321
1322 return (this->*(command.parse))(jvParams);
@@ -1506,7 +1506,7 @@ $(document).ready(function() { init_codefold(0); });
1325
1326 // The command could not be found
1327 if (!allowAnyCommand)
- +
1329
1330 return parseAsIs(jvParams);
1331 }
@@ -1785,7 +1785,7 @@ $(document).ready(function() { init_codefold(0); });
1589 // Transport error.
1590 Json::Value jvRpcError = jvOutput;
1591
-
1592 jvOutput = rpcError(rpcJSON_RPC);
+
1592 jvOutput = rpcError(rpcJSON_RPC);
1593 jvOutput["result"] = jvRpcError;
1594 }
1595
@@ -1816,13 +1816,13 @@ $(document).ready(function() { init_codefold(0); });
1620 }
1621 catch (RequestNotParseable& e)
1622 {
-
1623 jvOutput = rpcError(rpcINVALID_PARAMS);
+
1623 jvOutput = rpcError(rpcINVALID_PARAMS);
1624 jvOutput["error_what"] = e.what();
1625 nRet = rpcINVALID_PARAMS;
1626 }
1627 catch (std::exception& e)
1628 {
-
1629 jvOutput = rpcError(rpcINTERNAL);
+
1629 jvOutput = rpcError(rpcINTERNAL);
1630 jvOutput["error_what"] = e.what();
1631 nRet = rpcINTERNAL;
1632 }
@@ -2029,8 +2029,8 @@ $(document).ready(function() { init_codefold(0); });
unsigned int UInt
int fromCommandLine(Config const &config, std::vector< std::string > const &vCmd, Logs &logs)
Definition RPCCall.cpp:1642
void fromNetwork(boost::asio::io_context &io_context, std::string const &strIp, std::uint16_t const iPort, std::string const &strUsername, std::string const &strPassword, std::string const &strPath, std::string const &strMethod, Json::Value const &jvParams, bool const bSSL, bool const quiet, Logs &logs, std::function< void(Json::Value const &jvInput)> callbackFuncP, std::unordered_map< std::string, std::string > headers)
Definition RPCCall.cpp:1658
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
static constexpr auto apiCommandLineVersion
Definition ApiVersion.h:45
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::optional< KeyType > keyTypeFromString(std::string const &s)
Definition KeyType.h:15
@@ -2041,7 +2041,6 @@ $(document).ready(function() { init_codefold(0); });
std::string base64_encode(std::uint8_t const *data, std::size_t len)
std::pair< int, Json::Value > rpcClient(std::vector< std::string > const &args, Config const &config, Logs &logs, unsigned int apiVersion, std::unordered_map< std::string, std::string > const &headers)
Internal invocation of RPC client.
Definition RPCCall.cpp:1489
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
ServerHandler::Setup setup_ServerHandler(Config const &config, std::ostream &&log)
constexpr auto megabytes(T value) noexcept
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
@@ -2050,6 +2049,7 @@ $(document).ready(function() { init_codefold(0); });
TokenType
Definition tokens.h:19
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
Definition Slice.h:225
std::string createHTTPPost(std::string const &strHost, std::string const &strPath, std::string const &strMsg, std::unordered_map< std::string, std::string > const &mapRequestHeaders)
Definition RPCCall.cpp:43
Json::Value rpcCmdToJson(std::vector< std::string > const &args, Json::Value &retParams, unsigned int apiVersion, beast::Journal j)
Definition RPCCall.cpp:1448
diff --git a/RPCCall__test_8cpp_source.html b/RPCCall__test_8cpp_source.html index b97c0c3c25..fd6846eb9b 100644 --- a/RPCCall__test_8cpp_source.html +++ b/RPCCall__test_8cpp_source.html @@ -6117,7 +6117,7 @@ $(document).ready(function() { init_codefold(0); });
static constexpr auto apiMinimumSupportedVersion
Definition ApiVersion.h:42
static constexpr auto apiMaximumValidVersion
Definition ApiVersion.h:48
-
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.
Definition utility.cpp:67
+
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.
Definition utility.cpp:66
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Definition envconfig.h:35
std::unique_ptr< Config > makeNetworkConfig(uint32_t networkID)
static RPCCallTestData const rpcCallTestArray[]
diff --git a/RPCErr_8cpp_source.html b/RPCErr_8cpp_source.html index 53e50b4f21..909aa1def5 100644 --- a/RPCErr_8cpp_source.html +++ b/RPCErr_8cpp_source.html @@ -93,10 +93,10 @@ $(document).ready(function() { init_codefold(0); });
10// VFALCO NOTE Deprecated function
-
12rpcError(int iError)
+
13{
-
15 RPC::inject_error(iError, jvResult);
+
15 RPC::inject_error(iError, jvResult);
16 return jvResult;
17}
@@ -115,10 +115,11 @@ $(document).ready(function() { init_codefold(0); });
bool isObject() const
bool isMember(char const *key) const
Return true if the object has a member named key.
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
bool isRpcError(Json::Value jvResult)
Definition RPCErr.cpp:21
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
+
error_code_i
Definition ErrorCodes.h:21
@@ -130,7 +130,7 @@ $(document).ready(function() { init_codefold(0); });
csprng_engine & crypto_prng()
The default cryptographically secure PRNG.
Json::Value doRandom(RPC::JsonContext &)
Definition Random.cpp:20
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcINTERNAL
Definition ErrorCodes.h:111
diff --git a/Reservations_8cpp_source.html b/Reservations_8cpp_source.html index a60dd874fa..5ef5fe93d5 100644 --- a/Reservations_8cpp_source.html +++ b/Reservations_8cpp_source.html @@ -136,7 +136,7 @@ $(document).ready(function() { init_codefold(0); });
52 std::optional<PublicKey> optPk = parseBase58<PublicKey>(
53 TokenType::NodePublic, params[jss::public_key].asString());
54 if (!optPk)
- +
56 PublicKey const& nodeId = *optPk;
57
58 auto const previous = context.app.peerReservations().insert_or_assign(
@@ -166,7 +166,7 @@ $(document).ready(function() { init_codefold(0); });
80 std::optional<PublicKey> optPk = parseBase58<PublicKey>(
81 TokenType::NodePublic, params[jss::public_key].asString());
82 if (!optPk)
- +
84 PublicKey const& nodeId = *optPk;
85
86 auto const previous = context.app.peerReservations().erase(nodeId);
@@ -208,14 +208,14 @@ $(document).ready(function() { init_codefold(0); });
A public key.
Definition PublicKey.h:43
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doPeerReservationsList(RPC::JsonContext &)
Json::Value doPeerReservationsDel(RPC::JsonContext &)
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Json::Value doPeerReservationsAdd(RPC::JsonContext &)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcPUBLIC_MALFORMED
Definition ErrorCodes.h:98
diff --git a/RipplePathFind_8cpp_source.html b/RipplePathFind_8cpp_source.html index 80a03a0015..39f74e3ccf 100644 --- a/RipplePathFind_8cpp_source.html +++ b/RipplePathFind_8cpp_source.html @@ -98,7 +98,7 @@ $(document).ready(function() { init_codefold(0); });
15{
16 if (context.app.config().PATH_SEARCH_MAX == 0)
- +
18
20
@@ -116,8 +116,8 @@ $(document).ready(function() { init_codefold(0); });
33 {
34 if (context.apiVersion == 1)
-
35 return rpcError(rpcNO_NETWORK);
-
36 return rpcError(rpcNOT_SYNCED);
+
35 return rpcError(rpcNO_NETWORK);
+
36 return rpcError(rpcNOT_SYNCED);
37 }
38
@@ -228,7 +228,7 @@ $(document).ready(function() { init_codefold(0); });
144
145 RPC::LegacyPathFind lpf(isUnlimited(context.role), context.app);
146 if (!lpf.isOk())
-
147 return rpcError(rpcTOO_BUSY);
+
147 return rpcError(rpcTOO_BUSY);
148
149 auto result = context.app.getPathRequests().doLegacyPathRequest(
150 context.consumer, lpLedger, context.params);
@@ -260,7 +260,7 @@ $(document).ready(function() { init_codefold(0); });
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doRipplePathFind(RPC::JsonContext &)
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Definition Role.cpp:106
@ rpcTOO_BUSY
Definition ErrorCodes.h:37
@ rpcNO_NETWORK
Definition ErrorCodes.h:47
diff --git a/SHAMapStore__test_8cpp_source.html b/SHAMapStore__test_8cpp_source.html index 86f5b46943..848d4d8215 100644 --- a/SHAMapStore__test_8cpp_source.html +++ b/SHAMapStore__test_8cpp_source.html @@ -807,7 +807,7 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
T make_pair(T... args)
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:92
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Definition envconfig.h:35
diff --git a/STParsedJSON_8cpp_source.html b/STParsedJSON_8cpp_source.html index 76c6384beb..2dea679adf 100644 --- a/STParsedJSON_8cpp_source.html +++ b/STParsedJSON_8cpp_source.html @@ -1379,7 +1379,7 @@ $(document).ready(function() { init_codefold(0); });
T max(T... args)
T min(T... args)
unsigned int UInt
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
static Json::Value invalid_data(std::string const &object, std::string const &field)
static Json::Value unknown_field(std::string const &object, std::string const &field)
static std::optional< STObject > parseObject(std::string const &json_name, Json::Value const &json, SField const &inName, int depth, Json::Value &error)
diff --git a/STParsedJSON__test_8cpp_source.html b/STParsedJSON__test_8cpp_source.html index 1e156898fc..86c9ac0e37 100644 --- a/STParsedJSON__test_8cpp_source.html +++ b/STParsedJSON__test_8cpp_source.html @@ -2517,7 +2517,7 @@ $(document).ready(function() { init_codefold(0); });
unsigned int UInt
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
@ current
This was a new validation and was added.
diff --git a/STValidation_8h_source.html b/STValidation_8h_source.html index 5bb0a85e09..70dea5118e 100644 --- a/STValidation_8h_source.html +++ b/STValidation_8h_source.html @@ -394,7 +394,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
beast::Journal debugLog()
Returns a debug journal.
Definition Log.cpp:457
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
@ soeREQUIRED
Definition SOTemplate.h:16
diff --git a/ServerDefinitions_8cpp_source.html b/ServerDefinitions_8cpp_source.html index e978524f13..0286d7a147 100644 --- a/ServerDefinitions_8cpp_source.html +++ b/ServerDefinitions_8cpp_source.html @@ -419,7 +419,7 @@ $(document).ready(function() { init_codefold(0); });
JSON (JavaScript Object Notation).
Definition json_errors.h:6
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
static std::string to_string(TableType type)
to_string Returns the name of a table according to its TableType.
Definition Node.cpp:28
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
Definition digest.h:205
diff --git a/ServerHandler_8cpp_source.html b/ServerHandler_8cpp_source.html index 8e2ecf3746..29d1f87883 100644 --- a/ServerHandler_8cpp_source.html +++ b/ServerHandler_8cpp_source.html @@ -539,7 +539,7 @@ $(document).ready(function() { init_codefold(0); });
421 {boost::beast::websocket::policy_error, "threshold exceeded"});
422 // FIX: This rpcError is not delivered since the session
423 // was just closed.
-
424 return rpcError(rpcSLOW_DOWN);
+
424 return rpcError(rpcSLOW_DOWN);
425 }
426
427 // Requests without "command" are invalid.
@@ -589,7 +589,7 @@ $(document).ready(function() { init_codefold(0); });
471 if (Role::FORBID == role)
472 {
473 loadType = Resource::feeMalformedRPC;
-
474 jr[jss::result] = rpcError(rpcFORBIDDEN);
+
474 jr[jss::result] = rpcError(rpcFORBIDDEN);
475 }
476 else
477 {
@@ -1532,7 +1532,7 @@ $(document).ready(function() { init_codefold(0); });
Role roleRequired(unsigned int version, bool betaEnabled, std::string const &method)
Status doCommand(RPC::JsonContext &context, Json::Value &result)
Execute an RPC command and store the results in a Json::Value.
unsigned int getAPIVersionNumber(Json::Value const &jv, bool betaEnabled)
Retrieve the api version number from the json value.
Definition ApiVersion.h:104
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeReferenceRPC
Charge const feeMalformedRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@@ -1552,7 +1552,6 @@ $(document).ready(function() { init_codefold(0); });
Resource::Consumer requestInboundEndpoint(Resource::Manager &manager, beast::IP::Endpoint const &remoteAddress, Role const &role, std::string_view user, std::string_view forwardedFor)
Definition Role.cpp:123
static Json::Value make_json_error(Json::Int code, Json::Value &&message)
std::string_view forwardedFor(http_request_type const &request)
Definition Role.cpp:243
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
ServerHandler::Setup setup_ServerHandler(Config const &config, std::ostream &&log)
static Port to_Port(ParsedPort const &parsed, std::ostream &log)
@@ -1561,6 +1560,7 @@ $(document).ready(function() { init_codefold(0); });
@ jtCLIENT_RPC
Definition Job.h:30
@ jtCLIENT_WEBSOCKET
Definition Job.h:31
Json::Int constexpr forbidden
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
Json::Int constexpr method_not_found
std::unique_ptr< Server > make_Server(Handler &handler, boost::asio::io_context &io_context, beast::Journal journal)
Create the HTTP server using the specified handler.
Definition Server.h:16
diff --git a/SetAuth__test_8cpp_source.html b/SetAuth__test_8cpp_source.html index 2ab62a686e..7475f8ae37 100644 --- a/SetAuth__test_8cpp_source.html +++ b/SetAuth__test_8cpp_source.html @@ -177,7 +177,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value fset(Account const &account, std::uint32_t on, std::uint32_t off=0)
Add and/or remove flag.
Definition flags.cpp:10
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
constexpr std::uint32_t tfSetfAuth
Definition TxFlags.h:96
constexpr std::uint32_t asfRequireAuth
Definition TxFlags.h:59
@ tecPATH_DRY
Definition TER.h:276
diff --git a/SignFor_8cpp_source.html b/SignFor_8cpp_source.html index 47da21edb2..3bf5a6d041 100644 --- a/SignFor_8cpp_source.html +++ b/SignFor_8cpp_source.html @@ -133,7 +133,7 @@ $(document).ready(function() { init_codefold(0); });
std::chrono::seconds getValidatedLedgerAge()
static FailHard doFailHard(bool noMeansDont)
Definition NetworkOPs.h:76
Json::Value transactionSignFor(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app)
Returns a Json::objectValue.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doSignFor(RPC::JsonContext &)
Definition SignFor.cpp:16
diff --git a/SignHandler_8cpp_source.html b/SignHandler_8cpp_source.html index 1c0e362d94..ee7f2ea0d2 100644 --- a/SignHandler_8cpp_source.html +++ b/SignHandler_8cpp_source.html @@ -136,7 +136,7 @@ $(document).ready(function() { init_codefold(0); });
static FailHard doFailHard(bool noMeansDont)
Definition NetworkOPs.h:76
Json::Value transactionSign(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app)
Returns a Json::objectValue.
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeHeavyBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doSign(RPC::JsonContext &)
diff --git a/Simulate_8cpp_source.html b/Simulate_8cpp_source.html index b6a38b823e..83e9df4f1a 100644 --- a/Simulate_8cpp_source.html +++ b/Simulate_8cpp_source.html @@ -130,7 +130,7 @@ $(document).ready(function() { init_codefold(0); });
46 << "Failed to find source account "
47 << "in current ledger: " << toBase58(*srcAddressID);
48
- +
50 }
51
52 return hasTicketSeq ? 0 : context.app.getTxQ().nextQueuableSeq(sle).value();
@@ -175,7 +175,7 @@ $(document).ready(function() { init_codefold(0); });
89 else if (signer[jss::Signer][jss::TxnSignature] != "")
90 {
91 // Transaction must not be signed
-
92 return rpcError(rpcTX_SIGNED);
+
92 return rpcError(rpcTX_SIGNED);
93 }
94 }
95 }
@@ -188,7 +188,7 @@ $(document).ready(function() { init_codefold(0); });
102 else if (sigObject[jss::TxnSignature] != "")
103 {
104 // Transaction must not be signed
-
105 return rpcError(rpcTX_SIGNED);
+
105 return rpcError(rpcTX_SIGNED);
106 }
107 return std::nullopt;
108}
@@ -496,16 +496,16 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
Json::Value getCurrentNetworkFee(Role const role, Config const &config, LoadFeeTrack const &feeTrack, TxQ const &txQ, Application const &app, Json::Value const &tx, int mult, int div)
-
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:282
+
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:260
void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
void insertDeliveredAmount(Json::Value &meta, ReadView const &, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &)
Add a delivered_amount field to the meta input/output parameter.
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
void insertNFTSyntheticInJson(Json::Value &, std::shared_ptr< STTx const > const &, TxMeta const &)
Adds common synthetic fields to transaction-related JSON responses.
-
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:294
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:272
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeMediumBurdenRPC
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@@ -517,10 +517,10 @@ $(document).ready(function() { init_codefold(0); });
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition TER.cpp:230
static Json::Value simulateTxn(RPC::JsonContext &context, std::shared_ptr< Transaction > transaction)
Definition Simulate.cpp:214
static Expected< std::uint32_t, Json::Value > getAutofillSequence(Json::Value const &tx_json, RPC::JsonContext &context)
Definition Simulate.cpp:22
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
static std::optional< Json::Value > autofillSignature(Json::Value &sigObject)
Definition Simulate.cpp:56
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
static Json::Value getTxJsonFromParams(Json::Value const &params)
Definition Simulate.cpp:152
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ tapDRY_RUN
Definition ApplyView.h:30
Json::Value doSimulate(RPC::JsonContext &)
Definition Simulate.cpp:301
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
Definition Slice.h:225
diff --git a/Status_8cpp_source.html b/Status_8cpp_source.html index d232d9f152..f80b3ecccb 100644 --- a/Status_8cpp_source.html +++ b/Status_8cpp_source.html @@ -176,16 +176,16 @@ $(document).ready(function() { init_codefold(0); });
Represents a JSON value.
Definition json_value.h:131
T empty(T... args)
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition TER.cpp:230
T str(T... args)
-
Strings const & messages() const
Definition Status.h:111
- +
Strings const & messages() const
Definition Status.h:110
+
error_code_i toErrorCode() const
Returns the Status as an error_code_i.
Definition Status.h:87
- +
std::string message() const
Return the first message, if any.
Definition Status.cpp:61
std::string codeString() const
Definition Status.cpp:9
TER toTER() const
Returns the Status as a TER.
Definition Status.h:77
@@ -193,7 +193,7 @@ $(document).ready(function() { init_codefold(0); });
void fillJson(Json::Value &)
Fill a Json::Value with an RPC 2.0 response.
Definition Status.cpp:42
-
Strings messages_
Definition Status.h:138
+
Strings messages_
Definition Status.h:137
std::string toString() const
Definition Status.cpp:75
T to_string(T... args)
diff --git a/Status_8h_source.html b/Status_8h_source.html index d68b7a2eda..00d25ea7af 100644 --- a/Status_8h_source.html +++ b/Status_8h_source.html @@ -177,57 +177,56 @@ $(document).ready(function() { init_codefold(0); });
93 }
94
-
97 template <class Object>
-
98 void
-
-
99 inject(Object& object) const
-
100 {
-
101 if (auto ec = toErrorCode())
-
102 {
-
103 if (messages_.empty())
-
104 inject_error(ec, object);
-
105 else
-
106 inject_error(ec, message(), object);
-
107 }
-
108 }
+
97 void
+
+
98 inject(Json::Value& object) const
+
99 {
+
100 if (auto ec = toErrorCode())
+
101 {
+
102 if (messages_.empty())
+
103 inject_error(ec, object);
+
104 else
+
105 inject_error(ec, message(), object);
+
106 }
+
107 }
-
109
-
110 Strings const&
-
-
111 messages() const
-
112 {
-
113 return messages_;
-
114 }
+
108
+
109 Strings const&
+
+
110 messages() const
+
111 {
+
112 return messages_;
+
113 }
-
115
- -
118 message() const;
-
119
-
120 Type
-
-
121 type() const
-
122 {
-
123 return type_;
-
124 }
+
114
+ +
117 message() const;
+
118
+
119 Type
+
+
120 type() const
+
121 {
+
122 return type_;
+
123 }
-
125
- -
127 toString() const;
-
128
-
132 void
- -
134
-
135private:
- - - -
139};
+
124
+ +
126 toString() const;
+
127
+
131 void
+ +
133
+
134private:
+ + + +
138};
-
140
-
141} // namespace RPC
-
142} // namespace xrpl
-
143
-
144#endif
+
139
+
140} // namespace RPC
+
141} // namespace xrpl
+
142
+
143#endif
Represents a JSON value.
Definition json_value.h:131
@@ -236,24 +235,24 @@ $(document).ready(function() { init_codefold(0); });
STL namespace.
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
constexpr TERUnderlyingType TERtoInt(TELcodes v)
Definition TER.h:356
error_code_i
Definition ErrorCodes.h:21
Status represents the results of an operation that might fail.
Definition Status.h:21
-
Strings const & messages() const
Definition Status.h:111
+
Strings const & messages() const
Definition Status.h:110
Status(error_code_i e, std::string const &s)
Definition Status.h:50
- +
error_code_i toErrorCode() const
Returns the Status as an error_code_i.
Definition Status.h:87
- +
Status(TER ter, Strings d={})
Definition Status.h:40
std::string message() const
Return the first message, if any.
Definition Status.cpp:61
std::string codeString() const
Definition Status.cpp:9
static constexpr Code OK
Definition Status.h:27
std::vector< std::string > Strings
Definition Status.h:25
+
void inject(Json::Value &object) const
Apply the Status to a JsonObject.
Definition Status.h:98
Status(T code, Strings d={})
Definition Status.h:35
TER toTER() const
Returns the Status as a TER.
Definition Status.h:77
-
void inject(Object &object) const
Apply the Status to a JsonObject.
Definition Status.h:99
bool operator!() const
Returns true if the Status is OK.
Definition Status.h:69
@@ -261,9 +260,9 @@ $(document).ready(function() { init_codefold(0); });
void fillJson(Json::Value &)
Fill a Json::Value with an RPC 2.0 response.
Definition Status.cpp:42
-
Type type() const
Definition Status.h:121
+
Type type() const
Definition Status.h:120
-
Strings messages_
Definition Status.h:138
+
Strings messages_
Definition Status.h:137
Status(error_code_i e, Strings d={})
Definition Status.h:45
std::string toString() const
Definition Status.cpp:75
diff --git a/Status__test_8cpp_source.html b/Status__test_8cpp_source.html index 87a8e111d0..d10c6cb464 100644 --- a/Status__test_8cpp_source.html +++ b/Status__test_8cpp_source.html @@ -339,7 +339,7 @@ $(document).ready(function() { init_codefold(0); });
@ rpcSUCCESS
Definition ErrorCodes.h:25
T size(T... args)
Status represents the results of an operation that might fail.
Definition Status.h:21
-
Strings const & messages() const
Definition Status.h:111
+
Strings const & messages() const
Definition Status.h:110
std::string codeString() const
Definition Status.cpp:9
static constexpr Code OK
Definition Status.h:27
TER toTER() const
Returns the Status as a TER.
Definition Status.h:77
diff --git a/Submit_8cpp_source.html b/Submit_8cpp_source.html index 6e95a8aab5..590a0f331e 100644 --- a/Submit_8cpp_source.html +++ b/Submit_8cpp_source.html @@ -144,7 +144,7 @@ $(document).ready(function() { init_codefold(0); });
58 auto ret = strUnHex(context.params[jss::tx_blob].asString());
59
60 if (!ret || !ret->size())
- +
62
63 SerialIter sitTrans(makeSlice(*ret));
64
@@ -280,7 +280,7 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
Json::Value transactionSubmit(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction)
Returns a Json::objectValue.
ProcessTransactionFn getProcessTxnFn(NetworkOPs &netOPs)
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Charge const feeMediumBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@ Valid
Signature and local checks are good / passed.
@@ -289,10 +289,10 @@ $(document).ready(function() { init_codefold(0); });
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition TER.cpp:230
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
static NetworkOPs::FailHard getFailHard(RPC::JsonContext const &context)
Definition Submit.cpp:14
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules, Config const &config)
Checks transaction signature and local checks.
Definition apply.cpp:25
@ temUNCERTAIN
Definition TER.h:104
Json::Value doSubmit(RPC::JsonContext &)
Definition Submit.cpp:26
diff --git a/Subscribe_8cpp_source.html b/Subscribe_8cpp_source.html index 1c7efb958c..4d32f24409 100644 --- a/Subscribe_8cpp_source.html +++ b/Subscribe_8cpp_source.html @@ -109,13 +109,13 @@ $(document).ready(function() { init_codefold(0); });
25 {
26 // Must be a JSON-RPC call.
27 JLOG(context.j.info()) << "doSubscribe: RPC subscribe requires a url";
- +
29 }
30
31 if (context.params.isMember(jss::url))
32 {
33 if (context.role != Role::ADMIN)
- +
35
36 std::string strUrl = context.params[jss::url].asString();
37 std::string strUsername = context.params.isMember(jss::url_username)
@@ -183,13 +183,13 @@ $(document).ready(function() { init_codefold(0); });
99 if (!context.params[jss::streams].isArray())
100 {
101 JLOG(context.j.info()) << "doSubscribe: streams requires an array.";
- +
103 }
104
105 for (auto const& it : context.params[jss::streams])
106 {
107 if (!it.isString())
- +
109
110 std::string streamName = it.asString();
111 if (streamName == "server")
@@ -226,7 +226,7 @@ $(document).ready(function() { init_codefold(0); });
142 else if (streamName == "peer_status")
143 {
144 if (context.role != Role::ADMIN)
- +
146 context.netOps.subPeerStatus(ispSub);
147 }
148 else if (streamName == "consensus")
@@ -235,7 +235,7 @@ $(document).ready(function() { init_codefold(0); });
151 }
152 else
153 {
- +
155 }
156 }
157 }
@@ -246,22 +246,22 @@ $(document).ready(function() { init_codefold(0); });
162 if (context.params.isMember(accountsProposed))
163 {
164 if (!context.params[accountsProposed].isArray())
- +
166
167 auto ids = RPC::parseAccountIds(context.params[accountsProposed]);
168 if (ids.empty())
- +
170 context.netOps.subAccount(ispSub, ids, true);
171 }
172
173 if (context.params.isMember(jss::accounts))
174 {
175 if (!context.params[jss::accounts].isArray())
- +
177
178 auto ids = RPC::parseAccountIds(context.params[jss::accounts]);
179 if (ids.empty())
- +
181 context.netOps.subAccount(ispSub, ids, false);
182 JLOG(context.j.debug()) << "doSubscribe: accounts: " << ids.size();
183 }
@@ -269,21 +269,21 @@ $(document).ready(function() { init_codefold(0); });
185 if (context.params.isMember(jss::account_history_tx_stream))
186 {
187 if (!context.app.config().useTxTables())
-
188 return rpcError(rpcNOT_ENABLED);
+
188 return rpcError(rpcNOT_ENABLED);
189
191 auto const& req = context.params[jss::account_history_tx_stream];
192 if (!req.isMember(jss::account) || !req[jss::account].isString())
- +
194
195 auto const id = parseBase58<AccountID>(req[jss::account].asString());
196 if (!id)
- +
198
199 if (auto result = context.netOps.subAccountHistory(ispSub, *id);
200 result != rpcSUCCESS)
201 {
-
202 return rpcError(result);
+
202 return rpcError(result);
203 }
204
205 jvResult[jss::warning] =
@@ -296,7 +296,7 @@ $(document).ready(function() { init_codefold(0); });
212 if (context.params.isMember(jss::books))
213 {
214 if (!context.params[jss::books].isArray())
- +
216
217 for (auto& j : context.params[jss::books])
218 {
@@ -304,7 +304,7 @@ $(document).ready(function() { init_codefold(0); });
220 !j.isMember(jss::taker_gets) ||
221 !j[jss::taker_pays].isObjectOrNull() ||
222 !j[jss::taker_gets].isObjectOrNull())
- +
224
225 Book book;
226 Json::Value taker_pays = j[jss::taker_pays];
@@ -316,7 +316,7 @@ $(document).ready(function() { init_codefold(0); });
232 book.in.currency, taker_pays[jss::currency].asString()))
233 {
234 JLOG(context.j.info()) << "Bad taker_pays currency.";
- +
236 }
237
238 // Parse optional issuer.
@@ -329,7 +329,7 @@ $(document).ready(function() { init_codefold(0); });
245 noAccount() == book.in.account)
246 {
247 JLOG(context.j.info()) << "Bad taker_pays issuer.";
- +
249 }
250
251 // Parse mandatory currency.
@@ -338,7 +338,7 @@ $(document).ready(function() { init_codefold(0); });
254 book.out.currency, taker_gets[jss::currency].asString()))
255 {
256 JLOG(context.j.info()) << "Bad taker_gets currency.";
- +
258 }
259
260 // Parse optional issuer.
@@ -351,14 +351,14 @@ $(document).ready(function() { init_codefold(0); });
267 noAccount() == book.out.account)
268 {
269 JLOG(context.j.info()) << "Bad taker_gets issuer.";
- +
271 }
272
273 if (book.in.currency == book.out.currency &&
274 book.in.account == book.out.account)
275 {
276 JLOG(context.j.info()) << "taker_gets same as taker_pays.";
-
277 return rpcError(rpcBAD_MARKET);
+
277 return rpcError(rpcBAD_MARKET);
278 }
279
@@ -367,7 +367,7 @@ $(document).ready(function() { init_codefold(0); });
283 {
284 takerID = parseBase58<AccountID>(j[jss::taker].asString());
285 if (!takerID)
-
286 return rpcError(rpcBAD_ISSUER);
+
286 return rpcError(rpcBAD_ISSUER);
287 }
288
289 if (j.isMember(jss::domain))
@@ -376,7 +376,7 @@ $(document).ready(function() { init_codefold(0); });
292 if (!j[jss::domain].isString() ||
293 !domain.parseHex(j[jss::domain].asString()))
294 {
- +
296 }
297 else
298 {
@@ -387,7 +387,7 @@ $(document).ready(function() { init_codefold(0); });
303 if (!isConsistent(book))
304 {
305 JLOG(context.j.warn()) << "Bad market: " << book;
-
306 return rpcError(rpcBAD_MARKET);
+
306 return rpcError(rpcBAD_MARKET);
307 }
308
309 context.netOps.subBook(ispSub, book);
@@ -502,16 +502,16 @@ $(document).ready(function() { init_codefold(0); });
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
static LimitRange constexpr bookOffers
Limits for the book_offers command.
hash_set< AccountID > parseAccountIds(Json::Value const &jvArray)
Parses an array of account IDs from a JSON value.
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
Charge const feeMediumBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool isConsistent(Book const &book)
Definition Book.cpp:10
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
Json::Value doSubscribe(RPC::JsonContext &)
Definition Subscribe.cpp:19
std::shared_ptr< RPCSub > make_RPCSub(InfoSub::Source &source, boost::asio::io_context &io_context, JobQueue &jobQueue, std::string const &strUrl, std::string const &strUsername, std::string const &strPassword, Logs &logs)
Definition RPCSub.cpp:189
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Book reversed(Book const &book)
Definition Book.cpp:30
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
AccountID const & noAccount()
A placeholder for empty accounts.
bool to_currency(Currency &, std::string const &)
Tries to convert a string to a Currency, returns true on success.
Definition UintTypes.cpp:65
diff --git a/TransactionEntry__test_8cpp_source.html b/TransactionEntry__test_8cpp_source.html index 3065d01e36..10a5bd896a 100644 --- a/TransactionEntry__test_8cpp_source.html +++ b/TransactionEntry__test_8cpp_source.html @@ -485,7 +485,7 @@ $(document).ready(function() { init_codefold(0); });
T empty(T... args)
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
void forAllApiVersions(Fn const &fn, Args &&... args)
Definition ApiVersion.h:158
diff --git a/TransactionSign_8cpp_source.html b/TransactionSign_8cpp_source.html index 91a7fc7733..c617d312f6 100644 --- a/TransactionSign_8cpp_source.html +++ b/TransactionSign_8cpp_source.html @@ -372,7 +372,7 @@ $(document).ready(function() { init_codefold(0); });
258 {
259 LegacyPathFind lpf(isUnlimited(role), app);
260 if (!lpf.isOk())
-
261 return rpcError(rpcTOO_BUSY);
+
261 return rpcError(rpcTOO_BUSY);
262
263 STPathSet result;
264
@@ -470,16 +470,16 @@ $(document).ready(function() { init_codefold(0); });
354 (validatedLedgerAge > Tuning::maxValidatedLedgerAge))
355 {
356 if (apiVersion == 1)
- +
358 else
- +
360 return ret;
361 }
362
363 // Check for load.
364 if (feeTrack.isLoadedCluster() && !isUnlimited(role))
365 {
- +
367 return ret;
368 }
369
@@ -604,7 +604,7 @@ $(document).ready(function() { init_codefold(0); });
480 JLOG(j.debug()) << "transactionSign: Failed to find source account "
481 << "in current ledger: " << toBase58(srcAddressID);
482
- +
484 }
485
486 if (signingArgs.editFields())
@@ -619,7 +619,7 @@ $(document).ready(function() { init_codefold(0); });
495 << "transactionSign: Failed to find source account "
496 << "in current ledger: " << toBase58(srcAddressID);
497
- +
499 }
500 tx_json[jss::Sequence] =
501 hasTicketSeq ? 0 : app.getTxQ().nextQueuableSeq(sle).value();
@@ -664,7 +664,7 @@ $(document).ready(function() { init_codefold(0); });
540 if (signingArgs.isMultiSigning())
541 {
542 if (tx_json.isMember(jss::TxnSignature))
- +
544
545 // If multisigning then we need to return the public key.
546 signingArgs.setPublicKey(pk);
@@ -672,14 +672,14 @@ $(document).ready(function() { init_codefold(0); });
548 else if (signingArgs.isSingleSigning())
549 {
550 if (tx_json.isMember(jss::Signers))
- +
552 }
553
554 if (verify)
555 {
556 if (!sle)
557 // XXX Ignore transactions for accounts not created.
- +
559
560 JLOG(j.trace()) << "verify: " << toBase58(calcAccountID(pk)) << " : "
561 << toBase58(srcAddressID);
@@ -709,20 +709,20 @@ $(document).ready(function() { init_codefold(0); });
585 auto delegatedSle = app.openLedger().current()->read(
586 keylet::account(delegatedAddressID));
587 if (!delegatedSle)
- +
589
590 auto const err =
591 acctMatchesPubKey(delegatedSle, delegatedAddressID, pk);
592
593 if (err != rpcSUCCESS)
-
594 return rpcError(err);
+
594 return rpcError(err);
595 }
596 else
597 {
598 auto const err = acctMatchesPubKey(sle, srcAddressID, pk);
599
600 if (err != rpcSUCCESS)
-
601 return rpcError(err);
+
601 return rpcError(err);
602 }
603 }
604 }
@@ -1357,7 +1357,7 @@ $(document).ready(function() { init_codefold(0); });
1216 account_state, *signerAccountID, signForParams.getPublicKey());
1217
1218 if (err != rpcSUCCESS)
-
1219 return rpcError(err);
+
1219 return rpcError(err);
1220 }
1221
1222 // Inject the newly generated signature into tx_json.Signers.
@@ -1448,7 +1448,7 @@ $(document).ready(function() { init_codefold(0); });
1306 << "transactionSubmitMultiSigned: Failed to find source account "
1307 << "in current ledger: " << toBase58(srcAddressID);
1308
- +
1310 }
1311
1312 {
@@ -1519,7 +1519,7 @@ $(document).ready(function() { init_codefold(0); });
1377
1378 // There may not be a TxnSignature field.
1379 if (stTx->isFieldPresent(sfTxnSignature))
- +
1381
1382 // The Fee field must be in XRP and greater than zero.
1383 auto const fee = stTx->getFieldAmount(sfFee);
@@ -1719,26 +1719,26 @@ $(document).ready(function() { init_codefold(0); });
static std::pair< Json::Value, Transaction::pointer > transactionConstructImpl(std::shared_ptr< STTx const > const &stTx, Rules const &rules, Application &app)
static error_code_i acctMatchesPubKey(std::shared_ptr< SLE const > accountState, AccountID const &accountID, PublicKey const &publicKey)
static Json::Value sortAndValidateSigners(STArray &signers, AccountID const &signingForID)
-
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:306
-
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:318
+
Json::Value invalid_field_error(std::string const &name)
Definition ErrorCodes.h:284
+
std::string expected_field_message(std::string const &name, std::string const &type)
Definition ErrorCodes.h:296
Json::Value transactionSubmit(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction)
Returns a Json::objectValue.
-
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:258
+
std::string missing_field_message(std::string const &name)
Definition ErrorCodes.h:236
void insertDeliverMax(Json::Value &tx_json, TxType txnType, unsigned int apiVersion)
Copy Amount field to DeliverMax field in transaction output JSON.
Definition DeliverMax.cpp:9
Json::Value transactionSign(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app)
Returns a Json::objectValue.
-
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:264
+
Json::Value missing_field_error(std::string const &name)
Definition ErrorCodes.h:242
static XRPAmount getTxFee(Application const &app, Config const &config, Json::Value tx)
Json::Value getCurrentNetworkFee(Role const role, Config const &config, LoadFeeTrack const &feeTrack, TxQ const &txQ, Application const &app, Json::Value const &tx, int mult, int div)
-
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:282
+
Json::Value object_field_error(std::string const &name)
Definition ErrorCodes.h:260
Json::Value checkFee(Json::Value &request, Role const role, bool doAutoFill, Config const &config, LoadFeeTrack const &feeTrack, TxQ const &txQ, Application const &app)
Fill in the fee on behalf of the client.
Json::Value transactionSignFor(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app)
Returns a Json::objectValue.
static constexpr std::integral_constant< unsigned, Version > apiVersion
Definition ApiVersion.h:39
-
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:252
+
Json::Value make_param_error(std::string const &message)
Returns a new json object that indicates invalid parameters.
Definition ErrorCodes.h:230
Json::Value transactionSubmitMultiSigned(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &app, ProcessTransactionFn const &processTransaction)
Returns a Json::objectValue.
-
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:294
+
std::string invalid_field_message(std::string const &name)
Definition ErrorCodes.h:272
std::optional< std::pair< PublicKey, SecretKey > > keypairForSignature(Json::Value const &params, Json::Value &error, unsigned int apiVersion)
Generates a keypair for signature from RPC parameters.
unsigned int getAPIVersionNumber(Json::Value const &jv, bool betaEnabled)
Retrieve the api version number from the json value.
Definition ApiVersion.h:104
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:166
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
@@ -1753,11 +1753,11 @@ $(document).ready(function() { init_codefold(0); });
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
XRPAmount toDrops(FeeLevel< T > const &level, XRPAmount baseFee)
Definition TxQ.h:844
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition TER.cpp:230
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Role
Indicates the level of administrative permission to grant.
Definition Role.h:25
bool amountFromJsonNoThrow(STAmount &result, Json::Value const &jvSource)
bool passesLocalChecks(STObject const &st, std::string &)
Definition STTx.cpp:771
AccountID calcAccountID(PublicKey const &pk)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules, Config const &config)
Checks transaction signature and local checks.
Definition apply.cpp:25
@ temUNCERTAIN
Definition TER.h:104
XRPAmount scaleFeeLoad(XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited)
diff --git a/Transaction__test_8cpp_source.html b/Transaction__test_8cpp_source.html index d542975b90..7159267bfe 100644 --- a/Transaction__test_8cpp_source.html +++ b/Transaction__test_8cpp_source.html @@ -1076,7 +1076,7 @@ $(document).ready(function() { init_codefold(0); });
T make_tuple(T... args)
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
std::optional< std::string > encodeCTID(uint32_t ledgerSeq, uint32_t txnIndex, uint32_t networkID) noexcept
Encodes ledger sequence, transaction index, and network ID into a CTID string.
Definition CTID.h:34
-
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
+
ErrorInfo const & get_error_info(error_code_i code)
Returns an ErrorInfo that reflects the error code.
std::optional< std::tuple< uint32_t, uint16_t, uint16_t > > decodeCTID(T const ctid) noexcept
Decodes a CTID string or integer into its component parts.
Definition CTID.h:64
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@ INVALID
Definition Transaction.h:29
diff --git a/TrustedPublisherServer_8h_source.html b/TrustedPublisherServer_8h_source.html index 14e1dedcd5..346ed3d100 100644 --- a/TrustedPublisherServer_8h_source.html +++ b/TrustedPublisherServer_8h_source.html @@ -906,7 +906,7 @@ $(document).ready(function() { init_codefold(0); });
STL namespace.
void write(nudb::detail::ostream &os, std::size_t t)
Definition varint.h:115
auto const data
General field definitions, or fields used in multiple transaction namespaces.
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
char const * getEnvLocalhostAddr()
Definition envconfig.h:17
std::shared_ptr< TrustedPublisherServer > make_TrustedPublisherServer(boost::asio::io_context &ioc, std::vector< TrustedPublisherServer::Validator > const &validators, NetClock::time_point validUntil, std::vector< std::pair< NetClock::time_point, NetClock::time_point > > const &futures, bool useSSL=false, int version=1, bool immediateStart=true, int sequence=1)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/TxHistory_8cpp_source.html b/TxHistory_8cpp_source.html index a952216adb..aa56b50cbd 100644 --- a/TxHistory_8cpp_source.html +++ b/TxHistory_8cpp_source.html @@ -104,17 +104,17 @@ $(document).ready(function() { init_codefold(0); });
21{
22 if (!context.app.config().useTxTables())
- +
24
26
27 if (!context.params.isMember(jss::start))
- +
29
30 unsigned int startIndex = context.params[jss::start].asUInt();
31
32 if ((startIndex > 10000) && (!isUnlimited(context.role)))
- +
34
35 auto trans = context.app.getRelationalDatabase().getTxHistory(startIndex);
36
@@ -147,7 +147,7 @@ $(document).ready(function() { init_codefold(0); });
Charge const feeMediumBurdenRPC
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value doTxHistory(RPC::JsonContext &)
Definition TxHistory.cpp:20
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Definition Role.cpp:106
@ rpcNO_PERMISSION
Definition ErrorCodes.h:34
@ rpcNOT_ENABLED
Definition ErrorCodes.h:40
diff --git a/TxQ__test_8cpp_source.html b/TxQ__test_8cpp_source.html index f768176e97..a4b6d207b8 100644 --- a/TxQ__test_8cpp_source.html +++ b/TxQ__test_8cpp_source.html @@ -5311,7 +5311,7 @@ $(document).ready(function() { init_codefold(0); });
@ arrayValue
array value (ordered list)
Definition json_value.h:26
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
+
bool contains_error(Json::Value const &json)
Returns true if the json contains an rpc error specification.
std::size_t numUpVotedAmendments()
Amendments that this server will vote for by default.
Definition Feature.cpp:355
Json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
Definition ticket.cpp:12
auto const data
General field definitions, or fields used in multiple transaction namespaces.
diff --git a/Tx_8cpp_source.html b/Tx_8cpp_source.html index 824c90a0aa..e6cadaf54d 100644 --- a/Tx_8cpp_source.html +++ b/Tx_8cpp_source.html @@ -360,7 +360,7 @@ $(document).ready(function() { init_codefold(0); });
267{
268 if (!context.app.config().useTxTables())
-
269 return rpcError(rpcNOT_ENABLED);
+
269 return rpcError(rpcNOT_ENABLED);
270
271 // Deserialize and validate JSON arguments
272
@@ -369,20 +369,20 @@ $(document).ready(function() { init_codefold(0); });
275 if (context.params.isMember(jss::transaction) &&
276 context.params.isMember(jss::ctid))
277 // specifying both is ambiguous
- +
279
280 if (context.params.isMember(jss::transaction))
281 {
282 uint256 hash;
283 if (!hash.parseHex(context.params[jss::transaction].asString()))
-
284 return rpcError(rpcNOT_IMPL);
+
284 return rpcError(rpcNOT_IMPL);
285 args.hash = hash;
286 }
287 else if (context.params.isMember(jss::ctid))
288 {
289 auto ctid = RPC::decodeCTID(context.params[jss::ctid].asString());
290 if (!ctid)
- +
292
293 auto const [lgr_seq, txn_idx, net_id] = *ctid;
294 if (net_id != context.app.config().NETWORK_ID)
@@ -396,7 +396,7 @@ $(document).ready(function() { init_codefold(0); });
302 args.ctid = {lgr_seq, txn_idx};
303 }
304 else
- +
306
307 args.binary = context.params.isMember(jss::binary) &&
308 context.params[jss::binary].asBool();
@@ -413,7 +413,7 @@ $(document).ready(function() { init_codefold(0); });
319 catch (...)
320 {
321 // One of the calls to `asUInt ()` failed.
- +
323 }
324 }
325
@@ -455,7 +455,7 @@ $(document).ready(function() { init_codefold(0); });
void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
void insertNFTSyntheticInJson(Json::Value &, std::shared_ptr< STTx const > const &, TxMeta const &)
Adds common synthetic fields to transaction-related JSON responses.
std::optional< std::tuple< uint32_t, uint16_t, uint16_t > > decodeCTID(T const ctid) noexcept
Decodes a CTID string or integer into its component parts.
Definition CTID.h:64
-
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
+
Json::Value make_error(error_code_i code)
Returns a new json object that reflects the error code.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Json::Value populateJsonResponse(std::pair< AccountTxResult, RPC::Status > const &res, AccountTxArgs const &args, RPC::JsonContext const &context)
ClosedInterval< T > range(T low, T high)
Create a closed range interval.
Definition RangeSet.h:35
@@ -464,9 +464,9 @@ $(document).ready(function() { init_codefold(0); });
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
static bool isValidated(LedgerMaster &ledgerMaster, std::uint32_t seq, uint256 const &hash)
Definition Tx.cpp:24
std::pair< TxResult, RPC::Status > doTxHelp(RPC::Context &context, TxArgs args)
Definition Tx.cpp:55
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
boost::icl::closed_interval< T > ClosedInterval
A closed interval over the domain T.
Definition RangeSet.h:26
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
diff --git a/Unsubscribe_8cpp_source.html b/Unsubscribe_8cpp_source.html index 6780356dd1..cff4a1569e 100644 --- a/Unsubscribe_8cpp_source.html +++ b/Unsubscribe_8cpp_source.html @@ -104,13 +104,13 @@ $(document).ready(function() { init_codefold(0); });
20 if (!context.infoSub && !context.params.isMember(jss::url))
21 {
22 // Must be a JSON-RPC call.
- +
24 }
25
26 if (context.params.isMember(jss::url))
27 {
28 if (context.role != Role::ADMIN)
- +
30
31 std::string strUrl = context.params[jss::url].asString();
32 ispSub = context.netOps.findRpcSub(strUrl);
@@ -126,12 +126,12 @@ $(document).ready(function() { init_codefold(0); });
42 if (context.params.isMember(jss::streams))
43 {
44 if (!context.params[jss::streams].isArray())
- +
46
47 for (auto& it : context.params[jss::streams])
48 {
49 if (!it.isString())
- +
51
52 std::string streamName = it.asString();
53 if (streamName == "server")
@@ -170,7 +170,7 @@ $(document).ready(function() { init_codefold(0); });
86 }
87 else
88 {
- +
90 }
91 }
92 }
@@ -181,22 +181,22 @@ $(document).ready(function() { init_codefold(0); });
97 if (context.params.isMember(accountsProposed))
98 {
99 if (!context.params[accountsProposed].isArray())
- +
101
102 auto ids = RPC::parseAccountIds(context.params[accountsProposed]);
103 if (ids.empty())
- +
105 context.netOps.unsubAccount(ispSub, ids, true);
106 }
107
108 if (context.params.isMember(jss::accounts))
109 {
110 if (!context.params[jss::accounts].isArray())
- +
112
113 auto ids = RPC::parseAccountIds(context.params[jss::accounts]);
114 if (ids.empty())
- +
116 context.netOps.unsubAccount(ispSub, ids, false);
117 }
118
@@ -204,17 +204,17 @@ $(document).ready(function() { init_codefold(0); });
120 {
121 auto const& req = context.params[jss::account_history_tx_stream];
122 if (!req.isMember(jss::account) || !req[jss::account].isString())
- +
124
125 auto const id = parseBase58<AccountID>(req[jss::account].asString());
126 if (!id)
- +
128
129 bool stopHistoryOnly = false;
130 if (req.isMember(jss::stop_history_tx_only))
131 {
132 if (!req[jss::stop_history_tx_only].isBool())
- +
134 stopHistoryOnly = req[jss::stop_history_tx_only].asBool();
135 }
136 context.netOps.unsubAccountHistory(ispSub, *id, stopHistoryOnly);
@@ -227,7 +227,7 @@ $(document).ready(function() { init_codefold(0); });
143 if (context.params.isMember(jss::books))
144 {
145 if (!context.params[jss::books].isArray())
- +
147
148 for (auto& jv : context.params[jss::books])
149 {
@@ -236,7 +236,7 @@ $(document).ready(function() { init_codefold(0); });
152 !jv[jss::taker_pays].isObjectOrNull() ||
153 !jv[jss::taker_gets].isObjectOrNull())
154 {
- +
156 }
157
158 Json::Value taker_pays = jv[jss::taker_pays];
@@ -250,7 +250,7 @@ $(document).ready(function() { init_codefold(0); });
166 book.in.currency, taker_pays[jss::currency].asString()))
167 {
168 JLOG(context.j.info()) << "Bad taker_pays currency.";
- +
170 }
171 // Parse optional issuer.
172 else if (
@@ -263,7 +263,7 @@ $(document).ready(function() { init_codefold(0); });
179 {
180 JLOG(context.j.info()) << "Bad taker_pays issuer.";
181
- +
183 }
184
185 // Parse mandatory currency.
@@ -273,7 +273,7 @@ $(document).ready(function() { init_codefold(0); });
189 {
190 JLOG(context.j.info()) << "Bad taker_gets currency.";
191
- +
193 }
194 // Parse optional issuer.
195 else if (
@@ -286,13 +286,13 @@ $(document).ready(function() { init_codefold(0); });
202 {
203 JLOG(context.j.info()) << "Bad taker_gets issuer.";
204
- +
206 }
207
208 if (book.in == book.out)
209 {
210 JLOG(context.j.info()) << "taker_gets same as taker_pays.";
-
211 return rpcError(rpcBAD_MARKET);
+
211 return rpcError(rpcBAD_MARKET);
212 }
213
214 if (jv.isMember(jss::domain))
@@ -301,7 +301,7 @@ $(document).ready(function() { init_codefold(0); });
217 if (!jv[jss::domain].isString() ||
218 !domain.parseHex(jv[jss::domain].asString()))
219 {
- +
221 }
222 else
223 {
@@ -365,10 +365,10 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool isConsistent(Book const &book)
Definition Book.cpp:10
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Book reversed(Book const &book)
Definition Book.cpp:30
Json::Value doUnsubscribe(RPC::JsonContext &)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
bool to_issuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
AccountID const & noAccount()
A placeholder for empty accounts.
bool to_currency(Currency &, std::string const &)
Tries to convert a string to a Currency, returns true on success.
Definition UintTypes.cpp:65
diff --git a/ValidationCreate_8cpp_source.html b/ValidationCreate_8cpp_source.html index 823fa58ce3..cc6bd18f1a 100644 --- a/ValidationCreate_8cpp_source.html +++ b/ValidationCreate_8cpp_source.html @@ -116,7 +116,7 @@ $(document).ready(function() { init_codefold(0); });
30 auto seed = validationSeed(context.params);
31
32 if (!seed)
-
33 return rpcError(rpcBAD_SEED);
+
33 return rpcError(rpcBAD_SEED);
34
35 auto const private_key = generateSecretKey(KeyType::secp256k1, *seed);
36
@@ -146,9 +146,9 @@ $(document).ready(function() { init_codefold(0); });
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
SecretKey generateSecretKey(KeyType type, Seed const &seed)
Generate a new secret key deterministically.
std::string seedAs1751(Seed const &seed)
Encode a Seed in RFC1751 format.
Definition Seed.cpp:116
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
@ rpcBAD_SEED
Definition ErrorCodes.h:80
std::optional< Seed > parseGenericSeed(std::string const &str, bool rfc1751=true)
Attempt to parse a string as a seed.
Definition Seed.cpp:78
static std::optional< Seed > validationSeed(Json::Value const &params)
diff --git a/Validation_8h_source.html b/Validation_8h_source.html index 9b87141cf0..1f7f2ca6db 100644 --- a/Validation_8h_source.html +++ b/Validation_8h_source.html @@ -334,7 +334,7 @@ $(document).ready(function() { init_codefold(0); });
std::pair< PeerID, std::uint32_t > PeerKey
The current key of a peer.
Definition Validation.h:26
tagged_integer< std::uint32_t, PeerIDTag > PeerID
Definition Validation.h:18
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/ValidatorInfo_8cpp_source.html b/ValidatorInfo_8cpp_source.html index e44bf4f7ff..892ec24212 100644 --- a/ValidatorInfo_8cpp_source.html +++ b/ValidatorInfo_8cpp_source.html @@ -136,7 +136,7 @@ $(document).ready(function() { init_codefold(0); });
PublicKey getMasterKey(PublicKey const &pk) const
Returns ephemeral signing key's master public key.
Definition Manifest.cpp:303
std::optional< std::string > getManifest(PublicKey const &pk) const
Returns mainfest corresponding to a given public key.
Definition Manifest.cpp:339
std::optional< std::uint32_t > getSequence(PublicKey const &pk) const
Returns master key's current manifest sequence.
Definition Manifest.cpp:315
-
Json::Value not_validator_error()
Definition ErrorCodes.h:342
+
Json::Value not_validator_error()
Definition ErrorCodes.h:320
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:95
std::string base64_encode(std::uint8_t const *data, std::size_t len)
diff --git a/ValidatorList__test_8cpp_source.html b/ValidatorList__test_8cpp_source.html index f6bdcb794e..69c05cddaf 100644 --- a/ValidatorList__test_8cpp_source.html +++ b/ValidatorList__test_8cpp_source.html @@ -4350,7 +4350,7 @@ $(document).ready(function() { init_codefold(0); });
T max(T... args)
auto const data
General field definitions, or fields used in multiple transaction namespaces.
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
Definition envconfig.h:35
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/VaultInfo_8cpp_source.html b/VaultInfo_8cpp_source.html index 1baf2839f2..c1fadfc15a 100644 --- a/VaultInfo_8cpp_source.html +++ b/VaultInfo_8cpp_source.html @@ -106,7 +106,7 @@ $(document).ready(function() { init_codefold(0); });
22 {
23 if (!uNodeIndex.parseHex(params[jss::vault_id].asString()))
24 {
- +
26 return std::nullopt;
27 }
28 // else uNodeIndex holds the value we need
@@ -116,7 +116,7 @@ $(document).ready(function() { init_codefold(0); });
32 auto const id = parseBase58<AccountID>(params[jss::owner].asString());
33 if (!id)
34 {
- +
36 return std::nullopt;
37 }
38 else if (
@@ -124,7 +124,7 @@ $(document).ready(function() { init_codefold(0); });
40 params[jss::seq].asDouble() <= 0.0 ||
41 params[jss::seq].asDouble() > double(Json::Value::maxUInt))
42 {
- +
44 return std::nullopt;
45 }
46
@@ -133,7 +133,7 @@ $(document).ready(function() { init_codefold(0); });
49 else
50 {
51 // Invalid combination of fields vault_id/owner/seq
- +
53 return std::nullopt;
54 }
55
@@ -187,7 +187,7 @@ $(document).ready(function() { init_codefold(0); });
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
Definition base_uint.h:484
T is_same_v
-
void inject_error(error_code_i code, JsonValue &json)
Add or update the json update to reflect the error code.
Definition ErrorCodes.h:214
+
void inject_error(error_code_i code, Json::Value &json)
Add or update the json update to reflect the error code.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)
Looks up a ledger from a request and fills a Json::Value with ledger data.
Keylet mptIssuance(std::uint32_t seq, AccountID const &issuer) noexcept
Definition Indexes.cpp:508
Keylet vault(AccountID const &owner, std::uint32_t seq) noexcept
Definition Indexes.cpp:546
diff --git a/Version_8h_source.html b/Version_8h_source.html index 2607a3b1bf..c6a4655378 100644 --- a/Version_8h_source.html +++ b/Version_8h_source.html @@ -108,52 +108,52 @@ $(document).ready(function() { init_codefold(0); });
21 }
22
-
23 template <class Object>
-
24 void
-
-
25 writeResult(Object& obj)
-
26 {
- -
28 }
+
23 void
+
+ +
25 {
+ +
27 }
-
29
-
30 static constexpr char const* name = "version";
-
31
-
32 static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion;
-
33
-
34 static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion;
-
35
-
36 static constexpr Role role = Role::USER;
-
37
-
38 static constexpr Condition condition = NO_CONDITION;
-
39
-
40private:
-
41 unsigned int apiVersion_;
- -
43};
+
28
+
29 static constexpr char const* name = "version";
+
30
+
31 static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion;
+
32
+
33 static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion;
+
34
+
35 static constexpr Role role = Role::USER;
+
36
+
37 static constexpr Condition condition = NO_CONDITION;
+
38
+
39private:
+
40 unsigned int apiVersion_;
+ +
42};
-
44
-
45} // namespace RPC
-
46} // namespace xrpl
-
47
-
48#endif
+
43
+
44} // namespace RPC
+
45} // namespace xrpl
+
46
+
47#endif
+
Represents a JSON value.
Definition json_value.h:131
VersionHandler(JsonContext &c)
Definition Version.h:12
-
static constexpr Condition condition
Definition Version.h:38
-
unsigned int apiVersion_
Definition Version.h:41
-
static constexpr char const * name
Definition Version.h:30
+
static constexpr Condition condition
Definition Version.h:37
+
unsigned int apiVersion_
Definition Version.h:40
+
void writeResult(Json::Value &obj)
Definition Version.h:24
+
static constexpr char const * name
Definition Version.h:29
-
static constexpr Role role
Definition Version.h:36
-
static constexpr unsigned minApiVer
Definition Version.h:32
-
void writeResult(Object &obj)
Definition Version.h:25
-
static constexpr unsigned maxApiVer
Definition Version.h:34
- -
void setVersion(JsonObject &parent, unsigned int apiVersion, bool betaEnabled)
Definition ApiVersion.h:63
+
static constexpr Role role
Definition Version.h:35
+
static constexpr unsigned minApiVer
Definition Version.h:31
+
static constexpr unsigned maxApiVer
Definition Version.h:33
+
@ NO_CONDITION
Definition Handler.h:21
static constexpr auto apiMinimumSupportedVersion
Definition ApiVersion.h:42
static constexpr auto apiMaximumValidVersion
Definition ApiVersion.h:48
static constexpr std::integral_constant< unsigned, Version > apiVersion
Definition ApiVersion.h:39
+
void setVersion(Json::Value &parent, unsigned int apiVersion, bool betaEnabled)
Definition ApiVersion.h:62
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Role
Indicates the level of administrative permission to grant.
Definition Role.h:25
diff --git a/WalletPropose_8cpp_source.html b/WalletPropose_8cpp_source.html index 0acef2ce84..0e20b3e085 100644 --- a/WalletPropose_8cpp_source.html +++ b/WalletPropose_8cpp_source.html @@ -156,7 +156,7 @@ $(document).ready(function() { init_codefold(0); });
68 keyType = keyTypeFromString(params[jss::key_type].asString());
69
70 if (!keyType)
- +
72 }
73
74 // ripple-lib encodes seed used to generate an Ed25519 wallet in a
@@ -175,7 +175,7 @@ $(document).ready(function() { init_codefold(0); });
87 // If the user *explicitly* requests a key type other than
88 // Ed25519 we return an error.
-
90 return rpcError(rpcBAD_SEED);
+
90 return rpcError(rpcBAD_SEED);
91
92 keyType = KeyType::ed25519;
93 }
@@ -256,7 +256,7 @@ $(document).ready(function() { init_codefold(0); });
T floor(T... args)
@ objectValue
object value (collection of name/value pairs).
Definition json_value.h:27
-
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:330
+
Json::Value expected_field_error(std::string const &name, std::string const &type)
Definition ErrorCodes.h:308
std::optional< Seed > parseRippleLibSeed(Json::Value const &value)
Parses a RippleLib seed from RPC parameters.
std::optional< Seed > getSeedFromRPC(Json::Value const &params, Json::Value &error)
Extracts a Seed from RPC parameters.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
@@ -270,10 +270,10 @@ $(document).ready(function() { init_codefold(0); });
double estimate_entropy(std::string const &input)
std::string seedAs1751(Seed const &seed)
Encode a Seed in RFC1751 format.
Definition Seed.cpp:116
std::pair< PublicKey, SecretKey > generateKeyPair(KeyType type, Seed const &seed)
Generate a key pair deterministically.
-
Json::Value rpcError(int iError)
Definition RPCErr.cpp:12
Json::Value walletPropose(Json::Value const &params)
AccountID calcAccountID(PublicKey const &pk)
+
Json::Value rpcError(error_code_i iError)
Definition RPCErr.cpp:12
Json::Value doWalletPropose(RPC::JsonContext &)
@ rpcBAD_SEED
Definition ErrorCodes.h:80
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:65
diff --git a/annotated.html b/annotated.html index b4eb90662a..8d86baae73 100644 --- a/annotated.html +++ b/annotated.html @@ -282,38 +282,31 @@ $(function() {  Chash< xrpl::Issue >  Chash<::beast::IP::Address >  Chash<::beast::IP::Endpoint >Boost::hash support - NJsonJSON (JavaScript Object Notation) - CArrayRepresents a JSON array being written to a Writer - CCollection - CCompactDecorator for streaming out compact json - CDefaultValueAllocator - CDummyValueAllocatorInitializer - Cerror - CFastWriterOutputs a Value in JSON format without formatting (not human friendly) - CJsonMissingKeyError - CJsonObject_test - CJsonTypeMismatchError - CObjectRepresents a JSON object being written to a Writer - CProxy - CRoot - CReaderUnserialize a JSON document into a Value - CErrorInfo - CToken - CStaticStringLightweight wrapper to tag static string - CStyledStreamWriterWrites a Value in JSON format in a human friendly way, to a stream rather than to a string - CStyledWriterWrites a Value in JSON format in a human friendly way - CValueRepresents a JSON value - CCZString - CValueHolder - CValueAllocatorExperimental do not use: Allocator to customize member name and string value memory management done by Value - CValueConstIteratorConst iterator for object and array value - CValueIteratorIterator for object and array value - CValueIteratorBaseBase class for Value iterators - CWriterWriter implements an O(1)-space, O(1)-granular output JSON writer - CImpl - CCollection - CWriterBaseAbstract class for writers - CWriterObjectAn Object that contains its own Writer + NJsonJSON (JavaScript Object Notation) + CCompactDecorator for streaming out compact json + CDefaultValueAllocator + CDummyValueAllocatorInitializer + Cerror + CFastWriterOutputs a Value in JSON format without formatting (not human friendly) + CJsonMissingKeyError + CJsonTypeMismatchError + CReaderUnserialize a JSON document into a Value + CErrorInfo + CToken + CStaticStringLightweight wrapper to tag static string + CStyledStreamWriterWrites a Value in JSON format in a human friendly way, to a stream rather than to a string + CStyledWriterWrites a Value in JSON format in a human friendly way + CValueRepresents a JSON value + CCZString + CValueHolder + CValueAllocatorExperimental do not use: Allocator to customize member name and string value memory management done by Value + CValueConstIteratorConst iterator for object and array value + CValueIteratorIterator for object and array value + CValueIteratorBaseBase class for Value iterators + CWriterWriter implements an O(1)-space, O(1)-granular output JSON writer + CImpl + CCollection + CWriterBaseAbstract class for writers  NstdSTL namespace  Chash< xrpl::AccountID >  Chash< xrpl::Book > diff --git a/attester_8cpp_source.html b/attester_8cpp_source.html index d8478a277f..09322b1fbf 100644 --- a/attester_8cpp_source.html +++ b/attester_8cpp_source.html @@ -155,7 +155,7 @@ $(document).ready(function() { init_codefold(0); });
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)
Definition attester.cpp:13
-
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:28
+
void sign(Json::Value &jv, Account const &account, Json::Value &sigObject)
Sign automatically into a specific Json field of the jv object.
Definition utility.cpp:27
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)
Definition attester.cpp:36
Json::Value bridge(Account const &lockingChainDoor, Issue const &lockingChainIssue, Account const &issuingChainDoor, Issue const &issuingChainIssue)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
diff --git a/batch_8cpp_source.html b/batch_8cpp_source.html index 1ed2a542af..530af59c7b 100644 --- a/batch_8cpp_source.html +++ b/batch_8cpp_source.html @@ -257,7 +257,7 @@ $(document).ready(function() { init_codefold(0); });
@ arrayValue
array value (ordered list)
Definition json_value.h:26
Json::Value outer(jtx::Account const &account, uint32_t seq, STAmount const &fee, std::uint32_t flags)
Batch.
Definition batch.cpp:30
XRPAmount calcBatchFee(jtx::Env const &env, uint32_t const &numSigners, uint32_t const &txns=0)
Calculate Batch Fee.
Definition batch.cpp:19
-
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Definition utility.cpp:19
+
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Definition utility.cpp:18
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:11
diff --git a/classJson_1_1Array-members.html b/classJson_1_1Array-members.html deleted file mode 100644 index 0bd5426af1..0000000000 --- a/classJson_1_1Array-members.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::Array Member List
-
-
- -

This is the complete list of members for Json::Array, including all inherited members.

- - - - - - - - - - - - - - - - -
append(Scalar const &)Json::Array
append(Json::Value const &)Json::Array
appendArray()Json::Array
appendObject()Json::Array
Array(Collection *parent, Writer *w)Json::Arrayprotected
checkWritable(std::string const &label)Json::Collectionprivate
Collection(Collection &&c) noexceptJson::Collectionprivate
Collection()=deleteJson::Collectionprivate
Collection(Collection *parent, Writer *)Json::Collectionprivate
enabled_Json::Collectionprivate
ObjectJson::Arrayfriend
operator=(Collection &&c) noexceptJson::Collectionprivate
parent_Json::Collectionprivate
writer_Json::Collectionprivate
~Collection()Json::Collectionprivate
- - - - diff --git a/classJson_1_1Array.html b/classJson_1_1Array.html deleted file mode 100644 index e81f97d5b5..0000000000 --- a/classJson_1_1Array.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - - -rippled: Json::Array Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
- -
- -

Represents a JSON array being written to a Writer. - More...

- -

#include <Object.h>

-
-Inheritance diagram for Json::Array:
-
-
Inheritance graph
- - - - - -
[legend]
-
-Collaboration diagram for Json::Array:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - - - - - - - - - - -

-Public Member Functions

template<typename Scalar >
void append (Scalar const &)
 Append a scalar to the Arrary.
 
void append (Json::Value const &)
 Appends a Json::Value to an array.
 
Object appendObject ()
 Append a new Object and return it.
 
Array appendArray ()
 Append a new Array and return it.
 
- - - -

-Protected Member Functions

 Array (Collection *parent, Writer *w)
 
- - - -

-Private Member Functions

void checkWritable (std::string const &label)
 
- - - - - - - -

-Private Attributes

Collectionparent_
 
Writerwriter_
 
bool enabled_
 
- - - -

-Friends

class Object
 
-

Detailed Description

-

Represents a JSON array being written to a Writer.

- -

Definition at line 227 of file Object.h.

-

Constructor & Destructor Documentation

- -

◆ Array()

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - -
Json::Array::Array (Collectionparent,
Writerw 
)
-
-protected
-
- -

Definition at line 264 of file Object.h.

- -
-
-

Member Function Documentation

- -

◆ append() [1/2]

- -
-
-
-template<typename Scalar >
- - - - - - - - -
void Json::Array::append (Scalar const & value)
-
- -

Append a scalar to the Arrary.

-

Throws an exception if this array is disabled (which means that one of its sub-collections is enabled).

- -

Definition at line 379 of file Object.h.

- -
-
- -

◆ append() [2/2]

- -
-
- - - - - - - - -
void Json::Array::append (Json::Value const & v)
-
- -

Appends a Json::Value to an array.

-

Throws an exception if this Array was disabled.

- -

Definition at line 127 of file Object.cpp.

- -
-
- -

◆ appendObject()

- -
-
- - - - - - - -
Object Json::Array::appendObject ()
-
- -

Append a new Object and return it.

-

This Array is disabled until that sub-object is destroyed. Throws an exception if this Array was disabled.

- -

Definition at line 88 of file Object.cpp.

- -
-
- -

◆ appendArray()

- -
-
- - - - - - - -
Array Json::Array::appendArray ()
-
- -

Append a new Array and return it.

-

This Array is disabled until that sub-array is destroyed. Throws an exception if this Array was already disabled.

- -

Definition at line 97 of file Object.cpp.

- -
-
- -

◆ checkWritable()

- -
-
- - - - - -
- - - - - - - - -
void Json::Collection::checkWritable (std::string const & label)
-
-protectedinherited
-
- -

Definition at line 52 of file Object.cpp.

- -
-
-

Friends And Related Symbol Documentation

- -

◆ Object

- -
-
- - - - - -
- - - - -
friend class Object
-
-friend
-
- -

Definition at line 263 of file Object.h.

- -
-
-

Member Data Documentation

- -

◆ parent_

- -
-
- - - - - -
- - - - -
Collection* Json::Collection::parent_
-
-protectedinherited
-
- -

Definition at line 150 of file Object.h.

- -
-
- -

◆ writer_

- -
-
- - - - - -
- - - - -
Writer* Json::Collection::writer_
-
-protectedinherited
-
- -

Definition at line 151 of file Object.h.

- -
-
- -

◆ enabled_

- -
-
- - - - - -
- - - - -
bool Json::Collection::enabled_
-
-protectedinherited
-
- -

Definition at line 152 of file Object.h.

- -
-
-
- - - - diff --git a/classJson_1_1Array__coll__graph.map b/classJson_1_1Array__coll__graph.map deleted file mode 100644 index 0163193039..0000000000 --- a/classJson_1_1Array__coll__graph.map +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1Array__coll__graph.md5 b/classJson_1_1Array__coll__graph.md5 deleted file mode 100644 index e6e918471d..0000000000 --- a/classJson_1_1Array__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -52cd346b5c26bcc29c64a15a0de52db4 \ No newline at end of file diff --git a/classJson_1_1Array__coll__graph.png b/classJson_1_1Array__coll__graph.png deleted file mode 100644 index e6180250fe..0000000000 Binary files a/classJson_1_1Array__coll__graph.png and /dev/null differ diff --git a/classJson_1_1Array__inherit__graph.map b/classJson_1_1Array__inherit__graph.map deleted file mode 100644 index b7dcd66718..0000000000 --- a/classJson_1_1Array__inherit__graph.map +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/classJson_1_1Array__inherit__graph.md5 b/classJson_1_1Array__inherit__graph.md5 deleted file mode 100644 index 7753822437..0000000000 --- a/classJson_1_1Array__inherit__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -814898d6f5a5435e97bb5baf520e1651 \ No newline at end of file diff --git a/classJson_1_1Array__inherit__graph.png b/classJson_1_1Array__inherit__graph.png deleted file mode 100644 index 1443803b8e..0000000000 Binary files a/classJson_1_1Array__inherit__graph.png and /dev/null differ diff --git a/classJson_1_1Collection-members.html b/classJson_1_1Collection-members.html deleted file mode 100644 index 2bfebcc35f..0000000000 --- a/classJson_1_1Collection-members.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::Collection Member List
-
-
- -

This is the complete list of members for Json::Collection, including all inherited members.

- - - - - - - - - - -
checkWritable(std::string const &label)Json::Collectionprotected
Collection(Collection &&c) noexceptJson::Collection
Collection()=deleteJson::Collection
Collection(Collection *parent, Writer *)Json::Collectionprotected
enabled_Json::Collectionprotected
operator=(Collection &&c) noexceptJson::Collection
parent_Json::Collectionprotected
writer_Json::Collectionprotected
~Collection()Json::Collection
- - - - diff --git a/classJson_1_1Collection.html b/classJson_1_1Collection.html deleted file mode 100644 index 6a7a65ba32..0000000000 --- a/classJson_1_1Collection.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - - -rippled: Json::Collection Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
- -
- -

#include <Object.h>

-
-Inheritance diagram for Json::Collection:
-
-
Inheritance graph
- - - - - - - - - -
[legend]
-
-Collaboration diagram for Json::Collection:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - - - - - -

-Public Member Functions

 Collection (Collection &&c) noexcept
 
Collectionoperator= (Collection &&c) noexcept
 
 Collection ()=delete
 
 ~Collection ()
 
- - - - - -

-Protected Member Functions

 Collection (Collection *parent, Writer *)
 
void checkWritable (std::string const &label)
 
- - - - - - - -

-Protected Attributes

Collectionparent_
 
Writerwriter_
 
bool enabled_
 
-

Detailed Description

-
Collection is a base class for Array and Object, classes which provide the
-facade of JSON collections for the O(1) JSON writer, while still using no
-heap memory and only a very small amount of stack.
-
-From http://json.org, JSON has two types of collection: array, and object.
-Everything else is a *scalar* - a number, a string, a boolean, the special
-value null, or a legacy Json::Value.
-
-Collections must write JSON "as-it-goes" in order to get the strong
-performance guarantees.  This puts restrictions upon API users:
-
-1. Only one collection can be open for change at any one time.
-
-   This condition is enforced automatically and a std::logic_error thrown if
-

it is violated.

-
    -
  1. A tag may only be used once in an Object.

    -

    Some objects have many tags, so this condition might be a little expensive. Enforcement of this condition is turned on in debug builds and a std::logic_error is thrown when the tag is added for a second time.

    -
  2. -
-

Code samples:

Writer writer;
-

An empty object. { Object::Root (writer); } Outputs {}

-

An object with one scalar value. { Object::Root root (writer); write["hello"] = "world"; } Outputs {"hello":"world"}

-

Same, using chaining. { Object::Root (writer)["hello"] = "world"; } Output is the same.

-

Add several scalars, with chaining. { Object::Root (writer) .set ("hello", "world") .set ("flag", false) .set ("x", 42); } Outputs {"hello":"world","flag":false,"x":42}

-

Add an array. { Object::Root root (writer); { auto array = root.setArray ("hands"); array.append ("left"); array.append ("right"); } } Outputs {"hands":["left", "right"]}

-

Same, using chaining. { Object::Root (writer) .setArray ("hands") .append ("left") .append ("right"); } Output is the same.

-

Add an object. { Object::Root root (writer); { auto object = root.setObject ("hands"); object["left"] = false; object["right"] = true; } } Outputs {"hands":{"left":false,"right":true}}

-

Same, using chaining. { Object::Root (writer) .setObject ("hands") .set ("left", false) .set ("right", true); } } Outputs {"hands":{"left":false,"right":true}}

-

Typical ways to make mistakes and get a std::logic_error:

 Writer writer;
- Object::Root root (writer);
-

Repeat a tag. { root ["hello"] = "world"; root ["hello"] = "there"; // THROWS! in a debug build. }

-

Open a subcollection, then set something else. { auto object = root.setObject ("foo"); root ["hello"] = "world"; // THROWS! }

-

Open two subcollections at a time. { auto object = root.setObject ("foo"); auto array = root.setArray ("bar"); // THROWS!! }

-

For more examples, check the unit tests.

- -

Definition at line 133 of file Object.h.

-

Constructor & Destructor Documentation

- -

◆ Collection() [1/3]

- -
-
- - - - - -
- - - - - - - - -
Json::Collection::Collection (Collection && c)
-
-noexcept
-
- -

Definition at line 46 of file Object.cpp.

- -
-
- -

◆ Collection() [2/3]

- -
-
- - - - - -
- - - - - - - -
Json::Collection::Collection ()
-
-delete
-
- -
-
- -

◆ ~Collection()

- -
-
- - - - - - - -
Json::Collection::~Collection ()
-
- -

Definition at line 24 of file Object.cpp.

- -
-
- -

◆ Collection() [3/3]

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - -
Json::Collection::Collection (Collectionparent,
Writerwriter 
)
-
-protected
-
- -

Definition at line 13 of file Object.cpp.

- -
-
-

Member Function Documentation

- -

◆ operator=()

- -
-
- - - - - -
- - - - - - - - -
Collection & Json::Collection::operator= (Collection && c)
-
-noexcept
-
- -

Definition at line 33 of file Object.cpp.

- -
-
- -

◆ checkWritable()

- -
-
- - - - - -
- - - - - - - - -
void Json::Collection::checkWritable (std::string const & label)
-
-protected
-
- -

Definition at line 52 of file Object.cpp.

- -
-
-

Member Data Documentation

- -

◆ parent_

- -
-
- - - - - -
- - - - -
Collection* Json::Collection::parent_
-
-protected
-
- -

Definition at line 150 of file Object.h.

- -
-
- -

◆ writer_

- -
-
- - - - - -
- - - - -
Writer* Json::Collection::writer_
-
-protected
-
- -

Definition at line 151 of file Object.h.

- -
-
- -

◆ enabled_

- -
-
- - - - - -
- - - - -
bool Json::Collection::enabled_
-
-protected
-
- -

Definition at line 152 of file Object.h.

- -
-
-
- - - - diff --git a/classJson_1_1Collection__coll__graph.map b/classJson_1_1Collection__coll__graph.map deleted file mode 100644 index b2c028c544..0000000000 --- a/classJson_1_1Collection__coll__graph.map +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1Collection__coll__graph.md5 b/classJson_1_1Collection__coll__graph.md5 deleted file mode 100644 index 840e1673f6..0000000000 --- a/classJson_1_1Collection__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -85c8e14418da938145053b5ca0fe95d8 \ No newline at end of file diff --git a/classJson_1_1Collection__coll__graph.png b/classJson_1_1Collection__coll__graph.png deleted file mode 100644 index d44f361bfe..0000000000 Binary files a/classJson_1_1Collection__coll__graph.png and /dev/null differ diff --git a/classJson_1_1Collection__inherit__graph.map b/classJson_1_1Collection__inherit__graph.map deleted file mode 100644 index 9afcaa204d..0000000000 --- a/classJson_1_1Collection__inherit__graph.map +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/classJson_1_1Collection__inherit__graph.md5 b/classJson_1_1Collection__inherit__graph.md5 deleted file mode 100644 index 521cffdcb6..0000000000 --- a/classJson_1_1Collection__inherit__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -143028fe9a1820c94f31a6ebdb3bd7f6 \ No newline at end of file diff --git a/classJson_1_1Collection__inherit__graph.png b/classJson_1_1Collection__inherit__graph.png deleted file mode 100644 index 01f699a834..0000000000 Binary files a/classJson_1_1Collection__inherit__graph.png and /dev/null differ diff --git a/classJson_1_1JsonObject__test-members.html b/classJson_1_1JsonObject__test-members.html deleted file mode 100644 index 9213777571..0000000000 --- a/classJson_1_1JsonObject__test-members.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::JsonObject_test Member List
-
-
- -

This is the complete list of members for Json::JsonObject_test, including all inherited members.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
abort_beast::unit_test::suiteprivate
aborted_beast::unit_test::suiteprivate
addPrefix(std::string const &message)xrpl::TestSuiteprivatestatic
arg() constbeast::unit_test::suite
except(F &&f, String const &reason)beast::unit_test::suite
except(F &&f)beast::unit_test::suite
except(F &&f, String const &reason)beast::unit_test::suite
except(F &&f)beast::unit_test::suite
expect(Condition const &shouldBeTrue)beast::unit_test::suite
expect(Condition const &shouldBeTrue, String const &reason)beast::unit_test::suite
expect(Condition const &shouldBeTrue, char const *file, int line)beast::unit_test::suite
expect(Condition const &shouldBeTrue, String const &reason, char const *file, int line)beast::unit_test::suite
expectCollectionEquals(Collection const &actual, Collection const &expected, std::string const &message="")xrpl::TestSuite
expectEquals(S actual, T expected, std::string const &message="")xrpl::TestSuite
expectException(Functor f, std::string const &message="")xrpl::TestSuite
expectException(Functor f, std::string const &message="")xrpl::TestSuite
expectNotEquals(S actual, T expected, std::string const &message="")xrpl::TestSuite
expectResult(std::string const &expected)Json::JsonObject_testprivate
xrpl::test::TestOutputSuite::expectResult(std::string const &expected, std::string const &message="")xrpl::test::TestOutputSuiteprotected
fail(String const &reason, char const *file, int line)beast::unit_test::suite
fail(std::string const &reason="")beast::unit_test::suite
logbeast::unit_test::suite
makeRoot()Json::JsonObject_testprivate
operator()(runner &r)beast::unit_test::suite
operator=(suite const &)=deletebeast::unit_test::suite
output_xrpl::test::TestOutputSuiteprotected
p_this_suite()beast::unit_test::suiteprivatestatic
pass()beast::unit_test::suite
propagate_abort()beast::unit_test::suiteprivate
run() overrideJson::JsonObject_testvirtual
runner_beast::unit_test::suiteprivate
setup(std::string const &testName)Json::JsonObject_testprivate
suite()beast::unit_test::suite
suite(suite const &)=deletebeast::unit_test::suite
testcasebeast::unit_test::suite
testFailureArray()Json::JsonObject_test
testFailureObject()Json::JsonObject_test
testKeyFailure()Json::JsonObject_test
testOneSub()Json::JsonObject_test
testSimple()Json::JsonObject_test
testSubs()Json::JsonObject_test
testSubsShort()Json::JsonObject_test
testTrivial()Json::JsonObject_test
this_suite()beast::unit_test::suitestatic
unexcept(F &&f, String const &reason)beast::unit_test::suite
unexcept(F &&f)beast::unit_test::suite
unexpected(Condition shouldBeFalse, String const &reason)beast::unit_test::suite
unexpected(Condition shouldBeFalse)beast::unit_test::suite
writer_xrpl::test::TestOutputSuiteprotected
writerObject_Json::JsonObject_testprivate
~suite()=defaultbeast::unit_test::suitevirtual
- - - - diff --git a/classJson_1_1JsonObject__test.html b/classJson_1_1JsonObject__test.html deleted file mode 100644 index 2d84c8b715..0000000000 --- a/classJson_1_1JsonObject__test.html +++ /dev/null @@ -1,1819 +0,0 @@ - - - - - - - -rippled: Json::JsonObject_test Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
- -
-
-Inheritance diagram for Json::JsonObject_test:
-
-
Inheritance graph
- - - - - - - - - -
[legend]
-
-Collaboration diagram for Json::JsonObject_test:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

void testTrivial ()
 
void testSimple ()
 
void testOneSub ()
 
void testSubs ()
 
void testSubsShort ()
 
void testFailureObject ()
 
void testFailureArray ()
 
void testKeyFailure ()
 
void run () override
 Runs the suite.
 
template<class S , class T >
bool expectEquals (S actual, T expected, std::string const &message="")
 
template<class S , class T >
bool expectNotEquals (S actual, T expected, std::string const &message="")
 
template<class Collection >
bool expectCollectionEquals (Collection const &actual, Collection const &expected, std::string const &message="")
 
template<class Exception , class Functor >
bool expectException (Functor f, std::string const &message="")
 
template<class Functor >
bool expectException (Functor f, std::string const &message="")
 
template<class = void>
void operator() (runner &r)
 Invokes the test using the specified runner.
 
template<class = void>
void pass ()
 Record a successful test condition.
 
template<class F , class String >
bool except (F &&f, String const &reason)
 
template<class F >
bool except (F &&f)
 
template<class E , class F , class String >
bool except (F &&f, String const &reason)
 
template<class E , class F >
bool except (F &&f)
 
template<class F , class String >
bool unexcept (F &&f, String const &reason)
 
template<class F >
bool unexcept (F &&f)
 
std::string const & arg () const
 Return the argument associated with the runner.
 
template<class Condition , class String >
bool unexpected (Condition shouldBeFalse, String const &reason)
 
template<class Condition >
bool unexpected (Condition shouldBeFalse)
 
template<class String >
void fail (String const &reason, char const *file, int line)
 Record a failure.
 
template<class = void>
void fail (std::string const &reason="")
 
template<class Condition >
bool expect (Condition const &shouldBeTrue)
 Evaluate a test condition.
 
template<class Condition , class String >
bool expect (Condition const &shouldBeTrue, String const &reason)
 
template<class Condition >
bool expect (Condition const &shouldBeTrue, char const *file, int line)
 
template<class Condition , class String >
bool expect (Condition const &shouldBeTrue, String const &reason, char const *file, int line)
 
- - - - -

-Static Public Member Functions

static suitethis_suite ()
 Returns the "current" running suite.
 
- - - - - - - -

-Public Attributes

log_os< char > log
 Logging output stream.
 
testcase_t testcase
 Memberspace for declaring test cases.
 
- - - -

-Protected Member Functions

void expectResult (std::string const &expected, std::string const &message="")
 
- - - - - -

-Protected Attributes

std::string output_
 
std::unique_ptr< Json::Writerwriter_
 
- - - - - - - - - -

-Private Member Functions

void setup (std::string const &testName)
 
ObjectmakeRoot ()
 
void expectResult (std::string const &expected)
 
void propagate_abort ()
 
- - - - - -

-Static Private Member Functions

static std::string addPrefix (std::string const &message)
 
static suite ** p_this_suite ()
 
- - - - - - - - - -

-Private Attributes

std::unique_ptr< WriterObjectwriterObject_
 
bool abort_ = false
 
bool aborted_ = false
 
runner * runner_ = nullptr
 
-

Detailed Description

-
-

Definition at line 8 of file Object_test.cpp.

-

Member Function Documentation

- -

◆ setup()

- -
-
- - - - - -
- - - - - - - - -
void Json::JsonObject_test::setup (std::string const & testName)
-
-private
-
- -

Definition at line 11 of file Object_test.cpp.

- -
-
- -

◆ makeRoot()

- -
-
- - - - - -
- - - - - - - -
Object & Json::JsonObject_test::makeRoot ()
-
-private
-
- -

Definition at line 20 of file Object_test.cpp.

- -
-
- -

◆ expectResult() [1/2]

- -
-
- - - - - -
- - - - - - - - -
void Json::JsonObject_test::expectResult (std::string const & expected)
-
-private
-
- -

Definition at line 28 of file Object_test.cpp.

- -
-
- -

◆ testTrivial()

- -
-
- - - - - - - -
void Json::JsonObject_test::testTrivial ()
-
- -

Definition at line 36 of file Object_test.cpp.

- -
-
- -

◆ testSimple()

- -
-
- - - - - - - -
void Json::JsonObject_test::testSimple ()
-
- -

Definition at line 48 of file Object_test.cpp.

- -
-
- -

◆ testOneSub()

- -
-
- - - - - - - -
void Json::JsonObject_test::testOneSub ()
-
- -

Definition at line 67 of file Object_test.cpp.

- -
-
- -

◆ testSubs()

- -
-
- - - - - - - -
void Json::JsonObject_test::testSubs ()
-
- -

Definition at line 78 of file Object_test.cpp.

- -
-
- -

◆ testSubsShort()

- -
-
- - - - - - - -
void Json::JsonObject_test::testSubsShort ()
-
- -

Definition at line 121 of file Object_test.cpp.

- -
-
- -

◆ testFailureObject()

- -
-
- - - - - - - -
void Json::JsonObject_test::testFailureObject ()
-
- -

Definition at line 153 of file Object_test.cpp.

- -
-
- -

◆ testFailureArray()

- -
-
- - - - - - - -
void Json::JsonObject_test::testFailureArray ()
-
- -

Definition at line 176 of file Object_test.cpp.

- -
-
- -

◆ testKeyFailure()

- -
-
- - - - - - - -
void Json::JsonObject_test::testKeyFailure ()
-
- -

Definition at line 205 of file Object_test.cpp.

- -
-
- -

◆ run()

- -
-
- - - - - -
- - - - - - - -
void Json::JsonObject_test::run ()
-
-overridevirtual
-
- -

Runs the suite.

- -

Implements beast::unit_test::suite.

- -

Definition at line 222 of file Object_test.cpp.

- -
-
- -

◆ expectResult() [2/2]

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - -
void xrpl::test::TestOutputSuite::expectResult (std::string const & expected,
std::string const & message = "" 
)
-
-protectedinherited
-
- -

Definition at line 28 of file TestOutputSuite.h.

- -
-
- -

◆ expectEquals()

- -
-
-
-template<class S , class T >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
bool xrpl::TestSuite::expectEquals (actual,
expected,
std::string const & message = "" 
)
-
-inherited
-
- -

Definition at line 15 of file TestSuite.h.

- -
-
- -

◆ expectNotEquals()

- -
-
-
-template<class S , class T >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
bool xrpl::TestSuite::expectNotEquals (actual,
expected,
std::string const & message = "" 
)
-
-inherited
-
- -

Definition at line 33 of file TestSuite.h.

- -
-
- -

◆ expectCollectionEquals()

- -
-
-
-template<class Collection >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
bool xrpl::TestSuite::expectCollectionEquals (Collection const & actual,
Collection const & expected,
std::string const & message = "" 
)
-
-inherited
-
- -

Definition at line 51 of file TestSuite.h.

- -
-
- -

◆ expectException() [1/2]

- -
-
-
-template<class Exception , class Functor >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool xrpl::TestSuite::expectException (Functor f,
std::string const & message = "" 
)
-
-inherited
-
- -

Definition at line 81 of file TestSuite.h.

- -
-
- -

◆ expectException() [2/2]

- -
-
-
-template<class Functor >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool xrpl::TestSuite::expectException (Functor f,
std::string const & message = "" 
)
-
-inherited
-
- -

Definition at line 97 of file TestSuite.h.

- -
-
- -

◆ addPrefix()

- -
-
- - - - - -
- - - - - - - - -
static std::string xrpl::TestSuite::addPrefix (std::string const & message)
-
-staticprivateinherited
-
- -

Definition at line 113 of file TestSuite.h.

- -
-
- -

◆ this_suite()

- -
-
- - - - - -
- - - - - - - -
static suite * beast::unit_test::suite::this_suite ()
-
-staticinherited
-
- -

Returns the "current" running suite.

-

If no suite is running, nullptr is returned.

- -

Definition at line 158 of file suite.h.

- -
-
- -

◆ operator()()

- -
-
-
-template<class >
- - - - - -
- - - - - - - - -
void beast::unit_test::suite::operator() (runnerr)
-
-inherited
-
- -

Invokes the test using the specified runner.

-

Data members are set up here instead of the constructor as a convenience to writing the derived class to avoid repetition of forwarded constructor arguments to the base. Normally this is called by the framework for you.

- -

Definition at line 396 of file suite.h.

- -
-
- -

◆ pass()

- -
-
-
-template<class >
- - - - - -
- - - - - - - -
void beast::unit_test::suite::pass ()
-
-inherited
-
- -

Record a successful test condition.

- -

Definition at line 508 of file suite.h.

- -
-
- -

◆ fail() [1/2]

- -
-
-
-template<class String >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
void beast::unit_test::suite::fail (String const & reason,
char const * file,
int line 
)
-
-inherited
-
- -

Record a failure.

-
Parameters
- - - - -
reasonOptional text added to the output on a failure.
fileThe source code file where the test failed.
lineThe source code line number where the test failed.
-
-
- -

Definition at line 530 of file suite.h.

- -
-
- -

◆ fail() [2/2]

- -
-
-
-template<class >
- - - - - -
- - - - - - - - -
void beast::unit_test::suite::fail (std::string const & reason = "")
-
-inherited
-
- -

Definition at line 517 of file suite.h.

- -
-
- -

◆ expect() [1/4]

- -
-
-
-template<class Condition >
- - - - - -
- - - - - - - - -
bool beast::unit_test::suite::expect (Condition const & shouldBeTrue)
-
-inherited
-
- -

Evaluate a test condition.

-

This function provides improved logging by incorporating the file name and line number into the reported output on failure, as well as additional text specified by the caller.

-
Parameters
- - - - - -
shouldBeTrueThe condition to test. The condition is evaluated in a boolean context.
reasonOptional added text to output on a failure.
fileThe source code file where the test failed.
lineThe source code line number where the test failed.
-
-
-
Returns
true if the test condition indicates success.
- -

Definition at line 226 of file suite.h.

- -
-
- -

◆ expect() [2/4]

- -
-
-
-template<class Condition , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::expect (Condition const & shouldBeTrue,
String const & reason 
)
-
-inherited
-
- -

Definition at line 413 of file suite.h.

- -
-
- -

◆ expect() [3/4]

- -
-
-
-template<class Condition >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::expect (Condition const & shouldBeTrue,
char const * file,
int line 
)
-
-inherited
-
- -

Definition at line 237 of file suite.h.

- -
-
- -

◆ expect() [4/4]

- -
-
-
-template<class Condition , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::expect (Condition const & shouldBeTrue,
String const & reason,
char const * file,
int line 
)
-
-inherited
-
- -

Definition at line 426 of file suite.h.

- -
-
- -

◆ except() [1/4]

- -
-
-
-template<class F , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::except (F && f,
String const & reason 
)
-
-inherited
-
- -

Definition at line 445 of file suite.h.

- -
-
- -

◆ except() [2/4]

- -
-
-
-template<class F >
- - - - - -
- - - - - - - - -
bool beast::unit_test::suite::except (F && f)
-
-inherited
-
- -

Definition at line 260 of file suite.h.

- -
-
- -

◆ except() [3/4]

- -
-
-
-template<class E , class F , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::except (F && f,
String const & reason 
)
-
-inherited
-
- -

Definition at line 462 of file suite.h.

- -
-
- -

◆ except() [4/4]

- -
-
-
-template<class E , class F >
- - - - - -
- - - - - - - - -
bool beast::unit_test::suite::except (F && f)
-
-inherited
-
- -

Definition at line 269 of file suite.h.

- -
-
- -

◆ unexcept() [1/2]

- -
-
-
-template<class F , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::unexcept (F && f,
String const & reason 
)
-
-inherited
-
- -

Definition at line 479 of file suite.h.

- -
-
- -

◆ unexcept() [2/2]

- -
-
-
-template<class F >
- - - - - -
- - - - - - - - -
bool beast::unit_test::suite::unexcept (F && f)
-
-inherited
-
- -

Definition at line 278 of file suite.h.

- -
-
- -

◆ arg()

- -
-
- - - - - -
- - - - - - - -
std::string const & beast::unit_test::suite::arg () const
-
-inherited
-
- -

Return the argument associated with the runner.

- -

Definition at line 285 of file suite.h.

- -
-
- -

◆ unexpected() [1/2]

- -
-
-
-template<class Condition , class String >
- - - - - -
- - - - - - - - - - - - - - - - - - -
bool beast::unit_test::suite::unexpected (Condition shouldBeFalse,
String const & reason 
)
-
-inherited
-
- -

Definition at line 496 of file suite.h.

- -
-
- -

◆ unexpected() [2/2]

- -
-
-
-template<class Condition >
- - - - - -
- - - - - - - - -
bool beast::unit_test::suite::unexpected (Condition shouldBeFalse)
-
-inherited
-
- -

Definition at line 298 of file suite.h.

- -
-
- -

◆ p_this_suite()

- -
-
- - - - - -
- - - - - - - -
static suite ** beast::unit_test::suite::p_this_suite ()
-
-staticprivateinherited
-
- -

Definition at line 307 of file suite.h.

- -
-
- -

◆ propagate_abort()

- -
-
- - - - - -
- - - - - - - -
void beast::unit_test::suite::propagate_abort ()
-
-privateinherited
-
- -

Definition at line 536 of file suite.h.

- -
-
-

Member Data Documentation

- -

◆ writerObject_

- -
-
- - - - - -
- - - - -
std::unique_ptr<WriterObject> Json::JsonObject_test::writerObject_
-
-private
-
- -

Definition at line 17 of file Object_test.cpp.

- -
-
- -

◆ output_

- -
-
- - - - - -
- - - - -
std::string xrpl::test::TestOutputSuite::output_
-
-protectedinherited
-
- -

Definition at line 15 of file TestOutputSuite.h.

- -
-
- -

◆ writer_

- -
-
- - - - - -
- - - - -
std::unique_ptr<Json::Writer> xrpl::test::TestOutputSuite::writer_
-
-protectedinherited
-
- -

Definition at line 16 of file TestOutputSuite.h.

- -
-
- -

◆ abort_

- -
-
- - - - - -
- - - - -
bool beast::unit_test::suite::abort_ = false
-
-privateinherited
-
- -

Definition at line 54 of file suite.h.

- -
-
- -

◆ aborted_

- -
-
- - - - - -
- - - - -
bool beast::unit_test::suite::aborted_ = false
-
-privateinherited
-
- -

Definition at line 55 of file suite.h.

- -
-
- -

◆ runner_

- -
-
- - - - - -
- - - - -
runner* beast::unit_test::suite::runner_ = nullptr
-
-privateinherited
-
- -

Definition at line 56 of file suite.h.

- -
-
- -

◆ log

- -
-
- - - - - -
- - - - -
log_os<char> beast::unit_test::suite::log
-
-inherited
-
- -

Logging output stream.

-

Text sent to the log output stream will be forwarded to the output stream associated with the runner.

- -

Definition at line 149 of file suite.h.

- -
-
- -

◆ testcase

- -
-
- - - - - -
- - - - -
testcase_t beast::unit_test::suite::testcase
-
-inherited
-
- -

Memberspace for declaring test cases.

- -

Definition at line 152 of file suite.h.

- -
-
-
- - - - diff --git a/classJson_1_1JsonObject__test__coll__graph.map b/classJson_1_1JsonObject__test__coll__graph.map deleted file mode 100644 index 1d1d4e5834..0000000000 --- a/classJson_1_1JsonObject__test__coll__graph.map +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1JsonObject__test__coll__graph.md5 b/classJson_1_1JsonObject__test__coll__graph.md5 deleted file mode 100644 index 42fe79755a..0000000000 --- a/classJson_1_1JsonObject__test__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -6ea1d0d7df14d763637ca1077f23d9de \ No newline at end of file diff --git a/classJson_1_1JsonObject__test__coll__graph.png b/classJson_1_1JsonObject__test__coll__graph.png deleted file mode 100644 index 449a04d7a2..0000000000 Binary files a/classJson_1_1JsonObject__test__coll__graph.png and /dev/null differ diff --git a/classJson_1_1JsonObject__test__inherit__graph.map b/classJson_1_1JsonObject__test__inherit__graph.map deleted file mode 100644 index 32d59bea33..0000000000 --- a/classJson_1_1JsonObject__test__inherit__graph.map +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/classJson_1_1JsonObject__test__inherit__graph.md5 b/classJson_1_1JsonObject__test__inherit__graph.md5 deleted file mode 100644 index 8478f06611..0000000000 --- a/classJson_1_1JsonObject__test__inherit__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -85daeffd130bec4a64b82082dabdffcf \ No newline at end of file diff --git a/classJson_1_1JsonObject__test__inherit__graph.png b/classJson_1_1JsonObject__test__inherit__graph.png deleted file mode 100644 index 6586522154..0000000000 Binary files a/classJson_1_1JsonObject__test__inherit__graph.png and /dev/null differ diff --git a/classJson_1_1Object-members.html b/classJson_1_1Object-members.html deleted file mode 100644 index c650b5c2c6..0000000000 --- a/classJson_1_1Object-members.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::Object Member List
-
-
- -

This is the complete list of members for Json::Object, including all inherited members.

- - - - - - - - - - - - - - - - - - -
ArrayJson::Objectfriend
checkWritable(std::string const &label)Json::Collectionprotected
Collection(Collection &&c) noexceptJson::Collectionprotected
Collection()=deleteJson::Collectionprotected
Collection(Collection *parent, Writer *)Json::Collectionprotected
enabled_Json::Collectionprotected
Object(Collection *parent, Writer *w)Json::Objectprotected
operator=(Collection &&c) noexceptJson::Collectionprotected
operator[](std::string const &key)Json::Object
operator[](Json::StaticString const &key)Json::Object
parent_Json::Collectionprotected
set(std::string const &key, Scalar const &)Json::Object
set(std::string const &key, Json::Value const &)Json::Object
setArray(std::string const &key)Json::Object
setObject(std::string const &key)Json::Object
writer_Json::Collectionprotected
~Collection()Json::Collectionprotected
- - - - diff --git a/classJson_1_1Object.html b/classJson_1_1Object.html deleted file mode 100644 index 1ffd16ab15..0000000000 --- a/classJson_1_1Object.html +++ /dev/null @@ -1,510 +0,0 @@ - - - - - - - -rippled: Json::Object Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
- -
- -

Represents a JSON object being written to a Writer. - More...

- -

#include <Object.h>

-
-Inheritance diagram for Json::Object:
-
-
Inheritance graph
- - - - - - - -
[legend]
-
-Collaboration diagram for Json::Object:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - -

-Classes

class  Proxy
 
class  Root
 
- - - - - - - - - - - - - - - - - -

-Public Member Functions

template<typename Scalar >
void set (std::string const &key, Scalar const &)
 Set a scalar value in the Object for a key.
 
void set (std::string const &key, Json::Value const &)
 
Proxy operator[] (std::string const &key)
 
Proxy operator[] (Json::StaticString const &key)
 
Object setObject (std::string const &key)
 Make a new Object at a key and return it.
 
Array setArray (std::string const &key)
 Make a new Array at a key and return it.
 
- - - - - -

-Protected Member Functions

 Object (Collection *parent, Writer *w)
 
void checkWritable (std::string const &label)
 
- - - - - - - -

-Protected Attributes

Collectionparent_
 
Writerwriter_
 
bool enabled_
 
- - - -

-Friends

class Array
 
-

Detailed Description

-

Represents a JSON object being written to a Writer.

- -

Definition at line 160 of file Object.h.

-

Constructor & Destructor Documentation

- -

◆ Object()

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - -
Json::Object::Object (Collectionparent,
Writerw 
)
-
-protected
-
- -

Definition at line 212 of file Object.h.

- -
-
-

Member Function Documentation

- -

◆ set() [1/2]

- -
-
-
-template<typename Scalar >
- - - - - - - - - - - - - - - - - - -
void Json::Object::set (std::string const & key,
Scalar const & value 
)
-
- -

Set a scalar value in the Object for a key.

-

A JSON scalar is a single value - a number, string, boolean, nullptr or a Json::Value.

-

set() throws an exception if this object is disabled (which means that one of its children is enabled).

-

In a debug build, set() also throws an exception if the key has already been set() before.

-

An operator[] is provided to allow writing object["key"] = scalar;.

- -

Definition at line 388 of file Object.h.

- -
-
- -

◆ set() [2/2]

- -
-
- - - - - - - - - - - - - - - - - - -
void Json::Object::set (std::string const & key,
Json::Value const & v 
)
-
- -

Definition at line 162 of file Object.cpp.

- -
-
- -

◆ operator[]() [1/2]

- -
-
- - - - - - - - -
Object::Proxy Json::Object::operator[] (std::string const & key)
-
- -

Definition at line 113 of file Object.cpp.

- -
-
- -

◆ operator[]() [2/2]

- -
-
- - - - - - - - -
Object::Proxy Json::Object::operator[] (Json::StaticString const & key)
-
- -

Definition at line 119 of file Object.cpp.

- -
-
- -

◆ setObject()

- -
-
- - - - - - - - -
Object Json::Object::setObject (std::string const & key)
-
- -

Make a new Object at a key and return it.

-

This Object is disabled until that sub-object is destroyed. Throws an exception if this Object was already disabled.

- -

Definition at line 68 of file Object.cpp.

- -
-
- -

◆ setArray()

- -
-
- - - - - - - - -
Array Json::Object::setArray (std::string const & key)
-
- -

Make a new Array at a key and return it.

-

This Object is disabled until that sub-array is destroyed. Throws an exception if this Object was already disabled.

- -

Definition at line 77 of file Object.cpp.

- -
-
- -

◆ checkWritable()

- -
-
- - - - - -
- - - - - - - - -
void Json::Collection::checkWritable (std::string const & label)
-
-protectedinherited
-
- -

Definition at line 52 of file Object.cpp.

- -
-
-

Friends And Related Symbol Documentation

- -

◆ Array

- -
-
- - - - - -
- - - - -
friend class Array
-
-friend
-
- -

Definition at line 211 of file Object.h.

- -
-
-

Member Data Documentation

- -

◆ parent_

- -
-
- - - - - -
- - - - -
Collection* Json::Collection::parent_
-
-protectedinherited
-
- -

Definition at line 150 of file Object.h.

- -
-
- -

◆ writer_

- -
-
- - - - - -
- - - - -
Writer* Json::Collection::writer_
-
-protectedinherited
-
- -

Definition at line 151 of file Object.h.

- -
-
- -

◆ enabled_

- -
-
- - - - - -
- - - - -
bool Json::Collection::enabled_
-
-protectedinherited
-
- -

Definition at line 152 of file Object.h.

- -
-
-
- - - - diff --git a/classJson_1_1Object_1_1Proxy-members.html b/classJson_1_1Object_1_1Proxy-members.html deleted file mode 100644 index c3ed95881e..0000000000 --- a/classJson_1_1Object_1_1Proxy-members.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::Object::Proxy Member List
-
-
- -

This is the complete list of members for Json::Object::Proxy, including all inherited members.

- - - - - -
key_Json::Object::Proxyprivate
object_Json::Object::Proxyprivate
operator=(T const &t)Json::Object::Proxy
Proxy(Object &object, std::string const &key)Json::Object::Proxy
- - - - diff --git a/classJson_1_1Object_1_1Proxy.html b/classJson_1_1Object_1_1Proxy.html deleted file mode 100644 index 172fc4b71b..0000000000 --- a/classJson_1_1Object_1_1Proxy.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - -rippled: Json::Object::Proxy Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
- -
Json::Object::Proxy Class Reference
-
-
- -

#include <Object.h>

-
-Collaboration diagram for Json::Object::Proxy:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - - -

-Public Member Functions

 Proxy (Object &object, std::string const &key)
 
template<class T >
void operator= (T const &t)
 
- - - - - -

-Private Attributes

Objectobject_
 
std::string const key_
 
-

Detailed Description

-
-

Definition at line 350 of file Object.h.

-

Constructor & Destructor Documentation

- -

◆ Proxy()

- -
-
- - - - - - - - - - - - - - - - - - -
Json::Object::Proxy::Proxy (Objectobject,
std::string const & key 
)
-
- -

Definition at line 107 of file Object.cpp.

- -
-
-

Member Function Documentation

- -

◆ operator=()

- -
-
-
-template<class T >
- - - - - - - - -
void Json::Object::Proxy::operator= (T const & t)
-
- -

Definition at line 361 of file Object.h.

- -
-
-

Member Data Documentation

- -

◆ object_

- -
-
- - - - - -
- - - - -
Object& Json::Object::Proxy::object_
-
-private
-
- -

Definition at line 353 of file Object.h.

- -
-
- -

◆ key_

- -
-
- - - - - -
- - - - -
std::string const Json::Object::Proxy::key_
-
-private
-
- -

Definition at line 354 of file Object.h.

- -
-
-
- - - - diff --git a/classJson_1_1Object_1_1Proxy__coll__graph.map b/classJson_1_1Object_1_1Proxy__coll__graph.map deleted file mode 100644 index 3c4e9e8930..0000000000 --- a/classJson_1_1Object_1_1Proxy__coll__graph.map +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1Object_1_1Proxy__coll__graph.md5 b/classJson_1_1Object_1_1Proxy__coll__graph.md5 deleted file mode 100644 index 8908852d7c..0000000000 --- a/classJson_1_1Object_1_1Proxy__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -39c7b63f87302fa599fe10588df13e70 \ No newline at end of file diff --git a/classJson_1_1Object_1_1Proxy__coll__graph.png b/classJson_1_1Object_1_1Proxy__coll__graph.png deleted file mode 100644 index 50076d5d91..0000000000 Binary files a/classJson_1_1Object_1_1Proxy__coll__graph.png and /dev/null differ diff --git a/classJson_1_1Object_1_1Root-members.html b/classJson_1_1Object_1_1Root-members.html deleted file mode 100644 index bb97e688c0..0000000000 --- a/classJson_1_1Object_1_1Root-members.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - -rippled: Member List - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
-
-
Json::Object::Root Member List
-
-
- -

This is the complete list of members for Json::Object::Root, including all inherited members.

- - - - - - - - - - - - - - - - - - -
checkWritable(std::string const &label)Json::Collectionprotected
Collection(Collection &&c) noexceptJson::Collectionprotected
Collection()=deleteJson::Collectionprotected
Collection(Collection *parent, Writer *)Json::Collectionprotected
enabled_Json::Collectionprotected
Object(Collection *parent, Writer *w)Json::Objectprotected
operator=(Collection &&c) noexceptJson::Collectionprotected
operator[](std::string const &key)Json::Object
operator[](Json::StaticString const &key)Json::Object
parent_Json::Collectionprotected
Root(Writer &)Json::Object::Root
set(std::string const &key, Scalar const &)Json::Object
set(std::string const &key, Json::Value const &)Json::Object
setArray(std::string const &key)Json::Object
setObject(std::string const &key)Json::Object
writer_Json::Collectionprotected
~Collection()Json::Collectionprotected
- - - - diff --git a/classJson_1_1Object_1_1Root.html b/classJson_1_1Object_1_1Root.html deleted file mode 100644 index 86e1b71001..0000000000 --- a/classJson_1_1Object_1_1Root.html +++ /dev/null @@ -1,502 +0,0 @@ - - - - - - - -rippled: Json::Object::Root Class Reference - - - - - - - - - -
-
- - - - - - -
-
rippled -
-
-
- - - - - - - - -
-
- - -
-
-
-
-
-
Loading...
-
Searching...
-
No Matches
-
-
-
-
- - -
- -
- -

#include <Object.h>

-
-Inheritance diagram for Json::Object::Root:
-
-
Inheritance graph
- - - - - - - -
[legend]
-
-Collaboration diagram for Json::Object::Root:
-
-
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - -
[legend]
- - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 Root (Writer &)
 Each Object::Root must be constructed with its own unique Writer.
 
template<typename Scalar >
void set (std::string const &key, Scalar const &)
 Set a scalar value in the Object for a key.
 
void set (std::string const &key, Json::Value const &)
 
Proxy operator[] (std::string const &key)
 
Proxy operator[] (Json::StaticString const &key)
 
Object setObject (std::string const &key)
 Make a new Object at a key and return it.
 
Array setArray (std::string const &key)
 Make a new Array at a key and return it.
 
- - - -

-Protected Member Functions

void checkWritable (std::string const &label)
 
- - - - - - - -

-Protected Attributes

Collectionparent_
 
Writerwriter_
 
bool enabled_
 
-

Detailed Description

-
-

Definition at line 217 of file Object.h.

-

Constructor & Destructor Documentation

- -

◆ Root()

- -
-
- - - - - - - - -
Json::Object::Root::Root (Writerw)
-
- -

Each Object::Root must be constructed with its own unique Writer.

- -

Definition at line 62 of file Object.cpp.

- -
-
-

Member Function Documentation

- -

◆ set() [1/2]

- -
-
-
-template<typename Scalar >
- - - - - -
- - - - - - - - - - - - - - - - - - -
void Json::Object::set (std::string const & key,
Scalar const & value 
)
-
-inherited
-
- -

Set a scalar value in the Object for a key.

-

A JSON scalar is a single value - a number, string, boolean, nullptr or a Json::Value.

-

set() throws an exception if this object is disabled (which means that one of its children is enabled).

-

In a debug build, set() also throws an exception if the key has already been set() before.

-

An operator[] is provided to allow writing object["key"] = scalar;.

- -

Definition at line 388 of file Object.h.

- -
-
- -

◆ set() [2/2]

- -
-
- - - - - -
- - - - - - - - - - - - - - - - - - -
void Json::Object::set (std::string const & key,
Json::Value const & v 
)
-
-inherited
-
- -

Definition at line 162 of file Object.cpp.

- -
-
- -

◆ operator[]() [1/2]

- -
-
- - - - - -
- - - - - - - - -
Object::Proxy Json::Object::operator[] (std::string const & key)
-
-inherited
-
- -

Definition at line 113 of file Object.cpp.

- -
-
- -

◆ operator[]() [2/2]

- -
-
- - - - - -
- - - - - - - - -
Object::Proxy Json::Object::operator[] (Json::StaticString const & key)
-
-inherited
-
- -

Definition at line 119 of file Object.cpp.

- -
-
- -

◆ setObject()

- -
-
- - - - - -
- - - - - - - - -
Object Json::Object::setObject (std::string const & key)
-
-inherited
-
- -

Make a new Object at a key and return it.

-

This Object is disabled until that sub-object is destroyed. Throws an exception if this Object was already disabled.

- -

Definition at line 68 of file Object.cpp.

- -
-
- -

◆ setArray()

- -
-
- - - - - -
- - - - - - - - -
Array Json::Object::setArray (std::string const & key)
-
-inherited
-
- -

Make a new Array at a key and return it.

-

This Object is disabled until that sub-array is destroyed. Throws an exception if this Object was already disabled.

- -

Definition at line 77 of file Object.cpp.

- -
-
- -

◆ checkWritable()

- -
-
- - - - - -
- - - - - - - - -
void Json::Collection::checkWritable (std::string const & label)
-
-protectedinherited
-
- -

Definition at line 52 of file Object.cpp.

- -
-
-

Member Data Documentation

- -

◆ parent_

- -
-
- - - - - -
- - - - -
Collection* Json::Collection::parent_
-
-protectedinherited
-
- -

Definition at line 150 of file Object.h.

- -
-
- -

◆ writer_

- -
-
- - - - - -
- - - - -
Writer* Json::Collection::writer_
-
-protectedinherited
-
- -

Definition at line 151 of file Object.h.

- -
-
- -

◆ enabled_

- -
-
- - - - - -
- - - - -
bool Json::Collection::enabled_
-
-protectedinherited
-
- -

Definition at line 152 of file Object.h.

- -
-
-
- - - - diff --git a/classJson_1_1Object_1_1Root__coll__graph.map b/classJson_1_1Object_1_1Root__coll__graph.map deleted file mode 100644 index 33d3256c78..0000000000 --- a/classJson_1_1Object_1_1Root__coll__graph.map +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1Object_1_1Root__coll__graph.md5 b/classJson_1_1Object_1_1Root__coll__graph.md5 deleted file mode 100644 index 8711effed1..0000000000 --- a/classJson_1_1Object_1_1Root__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -cbea129dea552eefeb964ecc0acd4aad \ No newline at end of file diff --git a/classJson_1_1Object_1_1Root__coll__graph.png b/classJson_1_1Object_1_1Root__coll__graph.png deleted file mode 100644 index 69c69d677d..0000000000 Binary files a/classJson_1_1Object_1_1Root__coll__graph.png and /dev/null differ diff --git a/classJson_1_1Object_1_1Root__inherit__graph.map b/classJson_1_1Object_1_1Root__inherit__graph.map deleted file mode 100644 index fdd3eb503d..0000000000 --- a/classJson_1_1Object_1_1Root__inherit__graph.map +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/classJson_1_1Object_1_1Root__inherit__graph.md5 b/classJson_1_1Object_1_1Root__inherit__graph.md5 deleted file mode 100644 index d36290cb60..0000000000 --- a/classJson_1_1Object_1_1Root__inherit__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -e5efc002ca4faa69d384778544d6bdc4 \ No newline at end of file diff --git a/classJson_1_1Object_1_1Root__inherit__graph.png b/classJson_1_1Object_1_1Root__inherit__graph.png deleted file mode 100644 index 9e4b33b675..0000000000 Binary files a/classJson_1_1Object_1_1Root__inherit__graph.png and /dev/null differ diff --git a/classJson_1_1Object__coll__graph.map b/classJson_1_1Object__coll__graph.map deleted file mode 100644 index 9f6dffd0ee..0000000000 --- a/classJson_1_1Object__coll__graph.map +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classJson_1_1Object__coll__graph.md5 b/classJson_1_1Object__coll__graph.md5 deleted file mode 100644 index 672771a1da..0000000000 --- a/classJson_1_1Object__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -99fc4aa8b6f4be4eed7cdad6b8a48574 \ No newline at end of file diff --git a/classJson_1_1Object__coll__graph.png b/classJson_1_1Object__coll__graph.png deleted file mode 100644 index 767faf0b6e..0000000000 Binary files a/classJson_1_1Object__coll__graph.png and /dev/null differ diff --git a/classJson_1_1Object__inherit__graph.map b/classJson_1_1Object__inherit__graph.map deleted file mode 100644 index a15a33333b..0000000000 --- a/classJson_1_1Object__inherit__graph.map +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/classJson_1_1Object__inherit__graph.md5 b/classJson_1_1Object__inherit__graph.md5 deleted file mode 100644 index 3a7b816df6..0000000000 --- a/classJson_1_1Object__inherit__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -a0cfbcd0b1719f0f28ca3a0f3fc95ed8 \ No newline at end of file diff --git a/classJson_1_1Object__inherit__graph.png b/classJson_1_1Object__inherit__graph.png deleted file mode 100644 index b4e6764faa..0000000000 Binary files a/classJson_1_1Object__inherit__graph.png and /dev/null differ diff --git a/classJson_1_1StyledStreamWriter.html b/classJson_1_1StyledStreamWriter.html index 773676f4ea..bec502b74a 100644 --- a/classJson_1_1StyledStreamWriter.html +++ b/classJson_1_1StyledStreamWriter.html @@ -163,12 +163,12 @@ Private Attributes

Detailed Description

Writes a Value in JSON format in a human friendly way, to a stream rather than to a string.

The rules for line break and indent are as follow:

diff --git a/classbeast_1_1unit__test_1_1suite.html b/classbeast_1_1unit__test_1_1suite.html index 6709ab64d7..42edb00bed 100644 --- a/classbeast_1_1unit__test_1_1suite.html +++ b/classbeast_1_1unit__test_1_1suite.html @@ -953,7 +953,7 @@ template<class Condition >

Runs the suite.

-

Implemented in xrpl::test::AccountDelete_test, xrpl::AccountTxPaging_test, xrpl::AmendmentTable_test, xrpl::test::AMM_test, xrpl::test::AMMCalc_test, xrpl::test::AMMClawback_test, xrpl::test::AMMExtended_test, xrpl::test::Batch_test, xrpl::Check_test, xrpl::Clawback_test, xrpl::test::Credentials_test, xrpl::test::CrossingLimits_test, xrpl::test::Delegate_test, xrpl::test::DeliverMin_test, xrpl::test::DepositAuth_test, xrpl::test::DepositPreauth_test, xrpl::test::DID_test, xrpl::Discrepancy_test, xrpl::test::DNS_test, xrpl::test::Escrow_test, xrpl::test::EscrowToken_test, xrpl::test::FeeVote_test, xrpl::FixNFTokenPageLinks_test, xrpl::test::Flow_test, xrpl::test::Flow_manual_test, xrpl::Freeze_test, xrpl::test::HashRouter_test, xrpl::test::Invariants_test, xrpl::test::LedgerHistory_test, xrpl::LedgerLoad_test, xrpl::test::LedgerMaster_test, xrpl::test::LedgerReplay_test, xrpl::test::LedgerReplayer_test, xrpl::test::LedgerReplayerTimeout_test, xrpl::test::LedgerReplayerLong_test, xrpl::LoadFeeTrack_test, xrpl::test::Loan_test, xrpl::test::LoanBatch_test, xrpl::test::LoanArbitrary_test, xrpl::test::LoanBroker_test, xrpl::test::LPTokenTransfer_test, xrpl::test::Manifest_test, xrpl::test::MPToken_test, xrpl::test::MultiSign_test, xrpl::test::NetworkID_test, xrpl::test::NetworkOPs_test, xrpl::NFTokenBaseUtil_test, xrpl::NFTokenDisallowIncoming_test, xrpl::NFTokenWOMintOffer_test, xrpl::NFTokenWOModify_test, xrpl::NFTokenAllFeatures_test, xrpl::NFTokenAuth_test, xrpl::NFTokenBurn_test, xrpl::NFTokenDir_test, xrpl::test::OfferBaseUtil_test, xrpl::test::OfferWOSmallQOffers_test, xrpl::test::OfferAllFeatures_test, xrpl::test::Offer_manual_test, xrpl::OfferStream_test, xrpl::test::jtx::oracle::Oracle_test, xrpl::test::PlumpBook_test, xrpl::test::ThinBook_test, xrpl::test::OversizeMeta_test, xrpl::test::FindOversizeCross_test, xrpl::test::Path_test, xrpl::test::PayChan_test, xrpl::test::PayStrand_test, xrpl::test::PermissionedDEX_test, xrpl::test::PermissionedDomains_test, xrpl::test::PseudoTx_test, xrpl::test::RCLValidations_test, xrpl::test::ReducedOffer_test, xrpl::test::Regression_test, xrpl::test::SetAuth_test, xrpl::SetRegularKey_test, xrpl::test::SetTrust_test, xrpl::test::SHAMapStore_test, xrpl::test::TheoreticalQuality_test, xrpl::Ticket_test, xrpl::test::Transaction_ordering_test, xrpl::TrustAndBalance_test, xrpl::Apply_test, xrpl::test::TxQPosNegFlows_test, xrpl::test::TxQMetaInfo_test, xrpl::test::ValidatorKeys_test, xrpl::test::ValidatorList_test, xrpl::test::ValidatorSite_test, xrpl::Vault_test, xrpl::test::XChain_test, xrpl::test::XChainSim_test, xrpl::test::base_uint_test, xrpl::test::Buffer_test, xrpl::test::DetectCrash_test, xrpl::test::Expected_test, xrpl::FileUtilities_test, xrpl::hardened_hash_test, xrpl::tests::IntrusiveShared_test, xrpl::IOUAmount_test, xrpl::test::join_test, xrpl::KeyCache_test, xrpl::Number_test, xrpl::PerfLog_test, xrpl::StringUtilities_test, xrpl::TaggedCache_test, xrpl::test::units_test, xrpl::XRPAmount_test, beast::aged_set_test, beast::aged_map_test, beast::aged_multiset_test, beast::aged_multimap_test, beast::aged_unordered_set_test, beast::aged_unordered_map_test, beast::aged_unordered_multiset_test, beast::aged_unordered_multimap_test, beast::abstract_clock_test, beast::basic_seconds_clock_test, xrpl::test::CurrentThreadName_test, io_latency_probe_test, beast::Journal_test, beast::PropertyStream_test, beast::Zero_test, beast::unit_test::print_test, beast::IP::IPEndpoint_test, beast::LexicalCast_test, beast::SemanticVersion_test, beast::XXHasher_test, xrpl::cryptoconditions::PreimageSha256_test, xrpl::test::ByzantineFailureSim_test, xrpl::test::Consensus_test, xrpl::test::DistributedValidators_test, xrpl::test::LedgerTiming_test, xrpl::test::LedgerTrie_test, xrpl::test::NegativeUNL_test, xrpl::test::NegativeUNLVoteInternal_test, xrpl::test::NegativeUNLVoteScoreTable_test, xrpl::test::NegativeUNLVoteGoodScore_test, xrpl::test::NegativeUNLVoteOffline_test, xrpl::test::NegativeUNLVoteMaxListed_test, xrpl::test::NegativeUNLVoteRetiredValidator_test, xrpl::test::NegativeUNLVoteNewValidator_test, xrpl::test::NegativeUNLVoteFilterValidations_test, xrpl::test::RCLCensorshipDetector_test, xrpl::test::ScaleFreeSim_test, xrpl::test::csf::Validations_test, xrpl::test::ClosureCounter_test, xrpl::Config_test, xrpl::test::Coroutine_test, xrpl::test::JobQueue_test, xrpl::SociDB_test, xrpl::Workers_test, xrpl::test::BasicNetwork_test, xrpl::test::Digraph_test, xrpl::test::Histogram_test, xrpl::test::Scheduler_test, Json::JsonObject_test, xrpl::test::Env_test, xrpl::test::WSClient_test, xrpl::test::BookDirs_test, xrpl::test::Directory_test, xrpl::test::PaymentSandbox_test, xrpl::test::PendingSaves_test, xrpl::test::SkipList_test, xrpl::test::View_test, xrpl::test::GetAmendments_test, xrpl::NodeStore::Backend_test, xrpl::NodeStore::NodeStoreBasic_test, xrpl::NodeStore::Database_test, xrpl::NodeStore::NuDBFactory_test, xrpl::NodeStore::Timing_test, xrpl::NodeStore::tests::varint_test, xrpl::tests::cluster_test, xrpl::test::compression_test, xrpl::test::handshake_test, xrpl::ProtocolVersion_test, xrpl::test::reduce_relay_test, xrpl::test::reduce_relay_simulate_test, xrpl::short_read_test, xrpl::test::traffic_count_test, xrpl::test::tx_reduce_relay_test, xrpl::PeerFinder::Livecache_test, xrpl::PeerFinder::PeerFinder_test, xrpl::test::ApiVersion_test, xrpl::BuildInfo_test, xrpl::Hooks_test, xrpl::InnerObjectFormatsParsedJSON_test, xrpl::Issue_test, xrpl::Memo_test, xrpl::test::MultiApiJson_test, xrpl::PublicKey_test, xrpl::Quality_test, xrpl::SecretKey_test, xrpl::Seed_test, xrpl::SeqProxy_test, xrpl::Serializer_test, xrpl::STAccount_test, xrpl::STAmount_test, xrpl::STInteger_test, xrpl::test::STIssue_test, xrpl::STNumber_test, xrpl::STObject_test, xrpl::STParsedJSON_test, xrpl::STTx_test, xrpl::InnerObjectFormatsSerializer_test, xrpl::STValidation_test, xrpl::TER_test, xrpl::Resource::ResourceManager_test, xrpl::AccountCurrencies_test, xrpl::test::AccountInfo_test, xrpl::RPC::AccountLines_test, xrpl::test::AccountObjects_test, xrpl::test::AccountOffers_test, xrpl::AccountSet_test, xrpl::test::AccountTx_test, xrpl::AmendmentBlocked_test, xrpl::test::AMMInfo_test, xrpl::test::Book_test, xrpl::test::BookChanges_test, xrpl::Connect_test, xrpl::test::DeliveredAmount_test, xrpl::test::DepositAuthorized_test, xrpl::Feature_test, xrpl::test::GatewayBalances_test, xrpl::test::jtx::oracle::GetAggregatePrice_test, xrpl::GetCounts_test, xrpl::test::Handler_test, xrpl::RPC::JSONRPC_test, xrpl::RPC::WalletPropose_test, xrpl::LedgerClosed_test, xrpl::LedgerData_test, xrpl::test::LedgerEntry_test, xrpl::test::LedgerEntry_XChain_test, xrpl::LedgerHeader_test, xrpl::RPC::LedgerRequest_test, xrpl::test::LedgerRPC_test, xrpl::test::ManifestRPC_test, xrpl::test::NoRipple_test, xrpl::NoRippleCheck_test, xrpl::NoRippleCheckLimits_test, xrpl::OwnerInfo_test, xrpl::Peers_test, xrpl::test::RobustTransaction_test, xrpl::test::Roles_test, xrpl::test::RPCCall_test, xrpl::test::RPCHelpers_test, xrpl::test::RPCOverload_test, xrpl::test::ServerDefinitions_test, xrpl::test::ServerInfo_test, xrpl::test::Simulate_test, xrpl::RPC::codeString_test, xrpl::RPC::fillJson_test, xrpl::test::Subscribe_test, xrpl::Transaction_test, xrpl::TransactionEntry_test, xrpl::TransactionHistory_test, xrpl::test::ValidatorInfo_test, xrpl::test::ValidatorRPC_test, xrpl::Version_test, xrpl::test::Server_test, xrpl::test::ServerStatus_test, xrpl::tests::FetchPack_test, xrpl::tests::SHAMap_test, xrpl::tests::SHAMapPathProof_test, and xrpl::tests::SHAMapSync_test.

+

Implemented in xrpl::test::AccountDelete_test, xrpl::AccountTxPaging_test, xrpl::AmendmentTable_test, xrpl::test::AMM_test, xrpl::test::AMMCalc_test, xrpl::test::AMMClawback_test, xrpl::test::AMMExtended_test, xrpl::test::Batch_test, xrpl::Check_test, xrpl::Clawback_test, xrpl::test::Credentials_test, xrpl::test::CrossingLimits_test, xrpl::test::Delegate_test, xrpl::test::DeliverMin_test, xrpl::test::DepositAuth_test, xrpl::test::DepositPreauth_test, xrpl::test::DID_test, xrpl::Discrepancy_test, xrpl::test::DNS_test, xrpl::test::Escrow_test, xrpl::test::EscrowToken_test, xrpl::test::FeeVote_test, xrpl::FixNFTokenPageLinks_test, xrpl::test::Flow_test, xrpl::test::Flow_manual_test, xrpl::Freeze_test, xrpl::test::HashRouter_test, xrpl::test::Invariants_test, xrpl::test::LedgerHistory_test, xrpl::LedgerLoad_test, xrpl::test::LedgerMaster_test, xrpl::test::LedgerReplay_test, xrpl::test::LedgerReplayer_test, xrpl::test::LedgerReplayerTimeout_test, xrpl::test::LedgerReplayerLong_test, xrpl::LoadFeeTrack_test, xrpl::test::Loan_test, xrpl::test::LoanBatch_test, xrpl::test::LoanArbitrary_test, xrpl::test::LoanBroker_test, xrpl::test::LPTokenTransfer_test, xrpl::test::Manifest_test, xrpl::test::MPToken_test, xrpl::test::MultiSign_test, xrpl::test::NetworkID_test, xrpl::test::NetworkOPs_test, xrpl::NFTokenBaseUtil_test, xrpl::NFTokenDisallowIncoming_test, xrpl::NFTokenWOMintOffer_test, xrpl::NFTokenWOModify_test, xrpl::NFTokenAllFeatures_test, xrpl::NFTokenAuth_test, xrpl::NFTokenBurn_test, xrpl::NFTokenDir_test, xrpl::test::OfferBaseUtil_test, xrpl::test::OfferWOSmallQOffers_test, xrpl::test::OfferAllFeatures_test, xrpl::test::Offer_manual_test, xrpl::OfferStream_test, xrpl::test::jtx::oracle::Oracle_test, xrpl::test::PlumpBook_test, xrpl::test::ThinBook_test, xrpl::test::OversizeMeta_test, xrpl::test::FindOversizeCross_test, xrpl::test::Path_test, xrpl::test::PayChan_test, xrpl::test::PayStrand_test, xrpl::test::PermissionedDEX_test, xrpl::test::PermissionedDomains_test, xrpl::test::PseudoTx_test, xrpl::test::RCLValidations_test, xrpl::test::ReducedOffer_test, xrpl::test::Regression_test, xrpl::test::SetAuth_test, xrpl::SetRegularKey_test, xrpl::test::SetTrust_test, xrpl::test::SHAMapStore_test, xrpl::test::TheoreticalQuality_test, xrpl::Ticket_test, xrpl::test::Transaction_ordering_test, xrpl::TrustAndBalance_test, xrpl::Apply_test, xrpl::test::TxQPosNegFlows_test, xrpl::test::TxQMetaInfo_test, xrpl::test::ValidatorKeys_test, xrpl::test::ValidatorList_test, xrpl::test::ValidatorSite_test, xrpl::Vault_test, xrpl::test::XChain_test, xrpl::test::XChainSim_test, xrpl::test::base_uint_test, xrpl::test::Buffer_test, xrpl::test::DetectCrash_test, xrpl::test::Expected_test, xrpl::FileUtilities_test, xrpl::hardened_hash_test, xrpl::tests::IntrusiveShared_test, xrpl::IOUAmount_test, xrpl::test::join_test, xrpl::KeyCache_test, xrpl::Number_test, xrpl::PerfLog_test, xrpl::StringUtilities_test, xrpl::TaggedCache_test, xrpl::test::units_test, xrpl::XRPAmount_test, beast::aged_set_test, beast::aged_map_test, beast::aged_multiset_test, beast::aged_multimap_test, beast::aged_unordered_set_test, beast::aged_unordered_map_test, beast::aged_unordered_multiset_test, beast::aged_unordered_multimap_test, beast::abstract_clock_test, beast::basic_seconds_clock_test, xrpl::test::CurrentThreadName_test, io_latency_probe_test, beast::Journal_test, beast::PropertyStream_test, beast::Zero_test, beast::unit_test::print_test, beast::IP::IPEndpoint_test, beast::LexicalCast_test, beast::SemanticVersion_test, beast::XXHasher_test, xrpl::cryptoconditions::PreimageSha256_test, xrpl::test::ByzantineFailureSim_test, xrpl::test::Consensus_test, xrpl::test::DistributedValidators_test, xrpl::test::LedgerTiming_test, xrpl::test::LedgerTrie_test, xrpl::test::NegativeUNL_test, xrpl::test::NegativeUNLVoteInternal_test, xrpl::test::NegativeUNLVoteScoreTable_test, xrpl::test::NegativeUNLVoteGoodScore_test, xrpl::test::NegativeUNLVoteOffline_test, xrpl::test::NegativeUNLVoteMaxListed_test, xrpl::test::NegativeUNLVoteRetiredValidator_test, xrpl::test::NegativeUNLVoteNewValidator_test, xrpl::test::NegativeUNLVoteFilterValidations_test, xrpl::test::RCLCensorshipDetector_test, xrpl::test::ScaleFreeSim_test, xrpl::test::csf::Validations_test, xrpl::test::ClosureCounter_test, xrpl::Config_test, xrpl::test::Coroutine_test, xrpl::test::JobQueue_test, xrpl::SociDB_test, xrpl::Workers_test, xrpl::test::BasicNetwork_test, xrpl::test::Digraph_test, xrpl::test::Histogram_test, xrpl::test::Scheduler_test, xrpl::test::Env_test, xrpl::test::WSClient_test, xrpl::test::BookDirs_test, xrpl::test::Directory_test, xrpl::test::PaymentSandbox_test, xrpl::test::PendingSaves_test, xrpl::test::SkipList_test, xrpl::test::View_test, xrpl::test::GetAmendments_test, xrpl::NodeStore::Backend_test, xrpl::NodeStore::NodeStoreBasic_test, xrpl::NodeStore::Database_test, xrpl::NodeStore::NuDBFactory_test, xrpl::NodeStore::Timing_test, xrpl::NodeStore::tests::varint_test, xrpl::tests::cluster_test, xrpl::test::compression_test, xrpl::test::handshake_test, xrpl::ProtocolVersion_test, xrpl::test::reduce_relay_test, xrpl::test::reduce_relay_simulate_test, xrpl::short_read_test, xrpl::test::traffic_count_test, xrpl::test::tx_reduce_relay_test, xrpl::PeerFinder::Livecache_test, xrpl::PeerFinder::PeerFinder_test, xrpl::test::ApiVersion_test, xrpl::BuildInfo_test, xrpl::Hooks_test, xrpl::InnerObjectFormatsParsedJSON_test, xrpl::Issue_test, xrpl::Memo_test, xrpl::test::MultiApiJson_test, xrpl::PublicKey_test, xrpl::Quality_test, xrpl::SecretKey_test, xrpl::Seed_test, xrpl::SeqProxy_test, xrpl::Serializer_test, xrpl::STAccount_test, xrpl::STAmount_test, xrpl::STInteger_test, xrpl::test::STIssue_test, xrpl::STNumber_test, xrpl::STObject_test, xrpl::STParsedJSON_test, xrpl::STTx_test, xrpl::InnerObjectFormatsSerializer_test, xrpl::STValidation_test, xrpl::TER_test, xrpl::Resource::ResourceManager_test, xrpl::AccountCurrencies_test, xrpl::test::AccountInfo_test, xrpl::RPC::AccountLines_test, xrpl::test::AccountObjects_test, xrpl::test::AccountOffers_test, xrpl::AccountSet_test, xrpl::test::AccountTx_test, xrpl::AmendmentBlocked_test, xrpl::test::AMMInfo_test, xrpl::test::Book_test, xrpl::test::BookChanges_test, xrpl::Connect_test, xrpl::test::DeliveredAmount_test, xrpl::test::DepositAuthorized_test, xrpl::Feature_test, xrpl::test::GatewayBalances_test, xrpl::test::jtx::oracle::GetAggregatePrice_test, xrpl::GetCounts_test, xrpl::test::Handler_test, xrpl::RPC::JSONRPC_test, xrpl::RPC::WalletPropose_test, xrpl::LedgerClosed_test, xrpl::LedgerData_test, xrpl::test::LedgerEntry_test, xrpl::test::LedgerEntry_XChain_test, xrpl::LedgerHeader_test, xrpl::RPC::LedgerRequest_test, xrpl::test::LedgerRPC_test, xrpl::test::ManifestRPC_test, xrpl::test::NoRipple_test, xrpl::NoRippleCheck_test, xrpl::NoRippleCheckLimits_test, xrpl::OwnerInfo_test, xrpl::Peers_test, xrpl::test::RobustTransaction_test, xrpl::test::Roles_test, xrpl::test::RPCCall_test, xrpl::test::RPCHelpers_test, xrpl::test::RPCOverload_test, xrpl::test::ServerDefinitions_test, xrpl::test::ServerInfo_test, xrpl::test::Simulate_test, xrpl::RPC::codeString_test, xrpl::RPC::fillJson_test, xrpl::test::Subscribe_test, xrpl::Transaction_test, xrpl::TransactionEntry_test, xrpl::TransactionHistory_test, xrpl::test::ValidatorInfo_test, xrpl::test::ValidatorRPC_test, xrpl::Version_test, xrpl::test::Server_test, xrpl::test::ServerStatus_test, xrpl::tests::FetchPack_test, xrpl::tests::SHAMap_test, xrpl::tests::SHAMapPathProof_test, and xrpl::tests::SHAMapSync_test.

diff --git a/classes.html b/classes.html index af59121300..3c32ca5ecb 100644 --- a/classes.html +++ b/classes.html @@ -76,13 +76,13 @@ $(function() {
A
-
suite::abort_exception (beast::unit_test)
abstract_clock (beast)
abstract_clock_test (beast)
abstract_clock_wrapper (beast::detail)
AbstractClient (xrpl::test)
AbstractFetchPackContainer (xrpl)
AcceptedLedger (xrpl)
AcceptedLedgerTx (xrpl)
AcceptLedger (xrpl::test::csf)
short_read_test::Server::Acceptor (xrpl)
Account (xrpl::test::jtx)
account_txn_id (xrpl::test::jtx)
XChainSim_test::AccountCreate (xrpl::test)
AccountCurrencies_test (xrpl)
AccountDelete_test (xrpl::test)
AccountIdCache (xrpl::detail)
accountIDField (xrpl::test::jtx)
AccountIDTag (xrpl::detail)
AccountInfo_test (xrpl::test)
RippleLineCache::AccountKey (xrpl)
AccountLines_test (xrpl::RPC)
AccountObjects_test (xrpl::test)
AccountOffers_test (xrpl::test)
AccountRootsDeletedClean (xrpl)
AccountRootsNotDeleted (xrpl)
AccountSet_test (xrpl)
AccountStateSF (xrpl)
XChainSim_test::AccountStateTrack (xrpl::test)
AccountTx_test (xrpl::test)
RelationalDatabase::AccountTxArgs (xrpl)
RelationalDatabase::AccountTxMarker (xrpl)
RelationalDatabase::AccountTxOptions (xrpl)
RelationalDatabase::AccountTxPageOptions (xrpl)
AccountTxPaging_test (xrpl)
RelationalDatabase::AccountTxResult (xrpl)
RCLConsensus::Adaptor (xrpl)
Validations_test::Adaptor (xrpl::test::csf)
DeferredCredits::Adjustment (xrpl::detail)
adl_tester (beast)
adl_tester2 (beast::inner_adl_test)
aged_associative_container_extract_t (beast::detail)
aged_associative_container_extract_t< false > (beast::detail)
aged_associative_container_test_base (beast)
aged_container_iterator (beast::detail)
aged_map_test (beast)
aged_multimap_test (beast)
aged_multiset_test (beast)
aged_ordered_container (beast)
aged_ordered_container (beast::detail)
aged_set_test (beast)
aged_unordered_container (beast::detail)
aged_unordered_map_test (beast)
aged_unordered_multimap_test (beast)
aged_unordered_multiset_test (beast)
aged_unordered_set_test (beast)
aged_associative_container_test_base::AllocT (beast)
AmendmentBlocked_test (xrpl)
AmendmentSet (xrpl)
AmendmentState (xrpl)
AmendmentTable (xrpl)
AmendmentTable_test (xrpl)
AmendmentTableImpl (xrpl)
AMM (xrpl::test::jtx)
AMM_test (xrpl::test)
AMMBid (xrpl)
AMMCalc_test (xrpl::test)
AMMClawback (xrpl)
AMMClawback_test (xrpl::test)
AMMContext (xrpl)
AMMCreate (xrpl)
AMMDelete (xrpl)
AMMDeposit (xrpl)
AMMExtended_test (xrpl::test)
AMMInfo_test (xrpl::test)
AMMLiquidity (xrpl)
AMMOffer (xrpl)
QualityFunction::AMMTag (xrpl)
AMMTest (xrpl::test::jtx)
AMMTestBase (xrpl::test::jtx)
AMMVote (xrpl)
AMMWithdraw (xrpl)
amount (beast::unit_test)
amount (xrpl::test::jtx::token)
AmountSpec (xrpl)
CollectorRef::Any (xrpl::test::csf)
any_t (xrpl::test::jtx)
AnyAmount (xrpl::test::jtx)
ApiVersion_test (xrpl::test)
Env::AppBundle (xrpl::test::jtx)
Application (xrpl)
ApplicationImp (xrpl)
Apply_test (xrpl)
ApplyContext (xrpl)
ApplyResult (xrpl)
ApplyStateTable (xrpl::detail)
ApplyView (xrpl)
ApplyViewBase (xrpl::detail)
ApplyViewImpl (xrpl)
Array (Json)
as (xrpl::test::jtx::delegate)
Asset (xrpl)
Checker::async_op (xrpl::PeerFinder)
AsyncObject (xrpl)
AttestationBase (xrpl::Attestations)
AttestationClaim (xrpl::Attestations)
AttestationCreateAccount (xrpl::Attestations)
AuthorizeCredentials (xrpl::test::jtx::deposit)
autofill_t (xrpl::test::jtx)
AutoSocket
ConsensusParms::AvalancheCutoff (xrpl)
+
suite::abort_exception (beast::unit_test)
abstract_clock (beast)
abstract_clock_test (beast)
abstract_clock_wrapper (beast::detail)
AbstractClient (xrpl::test)
AbstractFetchPackContainer (xrpl)
AcceptedLedger (xrpl)
AcceptedLedgerTx (xrpl)
AcceptLedger (xrpl::test::csf)
short_read_test::Server::Acceptor (xrpl)
Account (xrpl::test::jtx)
account_txn_id (xrpl::test::jtx)
XChainSim_test::AccountCreate (xrpl::test)
AccountCurrencies_test (xrpl)
AccountDelete_test (xrpl::test)
AccountIdCache (xrpl::detail)
accountIDField (xrpl::test::jtx)
AccountIDTag (xrpl::detail)
AccountInfo_test (xrpl::test)
RippleLineCache::AccountKey (xrpl)
AccountLines_test (xrpl::RPC)
AccountObjects_test (xrpl::test)
AccountOffers_test (xrpl::test)
AccountRootsDeletedClean (xrpl)
AccountRootsNotDeleted (xrpl)
AccountSet_test (xrpl)
AccountStateSF (xrpl)
XChainSim_test::AccountStateTrack (xrpl::test)
AccountTx_test (xrpl::test)
RelationalDatabase::AccountTxArgs (xrpl)
RelationalDatabase::AccountTxMarker (xrpl)
RelationalDatabase::AccountTxOptions (xrpl)
RelationalDatabase::AccountTxPageOptions (xrpl)
AccountTxPaging_test (xrpl)
RelationalDatabase::AccountTxResult (xrpl)
RCLConsensus::Adaptor (xrpl)
Validations_test::Adaptor (xrpl::test::csf)
DeferredCredits::Adjustment (xrpl::detail)
adl_tester (beast)
adl_tester2 (beast::inner_adl_test)
aged_associative_container_extract_t (beast::detail)
aged_associative_container_extract_t< false > (beast::detail)
aged_associative_container_test_base (beast)
aged_container_iterator (beast::detail)
aged_map_test (beast)
aged_multimap_test (beast)
aged_multiset_test (beast)
aged_ordered_container (beast)
aged_ordered_container (beast::detail)
aged_set_test (beast)
aged_unordered_container (beast::detail)
aged_unordered_map_test (beast)
aged_unordered_multimap_test (beast)
aged_unordered_multiset_test (beast)
aged_unordered_set_test (beast)
aged_associative_container_test_base::AllocT (beast)
AmendmentBlocked_test (xrpl)
AmendmentSet (xrpl)
AmendmentState (xrpl)
AmendmentTable (xrpl)
AmendmentTable_test (xrpl)
AmendmentTableImpl (xrpl)
AMM (xrpl::test::jtx)
AMM_test (xrpl::test)
AMMBid (xrpl)
AMMCalc_test (xrpl::test)
AMMClawback (xrpl)
AMMClawback_test (xrpl::test)
AMMContext (xrpl)
AMMCreate (xrpl)
AMMDelete (xrpl)
AMMDeposit (xrpl)
AMMExtended_test (xrpl::test)
AMMInfo_test (xrpl::test)
AMMLiquidity (xrpl)
AMMOffer (xrpl)
QualityFunction::AMMTag (xrpl)
AMMTest (xrpl::test::jtx)
AMMTestBase (xrpl::test::jtx)
AMMVote (xrpl)
AMMWithdraw (xrpl)
amount (xrpl::test::jtx::token)
amount (beast::unit_test)
AmountSpec (xrpl)
CollectorRef::Any (xrpl::test::csf)
any_t (xrpl::test::jtx)
AnyAmount (xrpl::test::jtx)
ApiVersion_test (xrpl::test)
Env::AppBundle (xrpl::test::jtx)
Application (xrpl)
ApplicationImp (xrpl)
Apply_test (xrpl)
ApplyContext (xrpl)
ApplyResult (xrpl)
ApplyStateTable (xrpl::detail)
ApplyView (xrpl)
ApplyViewBase (xrpl::detail)
ApplyViewImpl (xrpl)
as (xrpl::test::jtx::delegate)
Asset (xrpl)
Checker::async_op (xrpl::PeerFinder)
AsyncObject (xrpl)
AttestationBase (xrpl::Attestations)
AttestationClaim (xrpl::Attestations)
AttestationCreateAccount (xrpl::Attestations)
AuthorizeCredentials (xrpl::test::jtx::deposit)
autofill_t (xrpl::test::jtx)
AutoSocket
ConsensusParms::AvalancheCutoff (xrpl)
B
Backend (xrpl::NodeStore)
Backend_test (xrpl::NodeStore)
bad_expected_access (xrpl)
BadLexicalCast (beast)
Balance (xrpl::test)
balance (xrpl::test::jtx)
TransfersNotFrozen::BalanceChange (xrpl)
BalanceTransfer (xrpl::test)
Barrier (xrpl::tests)
short_read_test::Base (xrpl)
base_uint (xrpl)
base_uint_test (xrpl::test)
BaseHTTPPeer (xrpl)
BasePeer (xrpl)
BaseWSPeer (xrpl)
Checker::basic_async_op (xrpl::PeerFinder)
basic_logstream (beast)
basic_prop (xrpl::test::jtx)
basic_seconds_clock (beast)
basic_seconds_clock_test (beast)
basic_semaphore (xrpl)
basic_sha512_half_hasher (xrpl::detail)
BasicApp
BasicConfig (xrpl)
BasicFullBelowCache (xrpl::detail)
BasicNetwork (xrpl::test::csf)
BasicNetwork_test (xrpl::test)
BasicSink (xrpl::test::csf)
LocalValues::BasicValue (xrpl::detail)
Batch (xrpl)
Batch_test (xrpl::test)
batch_view_t (xrpl)
BatchWriter (xrpl::NodeStore)
BatchWriteReport (xrpl::NodeStore)
BidArg (xrpl::test::jtx)
blobField (xrpl::test::jtx)
TrustedPublisherServer::BlobInfo (xrpl::test)
Book (xrpl)
book_t (xrpl::keylet)
Book_test (xrpl::test)
BookChanges_test (xrpl::test)
BookDirs (xrpl)
BookDirs_test (xrpl::test)
BookListeners (xrpl)
BookOfferCrossingStep (xrpl)
BookPaymentStep (xrpl)
BookSpec (xrpl::test::jtx)
BookStep (xrpl)
BookTip (xrpl)
Bootcache (xrpl::PeerFinder)
XChainSim_test::ChainStateTrack::BridgeCounters (xrpl::test)
BridgeDef (xrpl::test)
BridgeModify (xrpl)
Peer::BroadcastMesg (xrpl::test::csf)
brokerFee (xrpl::test::jtx::token)
Loan_test::BrokerInfo (xrpl::test)
ValidLoanBroker::BrokerInfo (xrpl)
Loan_test::BrokerParameters (xrpl::test)
aged_unordered_container::Buckets (beast::detail)
BaseHTTPPeer::buffer (xrpl)
Buffer (xrpl)
Buffer_test (xrpl::test)
BuildInfo_test (xrpl)
ByzantineFailureSim_test (xrpl::test)
C
-
DirectStepI::Cache (xrpl)
BookStep::Cache (xrpl)
AccountIdCache::CachedAccountID (xrpl::detail)
CachedView (xrpl)
CachedViewImpl (xrpl::detail)
BatchWriter::Callback (xrpl::NodeStore)
Workers::Callback (xrpl)
GRPCServerImpl::CallData (xrpl)
Scheduler::cancel_token (xrpl::test::csf)
CancelCheck (xrpl)
CancelOffer (xrpl)
CanCvtToNotTEC (xrpl)
CanCvtToNotTEC< TEFcodes > (xrpl)
CanCvtToNotTEC< TELcodes > (xrpl)
CanCvtToNotTEC< TEMcodes > (xrpl)
CanCvtToNotTEC< TERcodes > (xrpl)
CanCvtToNotTEC< TEScodes > (xrpl)
CanCvtToTER (xrpl)
CanCvtToTER< NotTEC > (xrpl)
CanCvtToTER< TECcodes > (xrpl)
CanCvtToTER< TEFcodes > (xrpl)
CanCvtToTER< TELcodes > (xrpl)
CanCvtToTER< TEMcodes > (xrpl)
CanCvtToTER< TERcodes > (xrpl)
CanCvtToTER< TEScodes > (xrpl)
NegativeUNLVote::Candidates (xrpl)
CanonicalTXSet (xrpl)
CaptureLogs (xrpl::test)
CaptureLogs::CaptureSink (xrpl::test)
case_results (xrpl::detail)
reporter::case_results (beast::unit_test::detail)
case_results (beast::unit_test)
CashCheck (xrpl)
XChainSim_test::ChainStateTrack (xrpl::test)
XChainSim_test::ChainStateTracker (xrpl::test)
Change (xrpl)
Charge (xrpl::Resource)
PeerImp::ChargeWithContext (xrpl)
Check_test (xrpl)
TER_test::CheckComparable (xrpl)
CheckDeliveredAmount (xrpl::test)
Checker (xrpl::PeerFinder)
CheckMessageLogs (xrpl::test)
CheckMessageLogs::CheckMessageSink (xrpl::test)
Checkpointer (xrpl)
CheckpointersCollection (xrpl)
DatabaseCon::CheckpointerSetup (xrpl)
OverlayImpl::Child (xrpl)
short_read_test::Base::Child (xrpl)
aged_unordered_container::chronological_t (beast::detail)
aged_ordered_container::chronological_t (beast::detail)
ci_equal_pred (beast::rfc2616::detail)
XChainSim_test::ChainStateTrack::Claims (xrpl::test)
Clawback (xrpl)
Clawback_test (xrpl)
Vault::ClawbackArgs (xrpl::test::jtx)
short_read_test::Client (xrpl)
ServerHandler::Setup::client_t (xrpl)
QualityFunction::CLOBLikeTag (xrpl)
CloseLedger (xrpl::test::csf)
ClosureCounter (xrpl)
ClosureCounter_test (xrpl::test)
Cluster (xrpl)
cluster_test (xrpl::tests)
ClusterNode (xrpl)
CmpByClaimID (xrpl::Attestations)
CmpByCreateCount (xrpl::Attestations)
codeString_test (xrpl::RPC)
CollectByNode (xrpl::test::csf)
Collection (Json)
Writer::Impl::Collection (Json)
CollectionAndDelimiter (xrpl)
CollectionAndDelimiter< char[N]> (xrpl)
CollectionAndDelimiter< Collection[N]> (xrpl)
Collector (beast::insight)
CollectorManager (xrpl)
CollectorManagerImp (xrpl)
CollectorRef (xrpl::test::csf)
CollectorRefs (xrpl::test::csf)
Collectors (xrpl::test::csf)
Compact (Json)
Cluster::Comparator (xrpl)
AsyncObject::CompletionCounter (xrpl)
compression_test (xrpl::test)
aged_associative_container_test_base::CompT (beast)
Condition (xrpl::cryptoconditions)
Config (xrpl)
Config (xrpl::PeerFinder)
aged_ordered_container::config_t (beast::detail)
aged_unordered_container::config_t (beast::detail)
Config_test (xrpl)
ConfigSection (xrpl)
Connect_test (xrpl)
ConnectAttempt (xrpl)
ConnectHandouts (xrpl::PeerFinder)
short_read_test::Server::Connection (xrpl)
short_read_test::Client::Connection (xrpl)
Consensus (xrpl)
Consensus_test (xrpl::test)
ConsensusCloseTimes (xrpl)
ConsensusParms (xrpl)
ConsensusProposal (xrpl)
ConsensusResult (xrpl)
ConsensusTimer (xrpl)
ConsensusTransSetSF (xrpl)
const_container (beast::unit_test::detail)
BookDirs::const_iterator (xrpl)
Dir::const_iterator (xrpl)
partitioned_unordered_map::const_iterator (xrpl)
SHAMap::const_iterator (xrpl)
ConstantDistribution (xrpl::test::csf)
Consumer (xrpl::Resource)
Context (xrpl::RPC)
aged_associative_container_test_base::ContType (beast)
aged_associative_container_test_base::ContType< Base, true > (beast)
CopyConst (beast::detail)
CopyConst< T const, U > (beast::detail)
JobQueue::Coro (xrpl)
Coro_create_t (xrpl)
Coroutine_test (xrpl::test)
CountedObject (xrpl)
CountedObjects (xrpl)
Counter (beast::insight)
CountedObjects::Counter (xrpl)
NetworkOPsImp::StateAccounting::CounterData (xrpl)
CounterImpl (beast::insight)
NetworkOPsImp::StateAccounting::Counters (xrpl)
PerfLogImp::Counters (xrpl::perf)
RelationalDatabase::CountMinMax (xrpl)
Counts (xrpl::PeerFinder)
create_genesis_t (xrpl)
CreateArg (xrpl::test::jtx::oracle)
CreateArg (xrpl::test::jtx)
Vault::CreateArgs (xrpl::test::jtx)
CreateCheck (xrpl)
CreateOffer (xrpl)
CreateTicket (xrpl)
CredentialAccept (xrpl)
CredentialCreate (xrpl)
CredentialDelete (xrpl)
Credentials_test (xrpl::test)
CrossingLimits_test (xrpl::test)
cryptoconditions_error_category (xrpl::cryptoconditions::detail)
csprng_engine (xrpl)
PerfLog_test::Cur (xrpl)
CurrencyTag (xrpl::detail)
Transaction::CurrentLedgerState (xrpl)
CurrentThreadName_test (xrpl::test)
CurrentTransactionRulesGuard (xrpl)
LedgerHistory::cv_entry (xrpl)
Value::CZString (Json)
+
DirectStepI::Cache (xrpl)
BookStep::Cache (xrpl)
AccountIdCache::CachedAccountID (xrpl::detail)
CachedView (xrpl)
CachedViewImpl (xrpl::detail)
BatchWriter::Callback (xrpl::NodeStore)
Workers::Callback (xrpl)
GRPCServerImpl::CallData (xrpl)
Scheduler::cancel_token (xrpl::test::csf)
CancelCheck (xrpl)
CancelOffer (xrpl)
CanCvtToNotTEC (xrpl)
CanCvtToNotTEC< TEFcodes > (xrpl)
CanCvtToNotTEC< TELcodes > (xrpl)
CanCvtToNotTEC< TEMcodes > (xrpl)
CanCvtToNotTEC< TERcodes > (xrpl)
CanCvtToNotTEC< TEScodes > (xrpl)
CanCvtToTER (xrpl)
CanCvtToTER< NotTEC > (xrpl)
CanCvtToTER< TECcodes > (xrpl)
CanCvtToTER< TEFcodes > (xrpl)
CanCvtToTER< TELcodes > (xrpl)
CanCvtToTER< TEMcodes > (xrpl)
CanCvtToTER< TERcodes > (xrpl)
CanCvtToTER< TEScodes > (xrpl)
NegativeUNLVote::Candidates (xrpl)
CanonicalTXSet (xrpl)
CaptureLogs (xrpl::test)
CaptureLogs::CaptureSink (xrpl::test)
case_results (xrpl::detail)
reporter::case_results (beast::unit_test::detail)
case_results (beast::unit_test)
CashCheck (xrpl)
XChainSim_test::ChainStateTrack (xrpl::test)
XChainSim_test::ChainStateTracker (xrpl::test)
Change (xrpl)
Charge (xrpl::Resource)
PeerImp::ChargeWithContext (xrpl)
Check_test (xrpl)
TER_test::CheckComparable (xrpl)
CheckDeliveredAmount (xrpl::test)
Checker (xrpl::PeerFinder)
CheckMessageLogs (xrpl::test)
CheckMessageLogs::CheckMessageSink (xrpl::test)
Checkpointer (xrpl)
CheckpointersCollection (xrpl)
DatabaseCon::CheckpointerSetup (xrpl)
OverlayImpl::Child (xrpl)
short_read_test::Base::Child (xrpl)
aged_unordered_container::chronological_t (beast::detail)
aged_ordered_container::chronological_t (beast::detail)
ci_equal_pred (beast::rfc2616::detail)
XChainSim_test::ChainStateTrack::Claims (xrpl::test)
Clawback (xrpl)
Clawback_test (xrpl)
Vault::ClawbackArgs (xrpl::test::jtx)
short_read_test::Client (xrpl)
ServerHandler::Setup::client_t (xrpl)
QualityFunction::CLOBLikeTag (xrpl)
CloseLedger (xrpl::test::csf)
ClosureCounter (xrpl)
ClosureCounter_test (xrpl::test)
Cluster (xrpl)
cluster_test (xrpl::tests)
ClusterNode (xrpl)
CmpByClaimID (xrpl::Attestations)
CmpByCreateCount (xrpl::Attestations)
codeString_test (xrpl::RPC)
CollectByNode (xrpl::test::csf)
Writer::Impl::Collection (Json)
CollectionAndDelimiter (xrpl)
CollectionAndDelimiter< char[N]> (xrpl)
CollectionAndDelimiter< Collection[N]> (xrpl)
Collector (beast::insight)
CollectorManager (xrpl)
CollectorManagerImp (xrpl)
CollectorRef (xrpl::test::csf)
CollectorRefs (xrpl::test::csf)
Collectors (xrpl::test::csf)
Compact (Json)
Cluster::Comparator (xrpl)
AsyncObject::CompletionCounter (xrpl)
compression_test (xrpl::test)
aged_associative_container_test_base::CompT (beast)
Condition (xrpl::cryptoconditions)
Config (xrpl)
Config (xrpl::PeerFinder)
aged_unordered_container::config_t (beast::detail)
aged_ordered_container::config_t (beast::detail)
Config_test (xrpl)
ConfigSection (xrpl)
Connect_test (xrpl)
ConnectAttempt (xrpl)
ConnectHandouts (xrpl::PeerFinder)
short_read_test::Client::Connection (xrpl)
short_read_test::Server::Connection (xrpl)
Consensus (xrpl)
Consensus_test (xrpl::test)
ConsensusCloseTimes (xrpl)
ConsensusParms (xrpl)
ConsensusProposal (xrpl)
ConsensusResult (xrpl)
ConsensusTimer (xrpl)
ConsensusTransSetSF (xrpl)
const_container (beast::unit_test::detail)
BookDirs::const_iterator (xrpl)
SHAMap::const_iterator (xrpl)
partitioned_unordered_map::const_iterator (xrpl)
Dir::const_iterator (xrpl)
ConstantDistribution (xrpl::test::csf)
Consumer (xrpl::Resource)
Context (xrpl::RPC)
aged_associative_container_test_base::ContType (beast)
aged_associative_container_test_base::ContType< Base, true > (beast)
CopyConst (beast::detail)
CopyConst< T const, U > (beast::detail)
JobQueue::Coro (xrpl)
Coro_create_t (xrpl)
Coroutine_test (xrpl::test)
CountedObject (xrpl)
CountedObjects (xrpl)
Counter (beast::insight)
CountedObjects::Counter (xrpl)
NetworkOPsImp::StateAccounting::CounterData (xrpl)
CounterImpl (beast::insight)
NetworkOPsImp::StateAccounting::Counters (xrpl)
PerfLogImp::Counters (xrpl::perf)
RelationalDatabase::CountMinMax (xrpl)
Counts (xrpl::PeerFinder)
create_genesis_t (xrpl)
CreateArg (xrpl::test::jtx)
CreateArg (xrpl::test::jtx::oracle)
Vault::CreateArgs (xrpl::test::jtx)
CreateCheck (xrpl)
CreateOffer (xrpl)
CreateTicket (xrpl)
CredentialAccept (xrpl)
CredentialCreate (xrpl)
CredentialDelete (xrpl)
Credentials_test (xrpl::test)
CrossingLimits_test (xrpl::test)
cryptoconditions_error_category (xrpl::cryptoconditions::detail)
csprng_engine (xrpl)
PerfLog_test::Cur (xrpl)
CurrencyTag (xrpl::detail)
Transaction::CurrentLedgerState (xrpl)
CurrentThreadName_test (xrpl::test)
CurrentTransactionRulesGuard (xrpl)
LedgerHistory::cv_entry (xrpl)
Value::CZString (Json)
D
data (xrpl::test::jtx::did)
Database (xrpl::NodeStore)
Database_test (xrpl::NodeStore)
DatabaseCon (xrpl)
DatabaseNodeImp (xrpl::NodeStore)
DatabasePairValid (xrpl::detail)
DatabaseRotating (xrpl::NodeStore)
DatabaseRotatingImp (xrpl::NodeStore)
DBConfig (xrpl)
DebugSink (xrpl)
DecayingSample (xrpl)
DecayWindow (xrpl)
DecodedBlob (xrpl::NodeStore)
defaultObject_t (xrpl::detail)
DefaultValueAllocator (Json)
DeferredCredits (xrpl::detail)
Delegate_test (xrpl::test)
DelegateSet (xrpl)
DeleteAccount (xrpl)
Vault::DeleteArgs (xrpl::test::jtx)
DeleteOracle (xrpl)
DeliveredAmount_test (xrpl::test)
DeliverMin (xrpl::test::jtx::check)
delivermin (xrpl::test::jtx)
DeliverMin_test (xrpl::test)
DepositArg (xrpl::test::jtx)
Vault::DepositArgs (xrpl::test::jtx)
DepositAuth_test (xrpl::test)
DepositAuthorized_test (xrpl::test)
DepositPreauth (xrpl)
DepositPreauth_test (xrpl::test)
dest_tag (xrpl::test::jtx)
destination (xrpl::test::jtx::token)
DetectCrash_test (xrpl::test)
Door::Detector (xrpl)
DID_test (xrpl::test)
DIDDelete (xrpl)
DIDSet (xrpl)
DigestAwareReadView (xrpl)
Digraph (xrpl::test::csf)
Digraph_test (xrpl::test)
Dir (xrpl)
DirectIOfferCrossingStep (xrpl)
DirectIPaymentStep (xrpl)
Directory_test (xrpl::test)
DirectoryTag (xrpl::detail)
DirectStepI (xrpl)
DirectStepInfo (xrpl::test)
DirGuard (xrpl::detail)
disabled_t (xrpl::test::jtx)
Discrepancy_test (xrpl)
DisputedTx (xrpl)
Consensus_test::Disruptor (xrpl::test)
DistributedValidators_test (xrpl::test)
divider (beast)
DNS_test (xrpl::test)
document (xrpl::test::jtx::did)
domain (xrpl::test::jtx)
Door (xrpl)
dtag (xrpl::test::jtx)
DummyPeerSet (xrpl)
DummyScheduler (xrpl::NodeStore)
DummyValueAllocatorInitializer (Json)
DynamicCastTagSharedIntrusive (xrpl)
@@ -103,7 +103,7 @@ $(function() {
CollectorRef::ICollector (xrpl::test::csf)
ids (xrpl::test::jtx::credentials)
Rules::Impl (xrpl)
Writer::Impl (Json)
Import (xrpl::Resource)
InboundLedger (xrpl)
InboundLedgers (xrpl)
InboundLedgersImp (xrpl)
InboundTransactions (xrpl)
InboundTransactionSet (xrpl)
InboundTransactionsImp (xrpl)
increment_t (xrpl::test::jtx)
InfoSub (xrpl)
InfoSubRequest (xrpl)
multi_runner_base::inner (xrpl::detail)
inner (xrpl::test::jtx::batch)
InnerObjectFormats (xrpl)
InnerObjectFormatsParsedJSON_test (xrpl)
InnerObjectFormatsSerializer_test (xrpl)
RippleCalc::Input (xrpl::path)
insert_suite (beast::unit_test::detail)
Ledger::Instance (xrpl::test::csf)
Zero_test::IntegerWrapper (beast)
IntrusiveRefCounts (xrpl)
IntrusiveShared_test (xrpl::tests)
InvariantChecker_PROTOTYPE (xrpl)
Invariants_test (xrpl::test)
invoice_id (xrpl::test::jtx)
io_latency_probe (beast)
io_latency_probe_test
ApplicationImp::io_latency_sampler (xrpl)
io_list (xrpl)
IOU (xrpl::test::jtx)
IOUAmount (xrpl)
IOUAmount_test (xrpl)
IPAddressConversion (beast)
IPEndpoint_test (beast::IP)
is_aged_container (beast)
is_aged_container< beast::detail::aged_ordered_container< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > > (beast)
is_aged_container< beast::detail::aged_unordered_container< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > > (beast)
is_boost_reverse_iterator (beast::detail)
is_boost_reverse_iterator< boost::intrusive::reverse_iterator< It > > (beast::detail)
is_contiguous_container (xrpl::detail)
is_contiguous_container< Container, std::void_t< decltype(std::declval< Container const >().size()), decltype(std::declval< Container const >().data()), typename Container::value_type > > (xrpl::detail)
is_contiguous_container< Slice > (xrpl::detail)
is_contiguously_hashable (beast)
is_contiguously_hashable< T[N], HashAlgorithm > (beast)
is_contiguously_hashable< xrpl::tagged_integer< Int, Tag >, HashAlgorithm > (beast)
is_empty_base_optimization_derived (beast::detail)
is_error_code_enum< xrpl::cryptoconditions::error > (std)
is_error_code_enum< xrpl::TokenCodecErrc > (std)
is_uniquely_represented (beast)
is_uniquely_represented< std::array< T, N > > (beast)
is_uniquely_represented< std::pair< T, U > > (beast)
is_uniquely_represented< std::tuple< T... > > (beast)
is_uniquely_represented< T const > (beast)
is_uniquely_represented< T const volatile > (beast)
is_uniquely_represented< T volatile > (beast)
is_uniquely_represented< T[N]> (beast)
is_uniquely_represented< xrpl::base_uint< Bits, Tag > > (beast)
Issue (xrpl)
Issue_test (xrpl)
issuer (xrpl::test::jtx::token)
TransfersNotFrozen::IssuerChanges (xrpl)
PropertyStream::Item (beast)
KnownFormats::Item (xrpl)
Gossip::Item (xrpl::Resource)
Import::Item (xrpl::Resource)
ReadViewFwdRange::iterator (xrpl::detail)
partitioned_unordered_map::iterator (xrpl)
J
-
Job (xrpl)
JobQueue (xrpl)
JobQueue_test (xrpl::test)
JobTypeData (xrpl)
JobTypeInfo (xrpl)
JobTypes (xrpl)
join_test (xrpl::test)
Journal (beast)
Journal_test (beast)
PerfLogImp::Counters::Jq (xrpl::perf)
JSON (antithesis)
json (xrpl::test::jtx)
json_body (xrpl)
JSONArray (antithesis)
JsonContext (xrpl::RPC)
JsonMissingKeyError (Json)
JsonObject_test (Json)
JsonOptions (xrpl)
JsonPropertyStream (xrpl)
JSONRPC_test (xrpl::RPC)
JSONRPCClient (xrpl::test)
JsonTypeMismatchError (Json)
JTx (xrpl::test::jtx)
JTxField (xrpl::test::jtx)
JTxField< SField, StoredValue, StoredValue > (xrpl::test::jtx)
JTxFieldWrapper (xrpl::test::jtx)
JTxFieldWrapper< blobField > (xrpl::test::jtx)
JumpCollector::Jump (xrpl::test::csf)
JumpCollector (xrpl::test::csf)
+
Job (xrpl)
JobQueue (xrpl)
JobQueue_test (xrpl::test)
JobTypeData (xrpl)
JobTypeInfo (xrpl)
JobTypes (xrpl)
join_test (xrpl::test)
Journal (beast)
Journal_test (beast)
PerfLogImp::Counters::Jq (xrpl::perf)
JSON (antithesis)
json (xrpl::test::jtx)
json_body (xrpl)
JSONArray (antithesis)
JsonContext (xrpl::RPC)
JsonMissingKeyError (Json)
JsonOptions (xrpl)
JsonPropertyStream (xrpl)
JSONRPC_test (xrpl::RPC)
JSONRPCClient (xrpl::test)
JsonTypeMismatchError (Json)
JTx (xrpl::test::jtx)
JTxField (xrpl::test::jtx)
JTxField< SField, StoredValue, StoredValue > (xrpl::test::jtx)
JTxFieldWrapper (xrpl::test::jtx)
JTxFieldWrapper< blobField > (xrpl::test::jtx)
JumpCollector::Jump (xrpl::test::csf)
JumpCollector (xrpl::test::csf)
K
Validations::KeepRange (xrpl)
CanonicalTXSet::Key (xrpl)
Key (xrpl::Resource)
Key::key_equal (xrpl::Resource)
key_strings (xrpl::RPC)
KeyCache_test (xrpl)
KeyEqual (xrpl)
Keylet (xrpl)
keyletDesc (xrpl)
TaggedCache::KeyOnlyEntry (xrpl)
ValidatorKeys::Keys (xrpl)
aged_ordered_container::KeyValueCompare (beast::detail)
aged_unordered_container::KeyValueEqual (beast::detail)
KnownFormats (xrpl)
@@ -118,16 +118,16 @@ $(function() {
NegativeUNL_test (xrpl::test)
NegativeUNLVote (xrpl)
NegativeUNLVoteFilterValidations_test (xrpl::test)
NegativeUNLVoteGoodScore_test (xrpl::test)
NegativeUNLVoteInternal_test (xrpl::test)
NegativeUNLVoteMaxListed_test (xrpl::test)
NegativeUNLVoteNewValidator_test (xrpl::test)
NegativeUNLVoteOffline_test (xrpl::test)
NegativeUNLVoteRetiredValidator_test (xrpl::test)
NegativeUNLVoteScoreTable_test (xrpl::test)
NetClock (xrpl)
Network (xrpl::test)
NetworkHistory (xrpl::test)
NetworkID_test (xrpl::test)
NetworkOfTwo (xrpl::test)
NetworkOPs (xrpl)
NetworkOPs_test (xrpl::test)
NetworkOPsImp (xrpl)
next_t (xrpl::keylet)
nflags (xrpl::test::jtx)
NFTokenAcceptOffer (xrpl)
NFTokenAllFeatures_test (xrpl)
NFTokenAuth_test (xrpl)
NFTokenBaseUtil_test (xrpl)
NFTokenBurn (xrpl)
NFTokenBurn_test (xrpl)
NFTokenCancelOffer (xrpl)
NFTokenCountTracking (xrpl)
NFTokenCreateOffer (xrpl)
NFTokenDir_test (xrpl)
NFTokenDisallowIncoming_test (xrpl)
NFTokenMint (xrpl)
NFTokenModify (xrpl)
NFTokenWOMintOffer_test (xrpl)
NFTokenWOModify_test (xrpl)
NoBadOffers (xrpl)
Validations_test::Node (xrpl::test::csf)
LockFreeStack::Node (beast)
Node (xrpl::ledger_trie_detail)
NoDeepFreezeTrustLinesWithoutFreeze (xrpl)
NodeFamily (xrpl)
NodeIDTag (xrpl::detail)
NodeObject (xrpl)
AccountTx_test::NodeSanity (xrpl::test)
NodeStoreBasic_test (xrpl::NodeStore)
NodeStoreScheduler (xrpl)
NoEdgeData (xrpl::detail)
NoModifiedUnmodifiableFields (xrpl)
None (xrpl::test::jtx)
none_t (xrpl::test::jtx)
nonhash (xrpl::test)
nonPresentObject_t (xrpl::detail)
NoRipple_test (xrpl::test)
NoRippleCheck_test (xrpl)
NoRippleCheckLimits_test (xrpl)
TER_test::NotConvertible (xrpl)
NoXRPTrustLines (xrpl)
NoZeroEscrow (xrpl)
NuDBBackend (xrpl::NodeStore)
NuDBFactory (xrpl::NodeStore)
NuDBFactory_test (xrpl::NodeStore)
NullBackend (xrpl::NodeStore)
NullCollector (beast::insight)
NullCollector (xrpl::test::csf)
NullCollectorImp (beast::insight::detail)
NullCounterImpl (beast::insight::detail)
NullEventImpl (beast::insight::detail)
NullFactory (xrpl::NodeStore)
NullGaugeImpl (beast::insight::detail)
NullHookImpl (beast::insight::detail)
NullJournalSink (beast)
NullMeterImpl (beast::insight::detail)
Number (xrpl)
Number_test (xrpl)
NumberParts (xrpl)
NumberRoundModeGuard (xrpl)
NumberSO (xrpl)
O
-
Object (Json)
Offer_manual_test (xrpl::test)
OfferAllFeatures_test (xrpl::test)
OfferBaseUtil_test (xrpl::test)
OfferStream (xrpl)
OfferStream_test (xrpl)
OfferWOSmallQOffers_test (xrpl::test)
open_ledger_t (xrpl)
OpenLedger (xrpl)
openssl_ripemd160_hasher (xrpl)
openssl_sha256_hasher (xrpl)
openssl_sha512_hasher (xrpl)
OpenView (xrpl)
OptionaledField (xrpl)
STObject::OptionalProxy (xrpl)
Oracle (xrpl::test::jtx::oracle)
Oracle_test (xrpl::test::jtx::oracle)
OrderBookDB (xrpl)
TxQ::OrderCandidates (xrpl)
RippleCalc::Output (xrpl::path)
Overlay (xrpl)
Overlay (xrpl::test)
OverlayImpl (xrpl)
OverlaySim (xrpl::test)
OversizeMeta_test (xrpl::test)
owner (xrpl::test::jtx::token)
owner_count (xrpl::test::jtx)
OwnerInfo_test (xrpl)
owners (xrpl::test::jtx)
+
Offer_manual_test (xrpl::test)
OfferAllFeatures_test (xrpl::test)
OfferBaseUtil_test (xrpl::test)
OfferStream (xrpl)
OfferStream_test (xrpl)
OfferWOSmallQOffers_test (xrpl::test)
open_ledger_t (xrpl)
OpenLedger (xrpl)
openssl_ripemd160_hasher (xrpl)
openssl_sha256_hasher (xrpl)
openssl_sha512_hasher (xrpl)
OpenView (xrpl)
OptionaledField (xrpl)
STObject::OptionalProxy (xrpl)
Oracle (xrpl::test::jtx::oracle)
Oracle_test (xrpl::test::jtx::oracle)
OrderBookDB (xrpl)
TxQ::OrderCandidates (xrpl)
RippleCalc::Output (xrpl::path)
Overlay (xrpl)
Overlay (xrpl::test)
OverlayImpl (xrpl)
OverlaySim (xrpl::test)
OversizeMeta_test (xrpl::test)
owner (xrpl::test::jtx::token)
owner_count (xrpl::test::jtx)
OwnerInfo_test (xrpl)
owners (xrpl::test::jtx)
P
-
packed_spinlock (xrpl)
aged_ordered_container::pair_value_compare (beast::detail)
Timing_test::parallel_for_lambda (xrpl::NodeStore)
LedgerServer::Parameter (xrpl::test)
NetworkHistory::Parameter (xrpl::test)
Timing_test::Params (xrpl::NodeStore)
parse_error (xrpl::test::jtx)
ParsedPort (xrpl)
Env::ParsedResult (xrpl::test::jtx)
parsedURL (xrpl)
partitioned_unordered_map (xrpl)
FlowDebugInfo::PassInfo (xrpl::path::detail)
path (xrpl::test::jtx)
Path (xrpl::test)
Path_test (xrpl::test)
Pathfinder (xrpl)
PathFindTrustLine (xrpl)
Pathfinder::PathRank (xrpl)
PathRequest (xrpl)
PathRequests (xrpl)
paths (xrpl::test::jtx)
PathSet (xrpl::test)
Workers::PausedTag (xrpl)
PayChan_test (xrpl::test)
PayChanClaim (xrpl)
PayChanCreate (xrpl)
PayChanFund (xrpl)
Payment (xrpl)
PaymentComponents (xrpl::detail)
Loan_test::PaymentParameters (xrpl::test)
PaymentSandbox (xrpl)
PaymentSandbox_test (xrpl::test)
PayStrand_test (xrpl::test)
Peer (xrpl)
BasicNetwork_test::Peer (xrpl::test)
Peer (xrpl::test::csf)
peer_in_cluster (xrpl)
peer_in_set (xrpl)
PeerDataCounts (xrpl::detail)
PeerFinder_test (xrpl::PeerFinder)
PeerGroup (xrpl::test::csf)
PeerImp (xrpl)
Slot::PeerInfo (xrpl::reduce_relay)
PeerPartial (xrpl::test)
PeerReservation (xrpl)
PeerReservationTable (xrpl)
Peers_test (xrpl)
PeerSet (xrpl)
PeerSetBuilder (xrpl)
PeerSetBuilderImpl (xrpl)
PeerSetImpl (xrpl)
PeerSim (xrpl::test)
tx_reduce_relay_test::PeerTest (xrpl::test)
PendingSaves (xrpl)
PendingSaves_test (xrpl::test)
PerfLog (xrpl::perf)
PerfLog_test (xrpl)
PerfLogImp (xrpl::perf)
PerfLogTest (xrpl::perf)
Permission (xrpl)
PermissionedDEX (xrpl::test::jtx)
PermissionedDEX_test (xrpl::test)
PermissionedDomainDelete (xrpl)
PermissionedDomains_test (xrpl::test)
PermissionedDomainSet (xrpl)
PlainHTTPPeer (xrpl)
PlainWSPeer (xrpl)
PlumpBook_test (xrpl::test)
Port (xrpl)
Peer::Position (xrpl::test::csf)
PowerLawDistribution (xrpl::test::csf)
Preamble (xrpl::cryptoconditions::der)
PreclaimContext (xrpl)
PreclaimResult (xrpl)
PreflightContext (xrpl)
PreflightResult (xrpl)
PreimageSha256 (xrpl::cryptoconditions)
PreimageSha256_test (xrpl::cryptoconditions)
PrettyAmount (xrpl::test::jtx)
PrettyAsset (xrpl::test::jtx)
print_test (beast::unit_test)
SField::private_access_tag_t (xrpl)
NodeObject::PrivateAccess (xrpl)
Account::privateCtorTag (xrpl::test::jtx)
Peer::ProcessingDelays (xrpl::test::csf)
Processor (xrpl)
progress (xrpl::NodeStore)
prop (xrpl::test::jtx)
JTx::prop_list (xrpl::test::jtx)
prop_type (xrpl::test::jtx)
PropertyStream (beast)
PropertyStream_test (beast)
ProtocolVersion_test (xrpl)
PropertyStream::Proxy (beast)
Object::Proxy (Json)
STObject::Proxy (xrpl)
PseudoTx_test (xrpl::test)
PublicKey (xrpl)
PublicKey_test (xrpl)
ValidatorList::PublisherList (xrpl)
ValidatorList::PublisherListCollection (xrpl)
ValidatorList::PublisherListStats (xrpl)
+
packed_spinlock (xrpl)
aged_ordered_container::pair_value_compare (beast::detail)
Timing_test::parallel_for_lambda (xrpl::NodeStore)
LedgerServer::Parameter (xrpl::test)
NetworkHistory::Parameter (xrpl::test)
Timing_test::Params (xrpl::NodeStore)
parse_error (xrpl::test::jtx)
ParsedPort (xrpl)
Env::ParsedResult (xrpl::test::jtx)
parsedURL (xrpl)
partitioned_unordered_map (xrpl)
FlowDebugInfo::PassInfo (xrpl::path::detail)
path (xrpl::test::jtx)
Path (xrpl::test)
Path_test (xrpl::test)
Pathfinder (xrpl)
PathFindTrustLine (xrpl)
Pathfinder::PathRank (xrpl)
PathRequest (xrpl)
PathRequests (xrpl)
paths (xrpl::test::jtx)
PathSet (xrpl::test)
Workers::PausedTag (xrpl)
PayChan_test (xrpl::test)
PayChanClaim (xrpl)
PayChanCreate (xrpl)
PayChanFund (xrpl)
Payment (xrpl)
PaymentComponents (xrpl::detail)
Loan_test::PaymentParameters (xrpl::test)
PaymentSandbox (xrpl)
PaymentSandbox_test (xrpl::test)
PayStrand_test (xrpl::test)
Peer (xrpl)
BasicNetwork_test::Peer (xrpl::test)
Peer (xrpl::test::csf)
peer_in_cluster (xrpl)
peer_in_set (xrpl)
PeerDataCounts (xrpl::detail)
PeerFinder_test (xrpl::PeerFinder)
PeerGroup (xrpl::test::csf)
PeerImp (xrpl)
Slot::PeerInfo (xrpl::reduce_relay)
PeerPartial (xrpl::test)
PeerReservation (xrpl)
PeerReservationTable (xrpl)
Peers_test (xrpl)
PeerSet (xrpl)
PeerSetBuilder (xrpl)
PeerSetBuilderImpl (xrpl)
PeerSetImpl (xrpl)
PeerSim (xrpl::test)
tx_reduce_relay_test::PeerTest (xrpl::test)
PendingSaves (xrpl)
PendingSaves_test (xrpl::test)
PerfLog (xrpl::perf)
PerfLog_test (xrpl)
PerfLogImp (xrpl::perf)
PerfLogTest (xrpl::perf)
Permission (xrpl)
PermissionedDEX (xrpl::test::jtx)
PermissionedDEX_test (xrpl::test)
PermissionedDomainDelete (xrpl)
PermissionedDomains_test (xrpl::test)
PermissionedDomainSet (xrpl)
PlainHTTPPeer (xrpl)
PlainWSPeer (xrpl)
PlumpBook_test (xrpl::test)
Port (xrpl)
Peer::Position (xrpl::test::csf)
PowerLawDistribution (xrpl::test::csf)
Preamble (xrpl::cryptoconditions::der)
PreclaimContext (xrpl)
PreclaimResult (xrpl)
PreflightContext (xrpl)
PreflightResult (xrpl)
PreimageSha256 (xrpl::cryptoconditions)
PreimageSha256_test (xrpl::cryptoconditions)
PrettyAmount (xrpl::test::jtx)
PrettyAsset (xrpl::test::jtx)
print_test (beast::unit_test)
SField::private_access_tag_t (xrpl)
NodeObject::PrivateAccess (xrpl)
Account::privateCtorTag (xrpl::test::jtx)
Peer::ProcessingDelays (xrpl::test::csf)
Processor (xrpl)
progress (xrpl::NodeStore)
prop (xrpl::test::jtx)
JTx::prop_list (xrpl::test::jtx)
prop_type (xrpl::test::jtx)
PropertyStream (beast)
PropertyStream_test (beast)
ProtocolVersion_test (xrpl)
PropertyStream::Proxy (beast)
STObject::Proxy (xrpl)
PseudoTx_test (xrpl::test)
PublicKey (xrpl)
PublicKey_test (xrpl)
ValidatorList::PublisherList (xrpl)
ValidatorList::PublisherListCollection (xrpl)
ValidatorList::PublisherListStats (xrpl)
Q
Quality_test (xrpl)
QualityFunction (xrpl)
qualityIn (xrpl::test::jtx)
qualityInPercent (xrpl::test::jtx)
qualityOut (xrpl::test::jtx)
qualityOutPercent (xrpl::test::jtx)
HTTPClientImp::Query (xrpl)
Scheduler::queue_type (xrpl::test::csf)
TimeoutCounter::QueueJobParameter (xrpl)
R
-
RandomAccountParams (xrpl::test)
Rate (xrpl)
Rate (xrpl::test::csf)
TaggedPointer::RawAllocateTag (xrpl)
RawStateTable (xrpl::detail)
RawView (xrpl)
RCLCensorshipDetector (xrpl)
RCLCensorshipDetector_test (xrpl::test)
RCLConsensus (xrpl)
RclConsensusLogger (xrpl)
RCLCxLedger (xrpl)
RCLCxPeerPos (xrpl)
RCLCxTx (xrpl)
RCLTxSet (xrpl)
RCLValidatedLedger (xrpl)
RCLValidation (xrpl)
RCLValidations_test (xrpl::test)
RCLValidationsAdaptor (xrpl)
Reader (Json)
json_body::reader (xrpl)
ReadView (xrpl)
ReadViewFwdIter (xrpl::detail)
ReadViewFwdRange (xrpl::detail)
aged_associative_container_test_base::AllocT::rebind (beast)
Receive (xrpl::test::csf)
SlotImp::recent_t (xrpl::PeerFinder)
recorder (beast::unit_test)
RedirectHandouts (xrpl::PeerFinder)
reduce_relay_simulate_test (xrpl::test)
reduce_relay_test (xrpl::test)
ReducedOffer_test (xrpl::test)
IntrusiveRefCounts::RefCountPair (xrpl)
Reg (xrpl::test::jtx)
Regression_test (xrpl::test)
RelationalDatabase (xrpl)
Relay (xrpl::test::csf)
RemoveArg (xrpl::test::jtx::oracle)
reporter (beast::unit_test::detail)
Request (xrpl::RPC)
require (xrpl::test::jtx)
requireAny (xrpl::test::jtx)
Resolver (xrpl)
ResolverAsio (xrpl)
ResolverAsioImpl (xrpl)
ValidatorSite::Site::Resource (xrpl)
ResourceManager_test (xrpl::Resource)
results (xrpl::detail)
Source::Results (xrpl::PeerFinder)
results (beast::unit_test)
reporter::results (beast::unit_test::detail)
RFC1751 (xrpl)
ripesha_hasher (xrpl)
RippleCalc (xrpl::path)
RippleCalcTestParams (xrpl::test)
RippledCfgGuard (xrpl::detail)
RippleLineCache (xrpl)
RobustTransaction_test (xrpl::test)
Roles_test (xrpl::test)
Object::Root (Json)
rootIndex (xrpl::test::jtx::token)
Peer::Router (xrpl::test::csf)
PerfLogImp::Counters::Rpc (xrpl::perf)
rpc (xrpl::test::jtx)
RPCCall_test (xrpl::test)
RPCCallImp (xrpl)
RPCCallTestData (xrpl::test)
RPCHelpers_test (xrpl::test)
RPCOverload_test (xrpl::test)
RPCParser (xrpl)
RPCSub (xrpl)
RPCSubImp (xrpl)
RPCTrustLine (xrpl)
Rules (xrpl)
runner (beast::unit_test)
+
RandomAccountParams (xrpl::test)
Rate (xrpl)
Rate (xrpl::test::csf)
TaggedPointer::RawAllocateTag (xrpl)
RawStateTable (xrpl::detail)
RawView (xrpl)
RCLCensorshipDetector (xrpl)
RCLCensorshipDetector_test (xrpl::test)
RCLConsensus (xrpl)
RclConsensusLogger (xrpl)
RCLCxLedger (xrpl)
RCLCxPeerPos (xrpl)
RCLCxTx (xrpl)
RCLTxSet (xrpl)
RCLValidatedLedger (xrpl)
RCLValidation (xrpl)
RCLValidations_test (xrpl::test)
RCLValidationsAdaptor (xrpl)
json_body::reader (xrpl)
Reader (Json)
ReadView (xrpl)
ReadViewFwdIter (xrpl::detail)
ReadViewFwdRange (xrpl::detail)
aged_associative_container_test_base::AllocT::rebind (beast)
Receive (xrpl::test::csf)
SlotImp::recent_t (xrpl::PeerFinder)
recorder (beast::unit_test)
RedirectHandouts (xrpl::PeerFinder)
reduce_relay_simulate_test (xrpl::test)
reduce_relay_test (xrpl::test)
ReducedOffer_test (xrpl::test)
IntrusiveRefCounts::RefCountPair (xrpl)
Reg (xrpl::test::jtx)
Regression_test (xrpl::test)
RelationalDatabase (xrpl)
Relay (xrpl::test::csf)
RemoveArg (xrpl::test::jtx::oracle)
reporter (beast::unit_test::detail)
Request (xrpl::RPC)
require (xrpl::test::jtx)
requireAny (xrpl::test::jtx)
Resolver (xrpl)
ResolverAsio (xrpl)
ResolverAsioImpl (xrpl)
ValidatorSite::Site::Resource (xrpl)
ResourceManager_test (xrpl::Resource)
results (beast::unit_test)
Source::Results (xrpl::PeerFinder)
results (xrpl::detail)
reporter::results (beast::unit_test::detail)
RFC1751 (xrpl)
ripesha_hasher (xrpl)
RippleCalc (xrpl::path)
RippleCalcTestParams (xrpl::test)
RippledCfgGuard (xrpl::detail)
RippleLineCache (xrpl)
RobustTransaction_test (xrpl::test)
Roles_test (xrpl::test)
rootIndex (xrpl::test::jtx::token)
Peer::Router (xrpl::test::csf)
PerfLogImp::Counters::Rpc (xrpl::perf)
rpc (xrpl::test::jtx)
RPCCall_test (xrpl::test)
RPCCallImp (xrpl)
RPCCallTestData (xrpl::test)
RPCHelpers_test (xrpl::test)
RPCOverload_test (xrpl::test)
RPCParser (xrpl)
RPCSub (xrpl)
RPCSubImp (xrpl)
RPCTrustLine (xrpl)
Rules (xrpl)
runner (beast::unit_test)
S
io_latency_probe::sample_op (beast)
Sandbox (xrpl)
save_stream_state (xrpl::detail)
SavedState (xrpl)
SHAMapStoreImp::SavedStateDB (xrpl)
saveNumberRoundMode (xrpl)
ScaleFreeSim_test (xrpl::test)
Scheduler (xrpl::NodeStore)
Scheduler (xrpl::test::csf)
Scheduler_test (xrpl::test)
scope_exit (xrpl)
scope_fail (xrpl)
scope_success (xrpl)
scope_unlock (xrpl)
suite::scoped_testcase (beast::unit_test)
Journal::ScopedStream (beast)
SecretKey (xrpl)
SecretKey_test (xrpl)
Section (xrpl)
Seed (xrpl)
Seed_test (xrpl)
selector (beast::unit_test)
Selector (xrpl::test::csf)
SemanticVersion (beast)
SemanticVersion_test (beast)
send_always (xrpl)
send_if_not_pred (xrpl)
send_if_pred (xrpl)
sendmax (xrpl::test::jtx)
SEnv (xrpl::test)
seq (xrpl::test::jtx)
SeqEnforcer (xrpl)
SeqProxy (xrpl)
SeqProxy_test (xrpl)
Sequence (xrpl::NodeStore)
SerialIter (xrpl)
Serializer (xrpl)
Serializer_test (xrpl)
Server (xrpl)
short_read_test::Server (xrpl)
Server_test (xrpl::test)
ServerDefinitions (xrpl::detail)
ServerDefinitions_test (xrpl::test)
NetworkOPsImp::ServerFeeSummary (xrpl)
ServerHandler (xrpl)
ServerHandler::ServerHandlerCreator (xrpl)
ServerImpl (xrpl)
ServerInfo_test (xrpl::test)
ServerStatus_test (xrpl::test)
Session (xrpl)
PropertyStream::Set (beast)
SetAccount (xrpl)
Vault::SetArgs (xrpl::test::jtx)
SetAuth_test (xrpl::test)
SetOracle (xrpl)
SetRegularKey (xrpl)
SetRegularKey_test (xrpl)
SetSignerList (xrpl)
SetTrust (xrpl)
SetTrust_test (xrpl::test)
TxQ::Setup (xrpl)
ServerHandler::Setup (xrpl)
Overlay::Setup (xrpl)
HashRouter::Setup (xrpl)
PerfLog::Setup (xrpl::perf)
DatabaseCon::Setup (xrpl)
LedgerLoad_test::SetupData (xrpl)
SField (xrpl)
SHAMap (xrpl)
SHAMap_test (xrpl::tests)
SHAMapAccountStateLeafNode (xrpl)
SHAMapAddNode (xrpl)
SHAMapHash (xrpl)
SHAMapInnerNode (xrpl)
SHAMapItem (xrpl)
SHAMapLeafNode (xrpl)
SHAMapMissingNode (xrpl)
SHAMapNodeID (xrpl)
SHAMapPathProof_test (xrpl::tests)
SHAMapStore (xrpl)
SHAMapStore_test (xrpl::test)
SHAMapStoreImp (xrpl)
SHAMapSync_test (xrpl::tests)
SHAMapSyncFilter (xrpl)
SHAMapTreeNode (xrpl)
SHAMapTxLeafNode (xrpl)
SHAMapTxPlusMetaLeafNode (xrpl)
Share (xrpl::test::csf)
SharedIntrusive (xrpl)
SharedIntrusiveAdoptIncrementStrongTag (xrpl)
SharedIntrusiveAdoptNoIncrementTag (xrpl)
SharedWeakCachePointer (xrpl)
SharedWeakUnion (xrpl)
ValidVault::Shares (xrpl)
short_read_test (xrpl)
sig (xrpl::test::jtx::batch)
sig (xrpl::test::jtx)
signer (xrpl::test::jtx)
SignerEntries (xrpl)
SignerEntries::SignerEntry (xrpl)
SigningForParams (xrpl::RPC::detail)
Env_ss::SignSubmitRunner (xrpl::test::jtx)
Sim (xrpl::test::csf)
SimDurationCollector (xrpl::test::csf)
SimpleWriter (xrpl)
Simulate_test (xrpl::test)
SingleMetrics (xrpl::metrics)
Journal::Sink (beast)
Logs::Sink (xrpl)
ValidatorSite::Site (xrpl)
SkipList_test (xrpl::test)
SkipListAcquire (xrpl)
SkipListAcquire::SkipListData (xrpl)
SlabAllocator (xrpl)
SlabAllocatorSet (xrpl)
SlabAllocator::SlabBlock (xrpl)
SlabAllocatorSet::SlabConfig (xrpl)
RawStateTable::sleAction (xrpl::detail)
RawStateTable::sles_iter_impl (xrpl::detail)
Ledger::sles_iter_impl (xrpl)
ReadView::sles_type (xrpl)
ValidPermissionedDomain::SleStatus (xrpl)
Slice (xrpl)
Slot (xrpl::PeerFinder)
Slot (xrpl::reduce_relay)
SlotHandouts (xrpl::PeerFinder)
SlotImp (xrpl::PeerFinder)
Slots (xrpl::reduce_relay)
XChainSim_test::SmBase (xrpl::test)
XChainSim_test::SmCreateAccount (xrpl::test)
XChainSim_test::SmTransfer (xrpl::test)
TxQ::FeeMetrics::Snapshot (xrpl)
SociDB_test (xrpl)
SOElement (xrpl)
SOTemplate (xrpl)
PropertyStream::Source (beast)
InfoSub::Source (xrpl)
Source (xrpl::PeerFinder)
source_tag (xrpl::test::jtx)
SourceStrings (xrpl::PeerFinder)
SourceStringsImp (xrpl::PeerFinder)
Span (xrpl::ledger_trie_detail)
SpanTip (xrpl)
spinlock (xrpl)
SQLiteDatabase (xrpl)
SQLiteDatabaseImp (xrpl)
Squelch (xrpl::reduce_relay)
SquelchHandler (xrpl::reduce_relay)
SSLHTTPPeer (xrpl)
SSLWSPeer (xrpl)
STAccount (xrpl)
STAccount_test (xrpl)
stag (xrpl::test::jtx)
STAmount (xrpl)
STAmount_test (xrpl)
stAmountField (xrpl::test::jtx)
STArray (xrpl)
StartRound (xrpl::test::csf)
aged_ordered_container::element::stashed (beast::detail)
aged_unordered_container::element::stashed (beast::detail)
NetworkOPsImp::StateAccounting (xrpl)
ExistingElementPool::StateGuard (xrpl::test)
StaticCastTagSharedIntrusive (xrpl)
StaticString (Json)
ManagerImp::Stats (xrpl::PeerFinder)
TaggedCache::Stats (xrpl)
Logic::Stats (xrpl::Resource)
OverlayImpl::Stats (xrpl)
NetworkOPsImp::Stats (xrpl)
LoadMonitor::Stats (xrpl)
LedgerMaster::Stats (xrpl)
StatsDCollector (beast::insight)
StatsDCollectorImp (beast::insight::detail)
StatsDCounterImpl (beast::insight::detail)
StatsDEventImpl (beast::insight::detail)
StatsDGaugeImpl (beast::insight::detail)
StatsDHookImpl (beast::insight::detail)
StatsDMeterImpl (beast::insight::detail)
StatsDMetricBase (beast::insight::detail)
Status (xrpl::RPC)
ValidatorSite::Site::Status (xrpl)
STBase (xrpl)
STBitString (xrpl)
STBlob (xrpl)
STCurrency (xrpl)
Step (xrpl)
TOfferStreamBase::StepCounter (xrpl)
ConnectAttempt::StepTimeouts (xrpl)
STExchange (xrpl)
STExchange< STBlob, Buffer > (xrpl)
STExchange< STBlob, PublicKey > (xrpl)
STExchange< STBlob, Slice > (xrpl)
STExchange< STInteger< U >, T > (xrpl)
STInteger (xrpl)
STInteger_test (xrpl)
STIssue (xrpl)
STIssue_test (xrpl::test)
STLedgerEntry (xrpl)
STNumber (xrpl)
STNumber_test (xrpl)
STObject (xrpl)
STObject_test (xrpl)
Store (xrpl::PeerFinder)
StoreSqdb (xrpl::PeerFinder)
STParsedJSON_test (xrpl)
STParsedJSONObject (xrpl)
STPath (xrpl)
STPathElement (xrpl)
STPathSet (xrpl)
StrandContext (xrpl)
StrandResult (xrpl)
Journal::Stream (beast)
StreambufWSMsg (xrpl)
StreamCollector (xrpl::test::csf)
StreamSink (xrpl::test)
StringUtilities_test (xrpl)
STTx (xrpl)
STTx_test (xrpl)
STValidation (xrpl)
STValidation_test (xrpl)
STVar (xrpl::detail)
STVector256 (xrpl)
STXChainBridge (xrpl)
StyledStreamWriter (Json)
StyledWriter (Json)
NetworkOPsImp::SubAccountHistoryIndex (xrpl)
NetworkOPsImp::SubAccountHistoryInfo (xrpl)
NetworkOPsImp::SubAccountHistoryInfoWeak (xrpl)
LedgerEntry_test::Subfield (xrpl::test)
Transaction::SubmitResult (xrpl)
Submitter (xrpl::test::csf)
SubmitTx (xrpl::test::csf)
Subscribe_test (xrpl::test)
ClosureCounter::Substitute (xrpl)
suite (beast::unit_test)
suite_info (beast::unit_test)
suite_list (beast::unit_test)
reporter::suite_results (beast::unit_test::detail)
suite_results (beast::unit_test)
suite_results (xrpl::detail)
SuiteJournal (xrpl::test)
SuiteJournalSink (xrpl::test)
SuiteLogs (xrpl::test::jtx)
@@ -142,7 +142,7 @@ $(function() {
Peer::ValAdaptor (xrpl::test::csf)
ValidAMM (xrpl)
Validation (xrpl::test::csf)
ValidationParms (xrpl)
Validations (xrpl)
Validations_test (xrpl::test::csf)
TrustedPublisherServer::Validator (xrpl::test)
Validator (xrpl::test)
ValidatorList_test::Validator (xrpl::test)
ValidatorBlobInfo (xrpl)
ValidatorInfo_test (xrpl::test)
ValidatorKeys (xrpl)
ValidatorKeys_test (xrpl::test)
ValidatorList (xrpl)
ValidatorList_test (xrpl::test)
ValidatorRPC_test (xrpl::test)
ValidatorSite (xrpl)
ValidatorSite_test (xrpl::test)
ValidatorsTxtGuard (xrpl::detail)
ValidatorToken (xrpl)
ValidClawback (xrpl)
ValidLoan (xrpl)
ValidLoanBroker (xrpl)
ValidMPTIssuance (xrpl)
ValidNewAccountRoot (xrpl)
ValidNFTokenPage (xrpl)
ValidPermissionedDEX (xrpl)
ValidPermissionedDomain (xrpl)
ValidPseudoAccounts (xrpl)
ValidVault (xrpl)
LocalValues::Value (xrpl::detail)
Value (Json)
DeferredCredits::Value (xrpl::detail)
ValueAllocator (Json)
ValueConstIterator (Json)
TaggedCache::ValueEntry (xrpl)
aged_unordered_container::ValueHash (beast::detail)
Value::ValueHolder (Json)
ValueIterator (Json)
ValueIteratorBase (Json)
STObject::ValueProxy (xrpl)
ValueUnit (xrpl::unit)
valueUnitField (xrpl::test::jtx)
varint_test (xrpl::NodeStore::tests)
varint_traits (xrpl::NodeStore)
varint_traits< T, true > (xrpl::NodeStore)
ValidVault::Vault (xrpl)
Vault (xrpl::test::jtx)
Vault_test (xrpl)
VaultClawback (xrpl)
VaultCreate (xrpl)
VaultDelete (xrpl)
VaultDeposit (xrpl)
LoanBroker_test::VaultInfo (xrpl::test)
VaultSet (xrpl)
VaultWithdraw (xrpl)
Loan_test::VerifyLoanStatus (xrpl::test)
Version_test (xrpl)
VersionHandler (xrpl::RPC)
View_test (xrpl::test)
MultiApiJson::visitor_t (xrpl::detail)
base_uint::VoidHelper (xrpl)
VotableValue (xrpl::detail)
VoteArg (xrpl::test::jtx)
W
-
WalletPropose_test (xrpl::RPC)
WeakIntrusive (xrpl)
WithdrawArg (xrpl::test::jtx)
Vault::WithdrawArgs (xrpl::test::jtx)
Work (xrpl::detail)
io_list::work (xrpl)
ResolverAsioImpl::Work (xrpl)
WorkBase (xrpl::detail)
Workers::Worker (xrpl)
Workers (xrpl)
Workers_test (xrpl)
WorkFile (xrpl::detail)
WorkPlain (xrpl::detail)
WorkSSL (xrpl::detail)
WrappedSink (beast)
Writer (Json)
json_body::writer (xrpl)
Writer (xrpl)
WriterBase (Json)
WriterFixture
WriterObject (Json)
WrongPrevLedger (xrpl::test::csf)
WSClient (xrpl::test)
WSClient_test (xrpl::test)
WSClientImpl (xrpl::test)
WSInfoSub (xrpl)
WSMsg (xrpl)
WSSession (xrpl)
+
WalletPropose_test (xrpl::RPC)
WeakIntrusive (xrpl)
WithdrawArg (xrpl::test::jtx)
Vault::WithdrawArgs (xrpl::test::jtx)
Work (xrpl::detail)
io_list::work (xrpl)
ResolverAsioImpl::Work (xrpl)
WorkBase (xrpl::detail)
Workers::Worker (xrpl)
Workers (xrpl)
Workers_test (xrpl)
WorkFile (xrpl::detail)
WorkPlain (xrpl::detail)
WorkSSL (xrpl::detail)
WrappedSink (beast)
Writer (Json)
json_body::writer (xrpl)
Writer (xrpl)
WriterBase (Json)
WriterFixture
WrongPrevLedger (xrpl::test::csf)
WSClient (xrpl::test)
WSClient_test (xrpl::test)
WSClientImpl (xrpl::test)
WSInfoSub (xrpl)
WSMsg (xrpl)
WSSession (xrpl)
X
XChain_test (xrpl::test)
XChainAddAccountCreateAttestation (xrpl)
XChainAddClaimAttestation (xrpl)
XChainAttestationsBase (xrpl)
XChainBridgeObjects (xrpl::test::jtx)
XChainClaim (xrpl)
XChainClaimAttestation (xrpl)
XChainClaimAttestations (xrpl)
XChainCommit (xrpl)
XChainCreateAccountAttestation (xrpl)
XChainCreateAccountAttestations (xrpl)
XChainCreateAccountCommit (xrpl)
XChainCreateBridge (xrpl)
XChainCreateClaimID (xrpl)
XChainSim_test (xrpl::test)
XEnv (xrpl::test)
xferFee (xrpl::test::jtx::token)
xor_shift_engine (beast::detail)
XRP_t (xrpl::test::jtx)
XRPAmount (xrpl)
XRPAmount_test (xrpl)
XRPBalanceChecks (xrpl)
XRPEndpointOfferCrossingStep (xrpl)
XRPEndpointPaymentStep (xrpl)
XRPEndpointStep (xrpl)
XRPEndpointStepInfo (xrpl::test)
XRPNotCreated (xrpl)
xxhasher (beast)
XXHasher_test (beast)
diff --git a/classxrpl_1_1Consensus.html b/classxrpl_1_1Consensus.html index a3fe96e64e..df23ec3a63 100644 --- a/classxrpl_1_1Consensus.html +++ b/classxrpl_1_1Consensus.html @@ -452,7 +452,7 @@ class xrpl::Consensus< Adaptor >

Generic implementation of consens

Result
Possible results from activating a slot.
-
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
+
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
@ proposal
proposal for signing
void erase(STObject &st, TypedField< U > const &f)
Remove a field in an STObject.
Definition STExchange.h:153
diff --git a/classxrpl_1_1NodeStore_1_1TestBase.html b/classxrpl_1_1NodeStore_1_1TestBase.html index de8f5bac9a..b7c11a0aee 100644 --- a/classxrpl_1_1NodeStore_1_1TestBase.html +++ b/classxrpl_1_1NodeStore_1_1TestBase.html @@ -1257,7 +1257,7 @@ template<class Condition >

Runs the suite.

-

Implemented in xrpl::test::AccountDelete_test, xrpl::AccountTxPaging_test, xrpl::AmendmentTable_test, xrpl::test::AMM_test, xrpl::test::AMMCalc_test, xrpl::test::AMMClawback_test, xrpl::test::AMMExtended_test, xrpl::test::Batch_test, xrpl::Check_test, xrpl::Clawback_test, xrpl::test::Credentials_test, xrpl::test::CrossingLimits_test, xrpl::test::Delegate_test, xrpl::test::DeliverMin_test, xrpl::test::DepositAuth_test, xrpl::test::DepositPreauth_test, xrpl::test::DID_test, xrpl::Discrepancy_test, xrpl::test::DNS_test, xrpl::test::Escrow_test, xrpl::test::EscrowToken_test, xrpl::test::FeeVote_test, xrpl::FixNFTokenPageLinks_test, xrpl::test::Flow_test, xrpl::test::Flow_manual_test, xrpl::Freeze_test, xrpl::test::HashRouter_test, xrpl::test::Invariants_test, xrpl::test::LedgerHistory_test, xrpl::LedgerLoad_test, xrpl::test::LedgerMaster_test, xrpl::test::LedgerReplay_test, xrpl::test::LedgerReplayer_test, xrpl::test::LedgerReplayerTimeout_test, xrpl::test::LedgerReplayerLong_test, xrpl::LoadFeeTrack_test, xrpl::test::Loan_test, xrpl::test::LoanBatch_test, xrpl::test::LoanArbitrary_test, xrpl::test::LoanBroker_test, xrpl::test::LPTokenTransfer_test, xrpl::test::Manifest_test, xrpl::test::MPToken_test, xrpl::test::MultiSign_test, xrpl::test::NetworkID_test, xrpl::test::NetworkOPs_test, xrpl::NFTokenBaseUtil_test, xrpl::NFTokenDisallowIncoming_test, xrpl::NFTokenWOMintOffer_test, xrpl::NFTokenWOModify_test, xrpl::NFTokenAllFeatures_test, xrpl::NFTokenAuth_test, xrpl::NFTokenBurn_test, xrpl::NFTokenDir_test, xrpl::test::OfferBaseUtil_test, xrpl::test::OfferWOSmallQOffers_test, xrpl::test::OfferAllFeatures_test, xrpl::test::Offer_manual_test, xrpl::OfferStream_test, xrpl::test::jtx::oracle::Oracle_test, xrpl::test::PlumpBook_test, xrpl::test::ThinBook_test, xrpl::test::OversizeMeta_test, xrpl::test::FindOversizeCross_test, xrpl::test::Path_test, xrpl::test::PayChan_test, xrpl::test::PayStrand_test, xrpl::test::PermissionedDEX_test, xrpl::test::PermissionedDomains_test, xrpl::test::PseudoTx_test, xrpl::test::RCLValidations_test, xrpl::test::ReducedOffer_test, xrpl::test::Regression_test, xrpl::test::SetAuth_test, xrpl::SetRegularKey_test, xrpl::test::SetTrust_test, xrpl::test::SHAMapStore_test, xrpl::test::TheoreticalQuality_test, xrpl::Ticket_test, xrpl::test::Transaction_ordering_test, xrpl::TrustAndBalance_test, xrpl::Apply_test, xrpl::test::TxQPosNegFlows_test, xrpl::test::TxQMetaInfo_test, xrpl::test::ValidatorKeys_test, xrpl::test::ValidatorList_test, xrpl::test::ValidatorSite_test, xrpl::Vault_test, xrpl::test::XChain_test, xrpl::test::XChainSim_test, xrpl::test::base_uint_test, xrpl::test::Buffer_test, xrpl::test::DetectCrash_test, xrpl::test::Expected_test, xrpl::FileUtilities_test, xrpl::hardened_hash_test, xrpl::tests::IntrusiveShared_test, xrpl::IOUAmount_test, xrpl::test::join_test, xrpl::KeyCache_test, xrpl::Number_test, xrpl::PerfLog_test, xrpl::StringUtilities_test, xrpl::TaggedCache_test, xrpl::test::units_test, xrpl::XRPAmount_test, beast::aged_set_test, beast::aged_map_test, beast::aged_multiset_test, beast::aged_multimap_test, beast::aged_unordered_set_test, beast::aged_unordered_map_test, beast::aged_unordered_multiset_test, beast::aged_unordered_multimap_test, beast::abstract_clock_test, beast::basic_seconds_clock_test, xrpl::test::CurrentThreadName_test, io_latency_probe_test, beast::Journal_test, beast::PropertyStream_test, beast::Zero_test, beast::unit_test::print_test, beast::IP::IPEndpoint_test, beast::LexicalCast_test, beast::SemanticVersion_test, beast::XXHasher_test, xrpl::cryptoconditions::PreimageSha256_test, xrpl::test::ByzantineFailureSim_test, xrpl::test::Consensus_test, xrpl::test::DistributedValidators_test, xrpl::test::LedgerTiming_test, xrpl::test::LedgerTrie_test, xrpl::test::NegativeUNL_test, xrpl::test::NegativeUNLVoteInternal_test, xrpl::test::NegativeUNLVoteScoreTable_test, xrpl::test::NegativeUNLVoteGoodScore_test, xrpl::test::NegativeUNLVoteOffline_test, xrpl::test::NegativeUNLVoteMaxListed_test, xrpl::test::NegativeUNLVoteRetiredValidator_test, xrpl::test::NegativeUNLVoteNewValidator_test, xrpl::test::NegativeUNLVoteFilterValidations_test, xrpl::test::RCLCensorshipDetector_test, xrpl::test::ScaleFreeSim_test, xrpl::test::csf::Validations_test, xrpl::test::ClosureCounter_test, xrpl::Config_test, xrpl::test::Coroutine_test, xrpl::test::JobQueue_test, xrpl::SociDB_test, xrpl::Workers_test, xrpl::test::BasicNetwork_test, xrpl::test::Digraph_test, xrpl::test::Histogram_test, xrpl::test::Scheduler_test, Json::JsonObject_test, xrpl::test::Env_test, xrpl::test::WSClient_test, xrpl::test::BookDirs_test, xrpl::test::Directory_test, xrpl::test::PaymentSandbox_test, xrpl::test::PendingSaves_test, xrpl::test::SkipList_test, xrpl::test::View_test, xrpl::test::GetAmendments_test, xrpl::NodeStore::Backend_test, xrpl::NodeStore::NodeStoreBasic_test, xrpl::NodeStore::Database_test, xrpl::NodeStore::NuDBFactory_test, xrpl::NodeStore::Timing_test, xrpl::NodeStore::tests::varint_test, xrpl::tests::cluster_test, xrpl::test::compression_test, xrpl::test::handshake_test, xrpl::ProtocolVersion_test, xrpl::test::reduce_relay_test, xrpl::test::reduce_relay_simulate_test, xrpl::short_read_test, xrpl::test::traffic_count_test, xrpl::test::tx_reduce_relay_test, xrpl::PeerFinder::Livecache_test, xrpl::PeerFinder::PeerFinder_test, xrpl::test::ApiVersion_test, xrpl::BuildInfo_test, xrpl::Hooks_test, xrpl::InnerObjectFormatsParsedJSON_test, xrpl::Issue_test, xrpl::Memo_test, xrpl::test::MultiApiJson_test, xrpl::PublicKey_test, xrpl::Quality_test, xrpl::SecretKey_test, xrpl::Seed_test, xrpl::SeqProxy_test, xrpl::Serializer_test, xrpl::STAccount_test, xrpl::STAmount_test, xrpl::STInteger_test, xrpl::test::STIssue_test, xrpl::STNumber_test, xrpl::STObject_test, xrpl::STParsedJSON_test, xrpl::STTx_test, xrpl::InnerObjectFormatsSerializer_test, xrpl::STValidation_test, xrpl::TER_test, xrpl::Resource::ResourceManager_test, xrpl::AccountCurrencies_test, xrpl::test::AccountInfo_test, xrpl::RPC::AccountLines_test, xrpl::test::AccountObjects_test, xrpl::test::AccountOffers_test, xrpl::AccountSet_test, xrpl::test::AccountTx_test, xrpl::AmendmentBlocked_test, xrpl::test::AMMInfo_test, xrpl::test::Book_test, xrpl::test::BookChanges_test, xrpl::Connect_test, xrpl::test::DeliveredAmount_test, xrpl::test::DepositAuthorized_test, xrpl::Feature_test, xrpl::test::GatewayBalances_test, xrpl::test::jtx::oracle::GetAggregatePrice_test, xrpl::GetCounts_test, xrpl::test::Handler_test, xrpl::RPC::JSONRPC_test, xrpl::RPC::WalletPropose_test, xrpl::LedgerClosed_test, xrpl::LedgerData_test, xrpl::test::LedgerEntry_test, xrpl::test::LedgerEntry_XChain_test, xrpl::LedgerHeader_test, xrpl::RPC::LedgerRequest_test, xrpl::test::LedgerRPC_test, xrpl::test::ManifestRPC_test, xrpl::test::NoRipple_test, xrpl::NoRippleCheck_test, xrpl::NoRippleCheckLimits_test, xrpl::OwnerInfo_test, xrpl::Peers_test, xrpl::test::RobustTransaction_test, xrpl::test::Roles_test, xrpl::test::RPCCall_test, xrpl::test::RPCHelpers_test, xrpl::test::RPCOverload_test, xrpl::test::ServerDefinitions_test, xrpl::test::ServerInfo_test, xrpl::test::Simulate_test, xrpl::RPC::codeString_test, xrpl::RPC::fillJson_test, xrpl::test::Subscribe_test, xrpl::Transaction_test, xrpl::TransactionEntry_test, xrpl::TransactionHistory_test, xrpl::test::ValidatorInfo_test, xrpl::test::ValidatorRPC_test, xrpl::Version_test, xrpl::test::Server_test, xrpl::test::ServerStatus_test, xrpl::tests::FetchPack_test, xrpl::tests::SHAMap_test, xrpl::tests::SHAMapPathProof_test, and xrpl::tests::SHAMapSync_test.

+

Implemented in xrpl::test::AccountDelete_test, xrpl::AccountTxPaging_test, xrpl::AmendmentTable_test, xrpl::test::AMM_test, xrpl::test::AMMCalc_test, xrpl::test::AMMClawback_test, xrpl::test::AMMExtended_test, xrpl::test::Batch_test, xrpl::Check_test, xrpl::Clawback_test, xrpl::test::Credentials_test, xrpl::test::CrossingLimits_test, xrpl::test::Delegate_test, xrpl::test::DeliverMin_test, xrpl::test::DepositAuth_test, xrpl::test::DepositPreauth_test, xrpl::test::DID_test, xrpl::Discrepancy_test, xrpl::test::DNS_test, xrpl::test::Escrow_test, xrpl::test::EscrowToken_test, xrpl::test::FeeVote_test, xrpl::FixNFTokenPageLinks_test, xrpl::test::Flow_test, xrpl::test::Flow_manual_test, xrpl::Freeze_test, xrpl::test::HashRouter_test, xrpl::test::Invariants_test, xrpl::test::LedgerHistory_test, xrpl::LedgerLoad_test, xrpl::test::LedgerMaster_test, xrpl::test::LedgerReplay_test, xrpl::test::LedgerReplayer_test, xrpl::test::LedgerReplayerTimeout_test, xrpl::test::LedgerReplayerLong_test, xrpl::LoadFeeTrack_test, xrpl::test::Loan_test, xrpl::test::LoanBatch_test, xrpl::test::LoanArbitrary_test, xrpl::test::LoanBroker_test, xrpl::test::LPTokenTransfer_test, xrpl::test::Manifest_test, xrpl::test::MPToken_test, xrpl::test::MultiSign_test, xrpl::test::NetworkID_test, xrpl::test::NetworkOPs_test, xrpl::NFTokenBaseUtil_test, xrpl::NFTokenDisallowIncoming_test, xrpl::NFTokenWOMintOffer_test, xrpl::NFTokenWOModify_test, xrpl::NFTokenAllFeatures_test, xrpl::NFTokenAuth_test, xrpl::NFTokenBurn_test, xrpl::NFTokenDir_test, xrpl::test::OfferBaseUtil_test, xrpl::test::OfferWOSmallQOffers_test, xrpl::test::OfferAllFeatures_test, xrpl::test::Offer_manual_test, xrpl::OfferStream_test, xrpl::test::jtx::oracle::Oracle_test, xrpl::test::PlumpBook_test, xrpl::test::ThinBook_test, xrpl::test::OversizeMeta_test, xrpl::test::FindOversizeCross_test, xrpl::test::Path_test, xrpl::test::PayChan_test, xrpl::test::PayStrand_test, xrpl::test::PermissionedDEX_test, xrpl::test::PermissionedDomains_test, xrpl::test::PseudoTx_test, xrpl::test::RCLValidations_test, xrpl::test::ReducedOffer_test, xrpl::test::Regression_test, xrpl::test::SetAuth_test, xrpl::SetRegularKey_test, xrpl::test::SetTrust_test, xrpl::test::SHAMapStore_test, xrpl::test::TheoreticalQuality_test, xrpl::Ticket_test, xrpl::test::Transaction_ordering_test, xrpl::TrustAndBalance_test, xrpl::Apply_test, xrpl::test::TxQPosNegFlows_test, xrpl::test::TxQMetaInfo_test, xrpl::test::ValidatorKeys_test, xrpl::test::ValidatorList_test, xrpl::test::ValidatorSite_test, xrpl::Vault_test, xrpl::test::XChain_test, xrpl::test::XChainSim_test, xrpl::test::base_uint_test, xrpl::test::Buffer_test, xrpl::test::DetectCrash_test, xrpl::test::Expected_test, xrpl::FileUtilities_test, xrpl::hardened_hash_test, xrpl::tests::IntrusiveShared_test, xrpl::IOUAmount_test, xrpl::test::join_test, xrpl::KeyCache_test, xrpl::Number_test, xrpl::PerfLog_test, xrpl::StringUtilities_test, xrpl::TaggedCache_test, xrpl::test::units_test, xrpl::XRPAmount_test, beast::aged_set_test, beast::aged_map_test, beast::aged_multiset_test, beast::aged_multimap_test, beast::aged_unordered_set_test, beast::aged_unordered_map_test, beast::aged_unordered_multiset_test, beast::aged_unordered_multimap_test, beast::abstract_clock_test, beast::basic_seconds_clock_test, xrpl::test::CurrentThreadName_test, io_latency_probe_test, beast::Journal_test, beast::PropertyStream_test, beast::Zero_test, beast::unit_test::print_test, beast::IP::IPEndpoint_test, beast::LexicalCast_test, beast::SemanticVersion_test, beast::XXHasher_test, xrpl::cryptoconditions::PreimageSha256_test, xrpl::test::ByzantineFailureSim_test, xrpl::test::Consensus_test, xrpl::test::DistributedValidators_test, xrpl::test::LedgerTiming_test, xrpl::test::LedgerTrie_test, xrpl::test::NegativeUNL_test, xrpl::test::NegativeUNLVoteInternal_test, xrpl::test::NegativeUNLVoteScoreTable_test, xrpl::test::NegativeUNLVoteGoodScore_test, xrpl::test::NegativeUNLVoteOffline_test, xrpl::test::NegativeUNLVoteMaxListed_test, xrpl::test::NegativeUNLVoteRetiredValidator_test, xrpl::test::NegativeUNLVoteNewValidator_test, xrpl::test::NegativeUNLVoteFilterValidations_test, xrpl::test::RCLCensorshipDetector_test, xrpl::test::ScaleFreeSim_test, xrpl::test::csf::Validations_test, xrpl::test::ClosureCounter_test, xrpl::Config_test, xrpl::test::Coroutine_test, xrpl::test::JobQueue_test, xrpl::SociDB_test, xrpl::Workers_test, xrpl::test::BasicNetwork_test, xrpl::test::Digraph_test, xrpl::test::Histogram_test, xrpl::test::Scheduler_test, xrpl::test::Env_test, xrpl::test::WSClient_test, xrpl::test::BookDirs_test, xrpl::test::Directory_test, xrpl::test::PaymentSandbox_test, xrpl::test::PendingSaves_test, xrpl::test::SkipList_test, xrpl::test::View_test, xrpl::test::GetAmendments_test, xrpl::NodeStore::Backend_test, xrpl::NodeStore::NodeStoreBasic_test, xrpl::NodeStore::Database_test, xrpl::NodeStore::NuDBFactory_test, xrpl::NodeStore::Timing_test, xrpl::NodeStore::tests::varint_test, xrpl::tests::cluster_test, xrpl::test::compression_test, xrpl::test::handshake_test, xrpl::ProtocolVersion_test, xrpl::test::reduce_relay_test, xrpl::test::reduce_relay_simulate_test, xrpl::short_read_test, xrpl::test::traffic_count_test, xrpl::test::tx_reduce_relay_test, xrpl::PeerFinder::Livecache_test, xrpl::PeerFinder::PeerFinder_test, xrpl::test::ApiVersion_test, xrpl::BuildInfo_test, xrpl::Hooks_test, xrpl::InnerObjectFormatsParsedJSON_test, xrpl::Issue_test, xrpl::Memo_test, xrpl::test::MultiApiJson_test, xrpl::PublicKey_test, xrpl::Quality_test, xrpl::SecretKey_test, xrpl::Seed_test, xrpl::SeqProxy_test, xrpl::Serializer_test, xrpl::STAccount_test, xrpl::STAmount_test, xrpl::STInteger_test, xrpl::test::STIssue_test, xrpl::STNumber_test, xrpl::STObject_test, xrpl::STParsedJSON_test, xrpl::STTx_test, xrpl::InnerObjectFormatsSerializer_test, xrpl::STValidation_test, xrpl::TER_test, xrpl::Resource::ResourceManager_test, xrpl::AccountCurrencies_test, xrpl::test::AccountInfo_test, xrpl::RPC::AccountLines_test, xrpl::test::AccountObjects_test, xrpl::test::AccountOffers_test, xrpl::AccountSet_test, xrpl::test::AccountTx_test, xrpl::AmendmentBlocked_test, xrpl::test::AMMInfo_test, xrpl::test::Book_test, xrpl::test::BookChanges_test, xrpl::Connect_test, xrpl::test::DeliveredAmount_test, xrpl::test::DepositAuthorized_test, xrpl::Feature_test, xrpl::test::GatewayBalances_test, xrpl::test::jtx::oracle::GetAggregatePrice_test, xrpl::GetCounts_test, xrpl::test::Handler_test, xrpl::RPC::JSONRPC_test, xrpl::RPC::WalletPropose_test, xrpl::LedgerClosed_test, xrpl::LedgerData_test, xrpl::test::LedgerEntry_test, xrpl::test::LedgerEntry_XChain_test, xrpl::LedgerHeader_test, xrpl::RPC::LedgerRequest_test, xrpl::test::LedgerRPC_test, xrpl::test::ManifestRPC_test, xrpl::test::NoRipple_test, xrpl::NoRippleCheck_test, xrpl::NoRippleCheckLimits_test, xrpl::OwnerInfo_test, xrpl::Peers_test, xrpl::test::RobustTransaction_test, xrpl::test::Roles_test, xrpl::test::RPCCall_test, xrpl::test::RPCHelpers_test, xrpl::test::RPCOverload_test, xrpl::test::ServerDefinitions_test, xrpl::test::ServerInfo_test, xrpl::test::Simulate_test, xrpl::RPC::codeString_test, xrpl::RPC::fillJson_test, xrpl::test::Subscribe_test, xrpl::Transaction_test, xrpl::TransactionEntry_test, xrpl::TransactionHistory_test, xrpl::test::ValidatorInfo_test, xrpl::test::ValidatorRPC_test, xrpl::Version_test, xrpl::test::Server_test, xrpl::test::ServerStatus_test, xrpl::tests::FetchPack_test, xrpl::tests::SHAMap_test, xrpl::tests::SHAMapPathProof_test, and xrpl::tests::SHAMapSync_test.

diff --git a/classxrpl_1_1RPC_1_1LedgerHandler-members.html b/classxrpl_1_1RPC_1_1LedgerHandler-members.html index 3c8095a597..85722f2186 100644 --- a/classxrpl_1_1RPC_1_1LedgerHandler-members.html +++ b/classxrpl_1_1RPC_1_1LedgerHandler-members.html @@ -91,7 +91,7 @@ $(function() { queueTxs_xrpl::RPC::LedgerHandlerprivate result_xrpl::RPC::LedgerHandlerprivate rolexrpl::RPC::LedgerHandlerstatic - writeResult(Object &)xrpl::RPC::LedgerHandler + writeResult(Json::Value &)xrpl::RPC::LedgerHandler