1#include <xrpld/rpc/MPTokenIssuanceID.h>
13 TxType const tt = serializedTx->getTxnType();
14 if (tt != ttMPTOKEN_ISSUANCE_CREATE)
29 if (node.getFieldU16(sfLedgerEntryType) != ltMPTOKEN_ISSUANCE || node.getFName() != sfCreatedNode)
32 auto const& mptNode = node.peekAtField(sfNewFields).downcast<
STObject>();
33 return makeMptID(mptNode.getFieldU32(sfSequence), mptNode.getAccountID(sfIssuer));
43 TxMeta const& transactionMeta)
std::optional< uint192 > getIDFromCreatedIssuance(TxMeta const &transactionMeta)
void insertMPTokenIssuanceID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
bool canHaveMPTokenIssuanceID(std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta)
Add a mpt_issuance_id field to the meta input/output parameter.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TxType
Transaction type identifiers.
std::string to_string(base_uint< Bits, Tag > const &a)
MPTID makeMptID(std::uint32_t sequence, AccountID const &account)