xrpld
Loading...
Searching...
No Matches
xrpl::RPC::detail Namespace Reference

Classes

class  SigningForParams
struct  TransactionPreProcessResult

Functions

template<int M, int N>
constexpr auto sortErrorInfos (ErrorInfo const (&unordered)[N]) -> std::array< ErrorInfo, M >
static ErrorCodeI acctMatchesPubKey (SLE::const_pointer accountState, AccountID const &accountID, PublicKey const &publicKey)
static json::Value checkPayment (json::Value const &params, json::Value &txJson, AccountID const &srcAddressID, Role const role, Application &app, bool doPath)
static std::pair< json::Value, AccountIDcheckTxJsonFields (json::Value const &txJson, Role const role, bool const verify, std::chrono::seconds validatedLedgerAge, Config const &config, LoadFeeTrack const &feeTrack, unsigned apiVersion)
static std::expected< void, json::ValuecheckNetworkID (json::Value const &txJson, uint32_t appNetworkId)
static TransactionPreProcessResult transactionPreProcessImpl (json::Value &params, Role role, SigningForParams &signingArgs, std::chrono::seconds validatedLedgerAge, Application &app)
static std::pair< json::Value, Transaction::pointertransactionConstructImpl (std::shared_ptr< STTx const > const &stTx, Rules const &rules, Application &app)
static json::Value transactionFormatResultImpl (Transaction::pointer tpTrans, unsigned apiVersion)
static json::Value checkMultiSignFields (json::Value const &jvRequest)
static json::Value sortAndValidateSigners (STArray &signers, AccountID const &signingForID)

Variables

static constexpr ErrorInfo kUnorderedErrorInfos []
constexpr auto kSortedErrorInfos {sortErrorInfos<RpcLast>(kUnorderedErrorInfos)}
constexpr ErrorInfo kUnknownError

Function Documentation

◆ sortErrorInfos()

template<int M, int N>
auto xrpl::RPC::detail::sortErrorInfos ( ErrorInfo const (&) unordered[N]) -> std::array< ErrorInfo, M >
constexpr

Definition at line 112 of file ErrorCodes.cpp.

◆ acctMatchesPubKey()

ErrorCodeI xrpl::RPC::detail::acctMatchesPubKey ( SLE::const_pointer accountState,
AccountID const & accountID,
PublicKey const & publicKey )
static

Definition at line 167 of file TransactionSign.cpp.

◆ checkPayment()

json::Value xrpl::RPC::detail::checkPayment ( json::Value const & params,
json::Value & txJson,
AccountID const & srcAddressID,
Role const role,
Application & app,
bool doPath )
static

Definition at line 202 of file TransactionSign.cpp.

◆ checkTxJsonFields()

std::pair< json::Value, AccountID > xrpl::RPC::detail::checkTxJsonFields ( json::Value const & txJson,
Role const role,
bool const verify,
std::chrono::seconds validatedLedgerAge,
Config const & config,
LoadFeeTrack const & feeTrack,
unsigned apiVersion )
static

Definition at line 347 of file TransactionSign.cpp.

◆ checkNetworkID()

std::expected< void, json::Value > xrpl::RPC::detail::checkNetworkID ( json::Value const & txJson,
uint32_t appNetworkId )
static

Definition at line 411 of file TransactionSign.cpp.

◆ transactionPreProcessImpl()

TransactionPreProcessResult xrpl::RPC::detail::transactionPreProcessImpl ( json::Value & params,
Role role,
SigningForParams & signingArgs,
std::chrono::seconds validatedLedgerAge,
Application & app )
static

Definition at line 458 of file TransactionSign.cpp.

◆ transactionConstructImpl()

std::pair< json::Value, Transaction::pointer > xrpl::RPC::detail::transactionConstructImpl ( std::shared_ptr< STTx const > const & stTx,
Rules const & rules,
Application & app )
static

Definition at line 705 of file TransactionSign.cpp.

◆ transactionFormatResultImpl()

json::Value xrpl::RPC::detail::transactionFormatResultImpl ( Transaction::pointer tpTrans,
unsigned apiVersion )
static

Definition at line 777 of file TransactionSign.cpp.

◆ checkMultiSignFields()

json::Value xrpl::RPC::detail::checkMultiSignFields ( json::Value const & jvRequest)
static

Definition at line 1080 of file TransactionSign.cpp.

◆ sortAndValidateSigners()

json::Value xrpl::RPC::detail::sortAndValidateSigners ( STArray & signers,
AccountID const & signingForID )
static

Definition at line 1116 of file TransactionSign.cpp.

Variable Documentation

◆ kUnorderedErrorInfos

ErrorInfo xrpl::RPC::detail::kUnorderedErrorInfos[]
staticconstexpr

Definition at line 33 of file ErrorCodes.cpp.

◆ kSortedErrorInfos

auto xrpl::RPC::detail::kSortedErrorInfos {sortErrorInfos<RpcLast>(kUnorderedErrorInfos)}
constexpr

Definition at line 156 of file ErrorCodes.cpp.

◆ kUnknownError

ErrorInfo xrpl::RPC::detail::kUnknownError
constexpr

Definition at line 158 of file ErrorCodes.cpp.