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>
16class SignerListSetBuilder;
55 SF_UINT32::type::value_type
58 return this->
tx_->at(sfSignerQuorum);
69 if (this->
tx_->isFieldPresent(sfSignerEntries))
70 return this->
tx_->getFieldArray(sfSignerEntries);
82 return this->
tx_->isFieldPresent(sfSignerEntries);
119 if (tx->getTxnType() != ttSIGNER_LIST_SET)
135 object_[sfSignerQuorum] = value;
159 sign(publicKey, secretKey);
void setFieldArray(SField const &field, STArray const &v)
Builder for SignerListSet transactions.
SignerListSetBuilder(SF_ACCOUNT::type::value_type account, std::decay_t< typename SF_UINT32::type::value_type > const &signerQuorum, std::optional< SF_UINT32::type::value_type > sequence=std::nullopt, std::optional< SF_AMOUNT::type::value_type > fee=std::nullopt)
Construct a new SignerListSetBuilder with required fields.
SignerListSet build(PublicKey const &publicKey, SecretKey const &secretKey)
Build and return the SignerListSet wrapper.
SignerListSetBuilder(std::shared_ptr< STTx const > tx)
Construct a SignerListSetBuilder from an existing STTx object.
SignerListSetBuilder & setSignerEntries(STArray const &value)
Set sfSignerEntries (soeOPTIONAL)
SignerListSetBuilder & setSignerQuorum(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Transaction-specific field setters.
Transaction: SignerListSet.
SignerListSet(std::shared_ptr< STTx const > tx)
Construct a SignerListSet transaction wrapper from an existing STTx object.
bool hasSignerEntries() const
Check if sfSignerEntries is present.
static constexpr xrpl::TxType txType
SF_UINT32::type::value_type getSignerQuorum() const
Get sfSignerQuorum (soeREQUIRED)
std::optional< std::reference_wrapper< STArray const > > getSignerEntries() const
Get sfSignerEntries (soeOPTIONAL)
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.
SignerListSetBuilder & sign(PublicKey const &publicKey, SecretKey const &secretKey)
Sign the transaction with the given keys.
TxType
Transaction type identifiers.