20 #include <test/jtx/utility.h>
21 #include <ripple/protocol/ErrorCodes.h>
22 #include <ripple/protocol/HashPrefix.h>
23 #include <ripple/protocol/Indexes.h>
24 #include <ripple/protocol/jss.h>
25 #include <ripple/protocol/STParsedJSON.h>
26 #include <ripple/protocol/UintTypes.h>
27 #include <ripple/basics/contract.h>
41 return std::move(*p.
object);
48 jv[jss::SigningPubKey] =
49 strHex(account.pk().slice());
54 account.pk(), account.sk(), ss.
slice());
55 jv[jss::TxnSignature] =
76 parseBase58<AccountID>(
77 jv[jss::Account].asString());
80 "unexpected invalid Account");
81 auto const ar = view.
read(
85 "unexpected missing account root");
std::string rpcErrorString(Json::Value const &jv)
Returns a single string with the contents of an RPC error.
An immutable linear range of bytes.
const SF_U32 sfSequence(access, STI_UINT32, 4, "Sequence")
virtual Fees const & fees() const =0
Returns the fees for the base ledger.
void fill_seq(Json::Value &jv, ReadView const &view)
Set the sequence number automatically.
Holds the serialized result of parsing an input JSON object.
std::string to_string(ListDisposition disposition)
void sign(Json::Value &jv, Account const &account)
Sign automatically.
Json::Value error
On failure, an appropriate set of error values.
static const account_t account
void fill_fee(Json::Value &jv, ReadView const &view)
Set the fee automatically.
Slice slice() const noexcept
bool isMember(const char *key) const
Return true if the object has a member named key.
Set the regular signature on a JTx.
void addWithoutSigningFields(Serializer &s) const
boost::optional< STObject > object
The STObject if the parse was successful.
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &m)
Generate a signature for a message.
Immutable cryptographic account descriptor.
std::string strHex(FwdIt begin, FwdIt end)
@ txSign
inner transaction to sign
STObject parse(Json::Value const &jv)
Convert JSON to STObject.