20 #include <ripple/basics/contract.h>
21 #include <ripple/protocol/ErrorCodes.h>
22 #include <ripple/protocol/HashPrefix.h>
23 #include <ripple/protocol/Indexes.h>
24 #include <ripple/protocol/STParsedJSON.h>
25 #include <ripple/protocol/UintTypes.h>
26 #include <ripple/protocol/jss.h>
28 #include <test/jtx/utility.h>
40 return std::move(*p.
object);
46 jv[jss::SigningPubKey] =
strHex(account.pk().slice());
67 auto const account = parseBase58<AccountID>(jv[jss::Account].asString());
69 Throw<parse_error>(
"unexpected invalid Account");
72 Throw<parse_error>(
"unexpected missing account root");
73 jv[jss::Sequence] = ar->getFieldU32(
sfSequence);
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_UINT32 sfSequence
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.
void sign(Json::Value &jv, Account const &account)
Sign automatically.
std::optional< STObject > object
The STObject if the parse was successful.
Json::Value error
On failure, an appropriate set of error values.
Keylet account(AccountID const &id) noexcept
AccountID root.
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
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.
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
Immutable cryptographic account descriptor.
int add32(std::uint32_t i)
std::string strHex(FwdIt begin, FwdIt end)
@ txSign
inner transaction to sign
STObject parse(Json::Value const &jv)
Convert JSON to STObject.