mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-31 06:05:50 +00:00
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d). This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
47 lines
865 B
C++
47 lines
865 B
C++
#include <test/jtx/did.h>
|
|
|
|
#include <xrpl/protocol/TxFlags.h>
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace ripple {
|
|
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 ripple
|