xrpld
Loading...
Searching...
No Matches
Flow.h
1#pragma once
2
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/protocol/AccountID.h>
6#include <xrpl/protocol/Quality.h>
7#include <xrpl/protocol/STAmount.h>
8#include <xrpl/protocol/STPathSet.h>
9#include <xrpl/tx/paths/RippleCalc.h>
10#include <xrpl/tx/paths/detail/Steps.h>
11
12#include <optional>
13
14namespace xrpl {
15
16namespace path::detail {
17struct FlowDebugInfo;
18} // namespace path::detail
19
41flow(
42 PaymentSandbox& view,
43 STAmount const& deliver,
44 AccountID const& src,
45 AccountID const& dst,
46 STPathSet const& paths,
47 bool defaultPaths,
48 bool partialPayment,
49 bool ownerPaysTransferFee,
50 OfferCrossing offerCrossing,
51 std::optional<Quality> const& limitQuality,
52 std::optional<STAmount> const& sendMax,
53 std::optional<uint256> const& domainID,
54 beast::Journal j,
55 path::detail::FlowDebugInfo* flowDebugInfo = nullptr);
56
57} // namespace xrpl
A wrapper which makes credits unavailable to balances.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
StrandResult< TInAmt, TOutAmt > flow(PaymentSandbox const &baseView, Strand const &strand, std::optional< TInAmt > const &maxIn, TOutAmt const &out, beast::Journal j)
Request out amount from a strand.
Definition StrandFlow.h:103
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:34
OfferCrossing
Definition Steps.h:38