|
rippled
|
#include <STTx.h>


Public Types | |
| using | iterator = boost::transform_iterator< Transform, STObject::list_type::const_iterator > |
Public Member Functions | |
| STTx ()=delete | |
| STTx (STTx const &other)=default | |
| STTx & | operator= (STTx const &other)=delete |
| STTx (SerialIter &sit) | |
| STTx (SerialIter &&sit) | |
| STTx (STObject &&object) | |
| STTx (TxType type, std::function< void(STObject &)> assembler) | |
| Constructs a transaction. | |
| SerializedTypeID | getSType () const override |
| std::string | getFullText () const override |
| Blob | getSignature () const |
| uint256 | getSigningHash () const |
| TxType | getTxnType () const |
| Blob | getSigningPubKey () const |
| SeqProxy | getSeqProxy () const |
| std::uint32_t | getSeqValue () const |
| Returns the first non-zero value of (Sequence, TicketSequence). | |
| boost::container::flat_set< AccountID > | getMentionedAccounts () const |
| uint256 | getTransactionID () const |
| Json::Value | getJson (JsonOptions options) const override |
| Json::Value | getJson (JsonOptions options, bool binary) const |
| void | sign (PublicKey const &publicKey, SecretKey const &secretKey, std::optional< std::reference_wrapper< SField const > > signatureTarget={}) |
| Expected< void, std::string > | checkSign (Rules const &rules) const |
| Check the signature. | |
| Expected< void, std::string > | checkBatchSign (Rules const &rules) const |
| std::string | getMetaSQL (std::uint32_t inLedger, std::string const &escapedMetaData) const |
| std::string | getMetaSQL (Serializer rawTxn, std::uint32_t inLedger, char status, std::string const &escapedMetaData) const |
| std::vector< uint256 > const & | getBatchTransactionIDs () const |
| Retrieves a batch of transaction IDs from the STTx. | |
| iterator | begin () const |
| iterator | end () const |
| bool | empty () const |
| void | reserve (std::size_t n) |
| void | applyTemplate (SOTemplate const &type) |
| void | applyTemplateFromSField (SField const &) |
| bool | isFree () const |
| void | set (SOTemplate const &) |
| bool | set (SerialIter &u, int depth=0) |
| void | set (std::unique_ptr< STBase > v) |
| Set a field. | |
| void | set (STBase &&v) |
| bool | isEquivalent (STBase const &t) const override |
| bool | isDefault () const override |
| void | add (Serializer &s) const override |
| std::string | getText () const override |
| void | addWithoutSigningFields (Serializer &s) const |
| Serializer | getSerializer () const |
| template<class... Args> | |
| std::size_t | emplace_back (Args &&... args) |
| int | getCount () const |
| bool | setFlag (std::uint32_t) |
| bool | clearFlag (std::uint32_t) |
| bool | isFlag (std::uint32_t) const |
| std::uint32_t | getFlags () const |
| uint256 | getHash (HashPrefix prefix) const |
| uint256 | getSigningHash (HashPrefix prefix) const |
| STBase const & | peekAtIndex (int offset) const |
| STBase & | getIndex (int offset) |
| STBase const * | peekAtPIndex (int offset) const |
| STBase * | getPIndex (int offset) |
| int | getFieldIndex (SField const &field) const |
| SField const & | getFieldSType (int index) const |
| STBase const & | peekAtField (SField const &field) const |
| STBase & | getField (SField const &field) |
| STBase const * | peekAtPField (SField const &field) const |
| STBase * | getPField (SField const &field, bool createOkay=false) |
| unsigned char | getFieldU8 (SField const &field) const |
| std::uint16_t | getFieldU16 (SField const &field) const |
| std::uint32_t | getFieldU32 (SField const &field) const |
| std::uint64_t | getFieldU64 (SField const &field) const |
| uint128 | getFieldH128 (SField const &field) const |
| uint160 | getFieldH160 (SField const &field) const |
| uint192 | getFieldH192 (SField const &field) const |
| uint256 | getFieldH256 (SField const &field) const |
| std::int32_t | getFieldI32 (SField const &field) const |
| AccountID | getAccountID (SField const &field) const |
| Blob | getFieldVL (SField const &field) const |
| STAmount const & | getFieldAmount (SField const &field) const |
| STPathSet const & | getFieldPathSet (SField const &field) const |
| STVector256 const & | getFieldV256 (SField const &field) const |
| STObject | getFieldObject (SField const &field) const |
| STArray const & | getFieldArray (SField const &field) const |
| STCurrency const & | getFieldCurrency (SField const &field) const |
| STNumber const & | getFieldNumber (SField const &field) const |
| template<class T > | |
| T::value_type | operator[] (TypedField< T > const &f) const |
| Get the value of a field. | |
| template<class T > | |
| std::optional< std::decay_t< typename T::value_type > > | operator[] (OptionaledField< T > const &of) const |
| Get the value of a field as a std::optional. | |
| template<class T > | |
| ValueProxy< T > | operator[] (TypedField< T > const &f) |
| Get a modifiable field value. | |
| template<class T > | |
| OptionalProxy< T > | operator[] (OptionaledField< T > const &of) |
| Return a modifiable field value as std::optional. | |
| template<class T > | |
| auto | operator[] (TypedField< T > const &f) -> ValueProxy< T > |
| template<class T > | |
| auto | operator[] (OptionaledField< T > const &of) -> OptionalProxy< T > |
| template<class T > | |
| T::value_type | at (TypedField< T > const &f) const |
| Get the value of a field. | |
| template<class T > | |
| std::optional< std::decay_t< typename T::value_type > > | at (OptionaledField< T > const &of) const |
| Get the value of a field as std::optional. | |
| template<class T > | |
| ValueProxy< T > | at (TypedField< T > const &f) |
| Get a modifiable field value. | |
| template<class T > | |
| OptionalProxy< T > | at (OptionaledField< T > const &of) |
| Return a modifiable field value as std::optional. | |
| template<class T > | |
| auto | at (TypedField< T > const &f) -> ValueProxy< T > |
| template<class T > | |
| auto | at (OptionaledField< T > const &of) -> OptionalProxy< T > |
| void | setFieldU8 (SField const &field, unsigned char) |
| void | setFieldU16 (SField const &field, std::uint16_t) |
| void | setFieldU32 (SField const &field, std::uint32_t) |
| void | setFieldU64 (SField const &field, std::uint64_t) |
| void | setFieldH128 (SField const &field, uint128 const &) |
| void | setFieldH256 (SField const &field, uint256 const &) |
| void | setFieldI32 (SField const &field, std::int32_t) |
| void | setFieldVL (SField const &field, Blob const &) |
| void | setFieldVL (SField const &field, Slice const &) |
| void | setAccountID (SField const &field, AccountID const &) |
| void | setFieldAmount (SField const &field, STAmount const &) |
| void | setFieldIssue (SField const &field, STIssue const &) |
| void | setFieldCurrency (SField const &field, STCurrency const &) |
| void | setFieldNumber (SField const &field, STNumber const &) |
| void | setFieldPathSet (SField const &field, STPathSet const &) |
| void | setFieldV256 (SField const &field, STVector256 const &v) |
| void | setFieldArray (SField const &field, STArray const &v) |
| void | setFieldObject (SField const &field, STObject const &v) |
| template<class Tag > | |
| void | setFieldH160 (SField const &field, base_uint< 160, Tag > const &v) |
| STObject & | peekFieldObject (SField const &field) |
| STArray & | peekFieldArray (SField const &field) |
| bool | isFieldPresent (SField const &field) const |
| STBase * | makeFieldPresent (SField const &field) |
| void | makeFieldAbsent (SField const &field) |
| bool | delField (SField const &field) |
| void | delField (int index) |
| SOEStyle | getStyle (SField const &field) const |
| bool | hasMatchingEntry (STBase const &) |
| bool | operator== (STObject const &o) const |
| bool | operator== (STBase const &t) const |
| bool | operator!= (STObject const &o) const |
| bool | operator!= (STBase const &t) const |
| template<typename T , typename V > | |
| V | getFieldByValue (SField const &field) const |
| template<typename T , typename V > | |
| V const & | getFieldByConstRef (SField const &field, V const &empty) const |
| template<class D > | |
| D & | downcast () |
| template<class D > | |
| D const & | downcast () const |
| template<class D > | |
| D const & | downcast () const |
| void | setFName (SField const &n) |
| A STBase is a field. | |
| SField const & | getFName () const |
| void | addFieldID (Serializer &s) const |
Static Public Member Functions | |
| static Blob | getSignature (STObject const &sigObject) |
| static std::string const & | getMetaSQLInsertReplaceHeader () |
| static STObject | makeInnerObject (SField const &name) |
Static Public Attributes | |
| static constexpr std::size_t | minMultiSigners = 1 |
| static constexpr std::size_t | maxMultiSigners = 32 |
Static Protected Member Functions | |
| template<class T > | |
| static STBase * | emplace (std::size_t n, void *buf, T &&val) |
Private Types | |
| enum | WhichFields : bool { omitSigningFields = false , withAllFields = true } |
| using | list_type = std::vector< detail::STVar > |
Private Member Functions | |
| Expected< void, std::string > | checkSign (Rules const &rules, STObject const &sigObject) const |
| Check the signature. | |
| Expected< void, std::string > | checkSingleSign (STObject const &sigObject) const |
| Expected< void, std::string > | checkMultiSign (Rules const &rules, STObject const &sigObject) const |
| Expected< void, std::string > | checkBatchSingleSign (STObject const &batchSigner) const |
| Expected< void, std::string > | checkBatchMultiSign (STObject const &batchSigner, Rules const &rules) const |
| STBase * | copy (std::size_t n, void *buf) const override |
| STBase * | move (std::size_t n, void *buf) override |
| void | add (Serializer &s, WhichFields whichFields) const |
| template<typename T , typename V = typename std::remove_cv<typename std::remove_reference<decltype(std::declval<T>().value())>::type, ::type > | |
| V | getFieldByValue (SField const &field) const |
| template<typename T , typename V > | |
| V const & | getFieldByConstRef (SField const &field, V const &empty) const |
| template<typename T , typename V > | |
| void | setFieldUsingSetValue (SField const &field, V value) |
| template<typename T > | |
| void | setFieldUsingAssignment (SField const &field, T const &value) |
| template<typename T > | |
| T & | peekField (SField const &field) |
Static Private Member Functions | |
| static std::vector< STBase const * > | getSortedFields (STObject const &objToSort, WhichFields whichFields) |
| static auto & | getCounter () noexcept |
Private Attributes | |
| uint256 | tid_ |
| TxType | tx_type_ |
| std::vector< uint256 > | batchTxnIds_ |
| list_type | v_ |
| SOTemplate const * | mType |
| SField const * | fName |
Friends | |
| class | detail::STVar |
|
privateinherited |
Definition at line 57 of file STObject.h.
|
inherited |
Definition at line 63 of file STObject.h.
|
privateinherited |
| Enumerator | |
|---|---|
| omitSigningFields | |
| withAllFields | |
Definition at line 411 of file STObject.h.
|
delete |
|
default |
|
explicit |
|
explicit |
| xrpl::STTx::STTx | ( | TxType | type, |
| std::function< void(STObject &)> | assembler | ||
| ) |
|
overridevirtual |
Reimplemented from xrpl::STObject.
|
overridevirtual |
Reimplemented from xrpl::STObject.
| std::uint32_t xrpl::STTx::getSeqValue | ( | ) | const |
| boost::container::flat_set< AccountID > xrpl::STTx::getMentionedAccounts | ( | ) | const |
|
overridevirtual |
Reimplemented from xrpl::STObject.
| Json::Value xrpl::STTx::getJson | ( | JsonOptions | options, |
| bool | binary | ||
| ) | const |
| void xrpl::STTx::sign | ( | PublicKey const & | publicKey, |
| SecretKey const & | secretKey, | ||
| std::optional< std::reference_wrapper< SField const > > | signatureTarget = {} |
||
| ) |
| Expected< void, std::string > xrpl::STTx::checkSign | ( | Rules const & | rules | ) | const |
| Expected< void, std::string > xrpl::STTx::checkBatchSign | ( | Rules const & | rules | ) | const |
|
static |
| std::string xrpl::STTx::getMetaSQL | ( | std::uint32_t | inLedger, |
| std::string const & | escapedMetaData | ||
| ) | const |
| std::string xrpl::STTx::getMetaSQL | ( | Serializer | rawTxn, |
| std::uint32_t | inLedger, | ||
| char | status, | ||
| std::string const & | escapedMetaData | ||
| ) | const |
| std::vector< uint256 > const & xrpl::STTx::getBatchTransactionIDs | ( | ) | const |
Retrieves a batch of transaction IDs from the STTx.
This function returns a vector of transaction IDs by extracting them from the field array sfRawTransactions within the STTx. If the batch transaction IDs have already been computed and cached in batchTxnIds_, it returns the cached vector. Otherwise, it computes the transaction IDs, caches them, and then returns the vector.
uint256 containing the batch transaction IDs.sfRawTransactions field array is not empty and that the size of the computed batch transaction IDs matches the size of the sfRawTransactions field array.
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Reimplemented from xrpl::STObject.
|
overrideprivatevirtual |
Reimplemented from xrpl::STObject.
Definition at line 72 of file STObject.cpp.
|
inherited |
Definition at line 927 of file STObject.h.
|
inherited |
Definition at line 933 of file STObject.h.
|
inherited |
Definition at line 939 of file STObject.h.
|
inherited |
Definition at line 945 of file STObject.h.
|
inherited |
Definition at line 148 of file STObject.cpp.
|
inherited |
Definition at line 197 of file STObject.cpp.
|
inherited |
Definition at line 951 of file STObject.h.
|
inherited |
Definition at line 132 of file STObject.cpp.
|
inherited |
Definition at line 206 of file STObject.cpp.
|
inherited |
Set a field.
if the field already exists, it is replaced.
Definition at line 684 of file STObject.cpp.
|
inherited |
Definition at line 690 of file STObject.cpp.
|
overridevirtualinherited |
Reimplemented from xrpl::STBase.
Definition at line 327 of file STObject.cpp.
|
overridevirtualinherited |
Reimplemented from xrpl::STBase.
Definition at line 111 of file STObject.cpp.
|
overridevirtualinherited |
Reimplemented from xrpl::STBase.
Definition at line 117 of file STObject.cpp.
|
privateinherited |
Definition at line 870 of file STObject.cpp.
|
overridevirtualinherited |
Reimplemented from xrpl::STBase.
Definition at line 308 of file STObject.cpp.
|
inherited |
Definition at line 957 of file STObject.h.
|
inherited |
Definition at line 966 of file STObject.h.
|
inherited |
Definition at line 975 of file STObject.h.
|
inherited |
Definition at line 982 of file STObject.h.
|
inherited |
Definition at line 462 of file STObject.cpp.
|
inherited |
Definition at line 474 of file STObject.cpp.
|
inherited |
Definition at line 486 of file STObject.cpp.
|
inherited |
Definition at line 492 of file STObject.cpp.
|
inherited |
Definition at line 350 of file STObject.cpp.
|
inherited |
Definition at line 359 of file STObject.cpp.
|
inherited |
Definition at line 988 of file STObject.h.
|
inherited |
Definition at line 994 of file STObject.h.
|
inherited |
Definition at line 1000 of file STObject.h.
|
inherited |
Definition at line 1006 of file STObject.h.
|
inherited |
Definition at line 368 of file STObject.cpp.
|
inherited |
Definition at line 406 of file STObject.cpp.
Definition at line 384 of file STObject.cpp.
Definition at line 395 of file STObject.cpp.
Definition at line 412 of file STObject.cpp.
Definition at line 423 of file STObject.cpp.
|
inherited |
Definition at line 564 of file STObject.cpp.
|
inherited |
Definition at line 570 of file STObject.cpp.
|
inherited |
Definition at line 576 of file STObject.cpp.
|
inherited |
Definition at line 582 of file STObject.cpp.
Definition at line 588 of file STObject.cpp.
Definition at line 594 of file STObject.cpp.
Definition at line 600 of file STObject.cpp.
Definition at line 606 of file STObject.cpp.
|
inherited |
Definition at line 612 of file STObject.cpp.
Definition at line 618 of file STObject.cpp.
Definition at line 624 of file STObject.cpp.
Definition at line 632 of file STObject.cpp.
Definition at line 639 of file STObject.cpp.
|
inherited |
Definition at line 646 of file STObject.cpp.
Definition at line 653 of file STObject.cpp.
Definition at line 663 of file STObject.cpp.
|
inherited |
Definition at line 670 of file STObject.cpp.
Definition at line 677 of file STObject.cpp.
|
inherited |
Get the value of a field.
| A | TypedField built from an SField value representing the desired object field. In typical use, the TypedField will be implicitly constructed. |
| STObject::FieldErr | if the field is not present. |
Definition at line 1013 of file STObject.h.
|
inherited |
Get the value of a field as a std::optional.
| An | OptionaledField built from an SField value representing the desired object field. In typical use, the OptionaledField will be constructed by using the ~ operator on an SField. |
Definition at line 1020 of file STObject.h.
|
inherited |
Get a modifiable field value.
| A | TypedField built from an SField value representing the desired object field. In typical use, the TypedField will be implicitly constructed. |
| STObject::FieldErr | if the field is not present. |
|
inherited |
Return a modifiable field value as std::optional.
| An | OptionaledField built from an SField value representing the desired object field. In typical use, the OptionaledField will be constructed by using the ~ operator on an SField. |
optional holding a modifiable reference to the value of the specified field. Returns std::nullopt if the field is not present.
|
inherited |
Definition at line 1027 of file STObject.h.
|
inherited |
Definition at line 1034 of file STObject.h.
|
inherited |
Get the value of a field.
| A | TypedField built from an SField value representing the desired object field. In typical use, the TypedField will be implicitly constructed. |
| STObject::FieldErr | if the field is not present. |
Definition at line 1041 of file STObject.h.
|
inherited |
Get the value of a field as std::optional.
| An | OptionaledField built from an SField value representing the desired object field. In typical use, the OptionaledField will be constructed by using the ~ operator on an SField. |
Definition at line 1068 of file STObject.h.
|
inherited |
Get a modifiable field value.
| A | TypedField built from an SField value representing the desired object field. In typical use, the TypedField will be implicitly constructed. |
| STObject::FieldErr | if the field is not present. |
|
inherited |
Return a modifiable field value as std::optional.
| An | OptionaledField built from an SField value representing the desired object field. In typical use, the OptionaledField will be constructed by using the ~ operator on an SField. |
optional holding a modifiable reference to the value of the specified field. Returns std::nullopt if the field is not present.
|
inherited |
Definition at line 1094 of file STObject.h.
|
inherited |
Definition at line 1101 of file STObject.h.
|
inherited |
Definition at line 706 of file STObject.cpp.
|
inherited |
Definition at line 712 of file STObject.cpp.
|
inherited |
Definition at line 718 of file STObject.cpp.
|
inherited |
Definition at line 724 of file STObject.cpp.
Definition at line 730 of file STObject.cpp.
Definition at line 736 of file STObject.cpp.
|
inherited |
Definition at line 742 of file STObject.cpp.
Definition at line 760 of file STObject.cpp.
Definition at line 766 of file STObject.cpp.
Definition at line 754 of file STObject.cpp.
Definition at line 772 of file STObject.cpp.
Definition at line 784 of file STObject.cpp.
|
inherited |
Definition at line 778 of file STObject.cpp.
Definition at line 790 of file STObject.cpp.
Definition at line 796 of file STObject.cpp.
|
inherited |
Definition at line 748 of file STObject.cpp.
Definition at line 802 of file STObject.cpp.
Definition at line 808 of file STObject.cpp.
|
inherited |
Definition at line 1108 of file STObject.h.
Definition at line 450 of file STObject.cpp.
Definition at line 456 of file STObject.cpp.
|
inherited |
Definition at line 439 of file STObject.cpp.
Definition at line 503 of file STObject.cpp.
|
inherited |
Definition at line 525 of file STObject.cpp.
|
inherited |
Definition at line 540 of file STObject.cpp.
|
inherited |
Definition at line 552 of file STObject.cpp.
Definition at line 558 of file STObject.cpp.
|
inherited |
Definition at line 266 of file STObject.cpp.
|
inherited |
Definition at line 827 of file STObject.cpp.
|
inherited |
Definition at line 32 of file STBase.cpp.
|
inherited |
Definition at line 1126 of file STObject.h.
|
inherited |
Definition at line 38 of file STBase.cpp.
|
staticprivateinherited |
Definition at line 894 of file STObject.cpp.
|
privateinherited |
|
inherited |
Definition at line 1133 of file STObject.h.
|
privateinherited |
|
inherited |
Definition at line 1160 of file STObject.h.
|
privateinherited |
Definition at line 1183 of file STObject.h.
|
privateinherited |
Definition at line 1206 of file STObject.h.
|
privateinherited |
Definition at line 1227 of file STObject.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 122 of file STBase.cpp.
|
inherited |
Definition at line 128 of file STBase.cpp.
|
staticprotectedinherited |
|
staticprivatenoexceptinherited |
Definition at line 109 of file CountedObject.h.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
mutableprivate |
|
privateinherited |
Definition at line 59 of file STObject.h.
|
privateinherited |
Definition at line 60 of file STObject.h.