mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
31 lines
605 B
C++
31 lines
605 B
C++
#include <test/jtx/regkey.h>
|
|
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace xrpl {
|
|
namespace test {
|
|
namespace jtx {
|
|
|
|
Json::Value
|
|
regkey(Account const& account, disabled_t)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::Account] = account.human();
|
|
jv[jss::TransactionType] = jss::SetRegularKey;
|
|
return jv;
|
|
}
|
|
|
|
Json::Value
|
|
regkey(Account const& account, Account const& signer)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::Account] = account.human();
|
|
jv["RegularKey"] = to_string(signer.id());
|
|
jv[jss::TransactionType] = jss::SetRegularKey;
|
|
return jv;
|
|
}
|
|
|
|
} // namespace jtx
|
|
} // namespace test
|
|
} // namespace xrpl
|