Files
rippled/src/test/jtx/impl/dids.cpp
Bart 1d42c4f6de refactor: Remove unnecessary copyright notices already covered by LICENSE.md (#5929)
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.
2025-11-04 08:33:42 +00:00

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