rippled
Classes | Functions | Variables
ripple::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 error_code_i acctMatchesPubKey (std::shared_ptr< SLE const > accountState, AccountID const &accountID, PublicKey const &publicKey)
 
static Json::Value checkPayment (Json::Value const &params, Json::Value &tx_json, AccountID const &srcAddressID, Role const role, Application &app, bool doPath)
 
static std::pair< Json::Value, AccountIDcheckTxJsonFields (Json::Value const &tx_json, Role const role, bool const verify, std::chrono::seconds validatedLedgerAge, Config const &config, LoadFeeTrack const &feeTrack, unsigned apiVersion)
 
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 &stpTrans, Rules const &rules, Application &app)
 
static Json::Value transactionFormatResultImpl (Transaction::pointer tpTrans)
 
static Json::Value checkMultiSignFields (Json::Value const &jvRequest)
 
static Json::Value sortAndValidateSigners (STArray &signers, AccountID const &signingForID)
 

Variables

constexpr static ErrorInfo unorderedErrorInfos []
 
constexpr auto sortedErrorInfos {sortErrorInfos<rpcLAST>(unorderedErrorInfos)}
 
constexpr ErrorInfo unknownError
 

Function Documentation

◆ sortErrorInfos()

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

Definition at line 117 of file ErrorCodes.cpp.

◆ acctMatchesPubKey()

static error_code_i ripple::RPC::detail::acctMatchesPubKey ( std::shared_ptr< SLE const >  accountState,
AccountID const &  accountID,
PublicKey const &  publicKey 
)
static

Definition at line 122 of file TransactionSign.cpp.

◆ checkPayment()

static Json::Value ripple::RPC::detail::checkPayment ( Json::Value const &  params,
Json::Value tx_json,
AccountID const &  srcAddressID,
Role const  role,
Application app,
bool  doPath 
)
static

Definition at line 158 of file TransactionSign.cpp.

◆ checkTxJsonFields()

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

Definition at line 268 of file TransactionSign.cpp.

◆ transactionPreProcessImpl()

static transactionPreProcessResult ripple::RPC::detail::transactionPreProcessImpl ( Json::Value params,
Role  role,
SigningForParams signingArgs,
std::chrono::seconds  validatedLedgerAge,
Application app 
)
static

Definition at line 362 of file TransactionSign.cpp.

◆ transactionConstructImpl()

static std::pair<Json::Value, Transaction::pointer> ripple::RPC::detail::transactionConstructImpl ( std::shared_ptr< STTx const > const &  stpTrans,
Rules const &  rules,
Application app 
)
static

Definition at line 554 of file TransactionSign.cpp.

◆ transactionFormatResultImpl()

static Json::Value ripple::RPC::detail::transactionFormatResultImpl ( Transaction::pointer  tpTrans)
static

Definition at line 632 of file TransactionSign.cpp.

◆ checkMultiSignFields()

static Json::Value ripple::RPC::detail::checkMultiSignFields ( Json::Value const &  jvRequest)
static

Definition at line 847 of file TransactionSign.cpp.

◆ sortAndValidateSigners()

static Json::Value ripple::RPC::detail::sortAndValidateSigners ( STArray signers,
AccountID const &  signingForID 
)
static

Definition at line 878 of file TransactionSign.cpp.

Variable Documentation

◆ unorderedErrorInfos

constexpr static ErrorInfo ripple::RPC::detail::unorderedErrorInfos[]
staticconstexpr

Definition at line 47 of file ErrorCodes.cpp.

◆ sortedErrorInfos

constexpr auto ripple::RPC::detail::sortedErrorInfos {sortErrorInfos<rpcLAST>(unorderedErrorInfos)}
constexpr

Definition at line 161 of file ErrorCodes.cpp.

◆ unknownError

constexpr ErrorInfo ripple::RPC::detail::unknownError
constexpr

Definition at line 163 of file ErrorCodes.cpp.