mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Rename 'share' to 'shares' in vault_info RPC
This commit is contained in:
@@ -561,7 +561,7 @@ JSS(server_status); // out: NetworkOPs
|
|||||||
JSS(server_version); // out: NetworkOPs
|
JSS(server_version); // out: NetworkOPs
|
||||||
JSS(settle_delay); // out: AccountChannels
|
JSS(settle_delay); // out: AccountChannels
|
||||||
JSS(severity); // in: LogLevel
|
JSS(severity); // in: LogLevel
|
||||||
JSS(share); // out: VaultInfo
|
JSS(shares); // out: VaultInfo
|
||||||
JSS(signature); // out: NetworkOPs, ChannelAuthorize
|
JSS(signature); // out: NetworkOPs, ChannelAuthorize
|
||||||
JSS(signature_verified); // out: ChannelVerify
|
JSS(signature_verified); // out: ChannelVerify
|
||||||
JSS(signing_key); // out: NetworkOPs
|
JSS(signing_key); // out: NetworkOPs
|
||||||
|
|||||||
@@ -807,7 +807,7 @@ class Vault_test : public beast::unit_test::suite
|
|||||||
BEAST_EXPECT(
|
BEAST_EXPECT(
|
||||||
jvVault[jss::result][jss::vault][sfAssetsTotal] == "100");
|
jvVault[jss::result][jss::vault][sfAssetsTotal] == "100");
|
||||||
BEAST_EXPECT(
|
BEAST_EXPECT(
|
||||||
jvVault[jss::result][jss::vault][jss::share]
|
jvVault[jss::result][jss::vault][jss::shares]
|
||||||
[sfOutstandingAmount] == "100");
|
[sfOutstandingAmount] == "100");
|
||||||
|
|
||||||
// Vault pseudo-account
|
// Vault pseudo-account
|
||||||
@@ -846,7 +846,7 @@ class Vault_test : public beast::unit_test::suite
|
|||||||
BEAST_EXPECT(
|
BEAST_EXPECT(
|
||||||
jvVault[jss::result][jss::vault][sfAssetsTotal] == "50");
|
jvVault[jss::result][jss::vault][sfAssetsTotal] == "50");
|
||||||
BEAST_EXPECT(
|
BEAST_EXPECT(
|
||||||
jvVault[jss::result][jss::vault][jss::share]
|
jvVault[jss::result][jss::vault][jss::shares]
|
||||||
[sfOutstandingAmount] == "50");
|
[sfOutstandingAmount] == "50");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1556,7 +1556,7 @@ class Vault_test : public beast::unit_test::suite
|
|||||||
BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
|
BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
|
||||||
check(
|
check(
|
||||||
jv[jss::result][jss::vault],
|
jv[jss::result][jss::vault],
|
||||||
jv[jss::result][jss::vault][jss::share]);
|
jv[jss::result][jss::vault][jss::shares]);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -1571,7 +1571,7 @@ class Vault_test : public beast::unit_test::suite
|
|||||||
BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
|
BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
|
||||||
check(
|
check(
|
||||||
jv[jss::result][jss::vault],
|
jv[jss::result][jss::vault],
|
||||||
jv[jss::result][jss::vault][jss::share]);
|
jv[jss::result][jss::vault][jss::shares]);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ doVaultInfo(RPC::JsonContext& context)
|
|||||||
|
|
||||||
Json::Value& vault = jvResult[jss::vault];
|
Json::Value& vault = jvResult[jss::vault];
|
||||||
vault = sleVault->getJson(JsonOptions::none);
|
vault = sleVault->getJson(JsonOptions::none);
|
||||||
auto& share = vault[jss::share];
|
auto& share = vault[jss::shares];
|
||||||
share = sleIssuance->getJson(JsonOptions::none);
|
share = sleIssuance->getJson(JsonOptions::none);
|
||||||
|
|
||||||
jvResult[jss::vault] = vault;
|
jvResult[jss::vault] = vault;
|
||||||
|
|||||||
Reference in New Issue
Block a user