4#include <xrpl/protocol/STTx.h>
5#include <xrpl/protocol/STParsedJSON.h>
6#include <xrpl/protocol/jss.h>
7#include <xrpl/protocol_autogen/TransactionBase.h>
8#include <xrpl/protocol_autogen/TransactionBuilderBase.h>
9#include <xrpl/json/json_value.h>
60 return this->
tx_->at(sfLimitAmount);
73 return this->
tx_->isFieldPresent(sfLimitAmount);
86 return this->
tx_->at(sfQualityIn);
99 return this->
tx_->isFieldPresent(sfQualityIn);
112 return this->
tx_->at(sfQualityOut);
125 return this->
tx_->isFieldPresent(sfQualityOut);
160 if (tx->getTxnType() != ttTRUST_SET)
176 object_[sfLimitAmount] = value;
211 sign(publicKey, secretKey);
Base class for all transaction wrapper types.
std::shared_ptr< STTx const > tx_
The underlying transaction object being wrapped.
Base class for all transaction builders.
TrustSetBuilder & sign(PublicKey const &publicKey, SecretKey const &secretKey)
Sign the transaction with the given keys.
Builder for TrustSet transactions.
TrustSetBuilder & setQualityOut(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfQualityOut (soeOPTIONAL)
TrustSetBuilder(SF_ACCOUNT::type::value_type account, std::optional< SF_UINT32::type::value_type > sequence=std::nullopt, std::optional< SF_AMOUNT::type::value_type > fee=std::nullopt)
Construct a new TrustSetBuilder with required fields.
TrustSetBuilder & setQualityIn(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfQualityIn (soeOPTIONAL)
TrustSetBuilder(std::shared_ptr< STTx const > tx)
Construct a TrustSetBuilder from an existing STTx object.
TrustSetBuilder & setLimitAmount(std::decay_t< typename SF_AMOUNT::type::value_type > const &value)
Transaction-specific field setters.
TrustSet build(PublicKey const &publicKey, SecretKey const &secretKey)
Build and return the TrustSet wrapper.
protocol_autogen::Optional< SF_UINT32::type::value_type > getQualityOut() const
Get sfQualityOut (soeOPTIONAL)
static constexpr xrpl::TxType txType
bool hasQualityIn() const
Check if sfQualityIn is present.
bool hasLimitAmount() const
Check if sfLimitAmount is present.
protocol_autogen::Optional< SF_AMOUNT::type::value_type > getLimitAmount() const
Get sfLimitAmount (soeOPTIONAL)
TrustSet(std::shared_ptr< STTx const > tx)
Construct a TrustSet transaction wrapper from an existing STTx object.
protocol_autogen::Optional< SF_UINT32::type::value_type > getQualityIn() const
Get sfQualityIn (soeOPTIONAL)
bool hasQualityOut() const
Check if sfQualityOut is present.
TxType
Transaction type identifiers.