mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
@@ -1485,6 +1485,30 @@ createMpTokenObject(std::string_view accountId, ripple::uint192 issuanceID, std:
|
||||
return mptoken;
|
||||
}
|
||||
|
||||
ripple::STObject
|
||||
createPermissionedDomainObject(
|
||||
std::string_view accountId,
|
||||
std::string_view ledgerIndex,
|
||||
ripple::LedgerIndex seq,
|
||||
uint64_t ownerNode,
|
||||
ripple::uint256 previousTxId,
|
||||
uint32_t previousTxSeq
|
||||
)
|
||||
{
|
||||
ripple::STObject object(ripple::sfLedgerEntry);
|
||||
object.setFieldH256(ripple::sfLedgerIndex, ripple::uint256(ledgerIndex));
|
||||
object.setAccountID(ripple::sfOwner, getAccountIdWithString(accountId));
|
||||
object.setFieldU32(ripple::sfSequence, seq);
|
||||
object.setFieldArray(ripple::sfAcceptedCredentials, ripple::STArray{});
|
||||
object.setFieldU64(ripple::sfOwnerNode, ownerNode);
|
||||
object.setFieldH256(ripple::sfPreviousTxnID, previousTxId);
|
||||
object.setFieldU32(ripple::sfPreviousTxnLgrSeq, previousTxSeq);
|
||||
object.setFieldU32(ripple::sfFlags, 0);
|
||||
object.setFieldU16(ripple::sfLedgerEntryType, ripple::ltPERMISSIONED_DOMAIN);
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
ripple::STObject
|
||||
createOraclePriceData(
|
||||
uint64_t assetPrice,
|
||||
|
||||
Reference in New Issue
Block a user