Skip to content

Commit 9566bd6

Browse files
committed
resolve doc
1 parent a50992c commit 9566bd6

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

src/rpc/handlers/AccountMPTokenIssuances.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ namespace rpc {
5151

5252
void
5353
AccountMPTokenIssuancesHandler::addMPTokenIssuance(
54-
std::vector<MPTokenIssuancesResponse>& issuances,
54+
std::vector<MPTokenIssuanceResponse>& issuances,
5555
ripple::SLE const& sle,
5656
ripple::AccountID const& account
5757
)
5858
{
59-
MPTokenIssuancesResponse issuance;
59+
MPTokenIssuanceResponse issuance;
6060

6161
issuance.issuer = ripple::to_string(account);
6262
issuance.sequence = sle.getFieldU32(ripple::sfSequence);
@@ -203,7 +203,7 @@ void
203203
tag_invoke(
204204
boost::json::value_from_tag,
205205
boost::json::value& jv,
206-
AccountMPTokenIssuancesHandler::MPTokenIssuancesResponse const& issuance
206+
AccountMPTokenIssuancesHandler::MPTokenIssuanceResponse const& issuance
207207
)
208208
{
209209
auto obj = boost::json::object{

src/rpc/handlers/AccountMPTokenIssuances.hpp

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class AccountMPTokenIssuancesHandler {
6060
/**
6161
* @brief A struct to hold data for one MPTokenIssuance response.
6262
*/
63-
struct MPTokenIssuancesResponse {
63+
struct MPTokenIssuanceResponse {
6464
std::string issuer;
6565
uint32_t sequence{};
6666

@@ -87,7 +87,7 @@ class AccountMPTokenIssuancesHandler {
8787
*/
8888
struct Output {
8989
std::string account;
90-
std::vector<MPTokenIssuancesResponse> issuances;
90+
std::vector<MPTokenIssuanceResponse> issuances;
9191
std::string ledgerHash;
9292
uint32_t ledgerIndex{};
9393
bool validated = true;
@@ -158,33 +158,42 @@ class AccountMPTokenIssuancesHandler {
158158

159159
private:
160160
/**
161-
* @brief Populates an MPTokenIssuancesResponse from a ledger entry and adds it to the list.
161+
* @brief Populates an MPTokenIssuanceResponse from a ledger entry and adds it to the list.
162162
*/
163163
static void
164164
addMPTokenIssuance(
165-
std::vector<MPTokenIssuancesResponse>& issuances,
165+
std::vector<MPTokenIssuanceResponse>& issuances,
166166
ripple::SLE const& sle,
167167
ripple::AccountID const& account
168168
);
169169

170170
private:
171171
/**
172-
* @brief Convert the Output to a JSON object.
172+
* @brief Convert the Output to a JSON object
173+
*
174+
* @param [out] jv The JSON object to convert to
175+
* @param output The output to convert
173176
*/
174177
friend void
175178
tag_invoke(boost::json::value_from_tag, boost::json::value& jv, Output const& output);
176179

177180
/**
178-
* @brief Convert a JSON object to Input type.
181+
* @brief Convert a JSON object to Input type
182+
*
183+
* @param jv The JSON object to convert
184+
* @return Input parsed from the JSON object
179185
*/
180186
friend Input
181187
tag_invoke(boost::json::value_to_tag<Input>, boost::json::value const& jv);
182188

183189
/**
184-
* @brief Convert the MPTokenIssuancesResponse to a JSON object.
190+
* @brief Convert the MPTokenIssuanceResponse to a JSON object
191+
*
192+
* @param [out] jv The JSON object to convert to
193+
* @param line The MPTokenIssuance response to convert
185194
*/
186195
friend void
187-
tag_invoke(boost::json::value_from_tag, boost::json::value& jv, MPTokenIssuancesResponse const& issuance);
196+
tag_invoke(boost::json::value_from_tag, boost::json::value& jv, MPTokenIssuanceResponse const& issuance);
188197
};
189198

190199
} // namespace rpc

src/rpc/handlers/AccountMPTokens.hpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,28 @@ class AccountMPTokensHandler {
152152

153153
private:
154154
/**
155-
* @brief Convert the Output to a JSON object.
155+
* @brief Convert the Output to a JSON object
156+
*
157+
* @param [out] jv The JSON object to convert to
158+
* @param output The output to convert
156159
*/
157160
friend void
158161
tag_invoke(boost::json::value_from_tag, boost::json::value& jv, Output const& output);
159162

160163
/**
161-
* @brief Convert a JSON object to Input type.
164+
* @brief Convert a JSON object to Input type
165+
*
166+
* @param jv The JSON object to convert
167+
* @return Input parsed from the JSON object
162168
*/
163169
friend Input
164170
tag_invoke(boost::json::value_to_tag<Input>, boost::json::value const& jv);
165171

166172
/**
167-
* @brief Convert the MPTokenResponse to a JSON object.
173+
* @brief Convert the MPTokenResponse to a JSON object
174+
*
175+
* @param [out] jv The JSON object to convert to
176+
* @param line The MPToken response to convert
168177
*/
169178
friend void
170179
tag_invoke(boost::json::value_from_tag, boost::json::value& jv, MPTokenResponse const& mptoken);

0 commit comments

Comments
 (0)