mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +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.
34 lines
607 B
C++
34 lines
607 B
C++
#include <test/jtx/ticket.h>
|
|
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
namespace xrpl {
|
|
namespace test {
|
|
namespace jtx {
|
|
|
|
namespace ticket {
|
|
|
|
Json::Value
|
|
create(Account const& account, std::uint32_t count)
|
|
{
|
|
Json::Value jv;
|
|
jv[jss::Account] = account.human();
|
|
jv[jss::TransactionType] = jss::TicketCreate;
|
|
jv[sfTicketCount.jsonName] = count;
|
|
return jv;
|
|
}
|
|
|
|
void
|
|
use::operator()(Env&, JTx& jt) const
|
|
{
|
|
jt.fill_seq = false;
|
|
jt[sfSequence.jsonName] = 0u;
|
|
jt[sfTicketSequence.jsonName] = ticketSeq_;
|
|
}
|
|
|
|
} // namespace ticket
|
|
|
|
} // namespace jtx
|
|
} // namespace test
|
|
} // namespace xrpl
|