1#ifndef XRPL_PROTOCOL_STTX_H_INCLUDED
2#define XRPL_PROTOCOL_STTX_H_INCLUDED
4#include <xrpl/basics/Expected.h>
5#include <xrpl/protocol/Feature.h>
6#include <xrpl/protocol/PublicKey.h>
7#include <xrpl/protocol/Rules.h>
8#include <xrpl/protocol/STObject.h>
9#include <xrpl/protocol/SecretKey.h>
10#include <xrpl/protocol/SeqProxy.h>
11#include <xrpl/protocol/TxFormats.h>
13#include <boost/container/flat_set.hpp>
87 boost::container::flat_set<AccountID>
121 Rules const& rules)
const;
176 Rules const& rules)
const;
Tracks the number of instances of an object.
Rules controlling protocol behavior.
A type which can be exported to a well known binary format.
Blob getFieldVL(SField const &field) const
boost::container::flat_set< AccountID > getMentionedAccounts() const
uint256 getSigningHash() const
static std::string const & getMetaSQLInsertReplaceHeader()
std::vector< uint256 > batchTxnIds_
Expected< void, std::string > checkSingleSign(RequireFullyCanonicalSig requireCanonicalSig, STObject const &sigObject) const
SeqProxy getSeqProxy() const
static constexpr std::size_t minMultiSigners
Json::Value getJson(JsonOptions options) const override
Expected< void, std::string > checkBatchSingleSign(STObject const &batchSigner, RequireFullyCanonicalSig requireCanonicalSig) const
std::vector< uint256 > const & getBatchTransactionIDs() const
Retrieves a batch of transaction IDs from the STTx.
STBase * move(std::size_t n, void *buf) override
static constexpr std::size_t maxMultiSigners
Blob getSigningPubKey() const
Expected< void, std::string > checkSign(RequireFullyCanonicalSig requireCanonicalSig, Rules const &rules) const
Check the signature.
Expected< void, std::string > checkBatchMultiSign(STObject const &batchSigner, RequireFullyCanonicalSig requireCanonicalSig, Rules const &rules) const
STTx & operator=(STTx const &other)=delete
Blob getSignature() const
std::uint32_t getSeqValue() const
Returns the first non-zero value of (Sequence, TicketSequence).
STTx(STTx const &other)=default
void sign(PublicKey const &publicKey, SecretKey const &secretKey, std::optional< std::reference_wrapper< SField const > > signatureTarget={})
TxType getTxnType() const
std::string getMetaSQL(std::uint32_t inLedger, std::string const &escapedMetaData) const
uint256 getTransactionID() const
Expected< void, std::string > checkMultiSign(RequireFullyCanonicalSig requireCanonicalSig, Rules const &rules, STObject const &sigObject) const
SerializedTypeID getSType() const override
std::string getFullText() const override
Expected< void, std::string > checkBatchSign(RequireFullyCanonicalSig requireCanonicalSig, Rules const &rules) const
STBase * copy(std::size_t n, void *buf) const override
A type that represents either a sequence value or a ticket value.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< STTx const > sterilize(STTx const &stx)
Sterilize a transaction.
TxType
Transaction type identifiers.
bool isPseudoTx(STObject const &tx)
Check whether a transaction is a pseudo-transaction.
bool passesLocalChecks(STObject const &st, std::string &)
Note, should be treated as flags that can be | and &.