mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-07 10:47:05 +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.
47 lines
861 B
C++
47 lines
861 B
C++
#include <test/jtx/did.h>
|
|
|
|
#include <xrpl/protocol/TxFlags.h>
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace xrpl {
|
|
namespace test {
|
|
namespace jtx {
|
|
|
|
/** DID operations. */
|
|
namespace did {
|
|
|
|
Json::Value
|
|
set(jtx::Account const& account)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::TransactionType] = jss::DIDSet;
|
|
jv[jss::Account] = to_string(account.id());
|
|
return jv;
|
|
}
|
|
|
|
Json::Value
|
|
setValid(jtx::Account const& account)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::TransactionType] = jss::DIDSet;
|
|
jv[jss::Account] = to_string(account.id());
|
|
jv[sfURI.jsonName] = strHex(std::string{"uri"});
|
|
return jv;
|
|
}
|
|
|
|
Json::Value
|
|
del(jtx::Account const& account)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::TransactionType] = jss::DIDDelete;
|
|
jv[jss::Account] = to_string(account.id());
|
|
return jv;
|
|
}
|
|
|
|
} // namespace did
|
|
|
|
} // namespace jtx
|
|
|
|
} // namespace test
|
|
} // namespace xrpl
|