rippled
Loading...
Searching...
No Matches
ticket.cpp
1#include <test/jtx/ticket.h>
2
3#include <xrpl/protocol/jss.h>
4
5namespace ripple {
6namespace test {
7namespace jtx {
8
9namespace ticket {
10
12create(Account const& account, std::uint32_t count)
13{
14 Json::Value jv;
15 jv[jss::Account] = account.human();
16 jv[jss::TransactionType] = jss::TicketCreate;
17 jv[sfTicketCount.jsonName] = count;
18 return jv;
19}
20
21void
23{
24 jt.fill_seq = false;
25 jt[sfSequence.jsonName] = 0u;
26 jt[sfTicketSequence.jsonName] = ticketSeq_;
27}
28
29} // namespace ticket
30
31} // namespace jtx
32} // namespace test
33} // namespace ripple
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:20
A transaction testing environment.
Definition Env.h:102
void operator()(Env &, JTx &jt) const
Definition ticket.cpp:22
Json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
Definition ticket.cpp:12
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Execution context for applying a JSON transaction.
Definition JTx.h:26