mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-02 17:45:57 +00:00
feat: Add Support Credentials for Clio (#1712)
Rippled PR: [here](https://github.com/XRPLF/rippled/pull/5103)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "data/Types.hpp"
|
||||
|
||||
#include <xrpl/basics/Blob.h>
|
||||
#include <xrpl/basics/Slice.h>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Issue.h>
|
||||
@@ -268,7 +269,14 @@ CreateEscrowLedgerObject(std::string_view account, std::string_view dest);
|
||||
CreateCheckLedgerObject(std::string_view account, std::string_view dest);
|
||||
|
||||
[[nodiscard]] ripple::STObject
|
||||
CreateDepositPreauthLedgerObject(std::string_view account, std::string_view auth);
|
||||
CreateDepositPreauthLedgerObjectByAuth(std::string_view account, std::string_view auth);
|
||||
|
||||
[[nodiscard]] ripple::STObject
|
||||
CreateDepositPreauthLedgerObjectByAuthCredentials(
|
||||
std::string_view account,
|
||||
std::string_view issuer,
|
||||
std::string_view credType
|
||||
);
|
||||
|
||||
[[nodiscard]] data::NFT
|
||||
CreateNFT(
|
||||
@@ -435,3 +443,15 @@ CreateOracleSetTxWithMetadata(
|
||||
bool created,
|
||||
std::string_view previousTxnId
|
||||
);
|
||||
|
||||
[[nodiscard]] ripple::STObject
|
||||
CreateCredentialObject(
|
||||
std::string_view acc1,
|
||||
std::string_view acc2,
|
||||
std::string_view credType,
|
||||
bool accept = true,
|
||||
std::optional<uint32_t> expiration = std::nullopt
|
||||
);
|
||||
|
||||
[[nodiscard]] ripple::STArray
|
||||
CreateAuthCredentialArray(std::vector<std::string_view> issuer, std::vector<std::string_view> credType);
|
||||
|
||||
Reference in New Issue
Block a user