4#include <xrpl/protocol/STLedgerEntry.h>
5#include <xrpl/protocol/STParsedJSON.h>
6#include <xrpl/protocol/jss.h>
7#include <xrpl/protocol_autogen/LedgerEntryBase.h>
8#include <xrpl/protocol_autogen/LedgerEntryBuilderBase.h>
9#include <xrpl/json/json_value.h>
16class MPTokenIssuanceBuilder;
53 SF_ACCOUNT::type::value_type
56 return this->
sle_->at(sfIssuer);
64 SF_UINT32::type::value_type
67 return this->
sle_->at(sfSequence);
79 return this->
sle_->at(sfTransferFee);
91 return this->
sle_->isFieldPresent(sfTransferFee);
99 SF_UINT64::type::value_type
102 return this->
sle_->at(sfOwnerNode);
114 return this->
sle_->at(sfAssetScale);
126 return this->
sle_->isFieldPresent(sfAssetScale);
138 return this->
sle_->at(sfMaximumAmount);
150 return this->
sle_->isFieldPresent(sfMaximumAmount);
158 SF_UINT64::type::value_type
161 return this->
sle_->at(sfOutstandingAmount);
173 return this->
sle_->at(sfLockedAmount);
185 return this->
sle_->isFieldPresent(sfLockedAmount);
197 return this->
sle_->at(sfMPTokenMetadata);
209 return this->
sle_->isFieldPresent(sfMPTokenMetadata);
217 SF_UINT256::type::value_type
220 return this->
sle_->at(sfPreviousTxnID);
228 SF_UINT32::type::value_type
231 return this->
sle_->at(sfPreviousTxnLgrSeq);
243 return this->
sle_->at(sfDomainID);
255 return this->
sle_->isFieldPresent(sfDomainID);
267 return this->
sle_->at(sfMutableFlags);
279 return this->
sle_->isFieldPresent(sfMutableFlags);
320 if (sle->at(sfLedgerEntryType) != ltMPTOKEN_ISSUANCE)
358 object_[sfTransferFee] = value;
391 object_[sfMaximumAmount] = value;
402 object_[sfOutstandingAmount] = value;
413 object_[sfLockedAmount] = value;
424 object_[sfMPTokenMetadata] = value;
435 object_[sfPreviousTxnID] = value;
446 object_[sfPreviousTxnLgrSeq] = value;
468 object_[sfMutableFlags] = value;
Base class for type-safe ledger entry wrappers.
std::shared_ptr< SLE const > sle_
The underlying serialized ledger entry being wrapped.
Base class for all ledger entry builders.
Builder for MPTokenIssuance ledger entries.
MPTokenIssuanceBuilder(std::decay_t< typename SF_ACCOUNT::type::value_type > const &issuer, std::decay_t< typename SF_UINT32::type::value_type > const &sequence, std::decay_t< typename SF_UINT64::type::value_type > const &ownerNode, std::decay_t< typename SF_UINT64::type::value_type > const &outstandingAmount, std::decay_t< typename SF_UINT256::type::value_type > const &previousTxnID, std::decay_t< typename SF_UINT32::type::value_type > const &previousTxnLgrSeq)
Construct a new MPTokenIssuanceBuilder with required fields.
MPTokenIssuanceBuilder & setLockedAmount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfLockedAmount (soeOPTIONAL)
MPTokenIssuanceBuilder & setMaximumAmount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfMaximumAmount (soeOPTIONAL)
MPTokenIssuanceBuilder & setPreviousTxnLgrSeq(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfPreviousTxnLgrSeq (soeREQUIRED)
MPTokenIssuanceBuilder & setDomainID(std::decay_t< typename SF_UINT256::type::value_type > const &value)
Set sfDomainID (soeOPTIONAL)
MPTokenIssuanceBuilder & setOwnerNode(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfOwnerNode (soeREQUIRED)
MPTokenIssuanceBuilder & setOutstandingAmount(std::decay_t< typename SF_UINT64::type::value_type > const &value)
Set sfOutstandingAmount (soeREQUIRED)
MPTokenIssuanceBuilder & setTransferFee(std::decay_t< typename SF_UINT16::type::value_type > const &value)
Set sfTransferFee (soeDEFAULT)
MPTokenIssuanceBuilder & setIssuer(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Ledger entry-specific field setters.
MPTokenIssuanceBuilder & setMPTokenMetadata(std::decay_t< typename SF_VL::type::value_type > const &value)
Set sfMPTokenMetadata (soeOPTIONAL)
MPTokenIssuanceBuilder & setAssetScale(std::decay_t< typename SF_UINT8::type::value_type > const &value)
Set sfAssetScale (soeDEFAULT)
MPTokenIssuanceBuilder & setMutableFlags(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfMutableFlags (soeDEFAULT)
MPTokenIssuanceBuilder & setPreviousTxnID(std::decay_t< typename SF_UINT256::type::value_type > const &value)
Set sfPreviousTxnID (soeREQUIRED)
MPTokenIssuance build(uint256 const &index)
Build and return the completed MPTokenIssuance wrapper.
MPTokenIssuanceBuilder(std::shared_ptr< SLE const > sle)
Construct a MPTokenIssuanceBuilder from an existing SLE object.
MPTokenIssuanceBuilder & setSequence(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfSequence (soeREQUIRED)
Ledger Entry: MPTokenIssuance.
MPTokenIssuance(std::shared_ptr< SLE const > sle)
Construct a MPTokenIssuance ledger entry wrapper from an existing SLE object.
protocol_autogen::Optional< SF_UINT64::type::value_type > getMaximumAmount() const
Get sfMaximumAmount (soeOPTIONAL)
SF_UINT64::type::value_type getOutstandingAmount() const
Get sfOutstandingAmount (soeREQUIRED)
protocol_autogen::Optional< SF_UINT8::type::value_type > getAssetScale() const
Get sfAssetScale (soeDEFAULT)
bool hasDomainID() const
Check if sfDomainID is present.
protocol_autogen::Optional< SF_UINT64::type::value_type > getLockedAmount() const
Get sfLockedAmount (soeOPTIONAL)
protocol_autogen::Optional< SF_UINT256::type::value_type > getDomainID() const
Get sfDomainID (soeOPTIONAL)
bool hasAssetScale() const
Check if sfAssetScale is present.
bool hasTransferFee() const
Check if sfTransferFee is present.
SF_ACCOUNT::type::value_type getIssuer() const
Get sfIssuer (soeREQUIRED)
SF_UINT32::type::value_type getSequence() const
Get sfSequence (soeREQUIRED)
SF_UINT256::type::value_type getPreviousTxnID() const
Get sfPreviousTxnID (soeREQUIRED)
SF_UINT64::type::value_type getOwnerNode() const
Get sfOwnerNode (soeREQUIRED)
bool hasMPTokenMetadata() const
Check if sfMPTokenMetadata is present.
bool hasMaximumAmount() const
Check if sfMaximumAmount is present.
bool hasLockedAmount() const
Check if sfLockedAmount is present.
protocol_autogen::Optional< SF_VL::type::value_type > getMPTokenMetadata() const
Get sfMPTokenMetadata (soeOPTIONAL)
protocol_autogen::Optional< SF_UINT32::type::value_type > getMutableFlags() const
Get sfMutableFlags (soeDEFAULT)
protocol_autogen::Optional< SF_UINT16::type::value_type > getTransferFee() const
Get sfTransferFee (soeDEFAULT)
SF_UINT32::type::value_type getPreviousTxnLgrSeq() const
Get sfPreviousTxnLgrSeq (soeREQUIRED)
bool hasMutableFlags() const
Check if sfMutableFlags is present.
static constexpr LedgerEntryType entryType
LedgerEntryType
Identifiers for on-ledger objects.