Skip to content

Commit

Permalink
Move IOUAmount from basics module to protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Nov 14, 2024
1 parent 1f953dc commit ad16bbd
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion include/xrpl/protocol/AmountConversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef RIPPLE_PROTOCOL_AMOUNTCONVERSION_H_INCLUDED
#define RIPPLE_PROTOCOL_AMOUNTCONVERSION_H_INCLUDED

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/STAmount.h>
#include <xrpl/protocol/XRPAmount.h>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion include/xrpl/protocol/Quality.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#ifndef RIPPLE_PROTOCOL_QUALITY_H_INCLUDED
#define RIPPLE_PROTOCOL_QUALITY_H_INCLUDED

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/protocol/AmountConversions.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/STAmount.h>
#include <xrpl/protocol/XRPAmount.h>

Expand Down
2 changes: 1 addition & 1 deletion include/xrpl/protocol/STAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#define RIPPLE_PROTOCOL_STAMOUNT_H_INCLUDED

#include <xrpl/basics/CountedObject.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/LocalValue.h>
#include <xrpl/basics/Number.h>
#include <xrpl/protocol/Asset.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Issue.h>
#include <xrpl/protocol/MPTAmount.h>
#include <xrpl/protocol/SField.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/
//==============================================================================

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/contract.h>
#include <xrpl/protocol/IOUAmount.h>
#include <boost/multiprecision/cpp_int.hpp>
#include <algorithm>
#include <iterator>
Expand Down
2 changes: 1 addition & 1 deletion src/test/basics/IOUAmount_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/
//==============================================================================

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/beast/unit_test.h>
#include <xrpl/protocol/IOUAmount.h>

namespace ripple {

Expand Down
2 changes: 1 addition & 1 deletion src/test/basics/Number_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
*/
//==============================================================================

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Number.h>
#include <xrpl/beast/unit_test.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/STAmount.h>
#include <sstream>
#include <tuple>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/misc/AMMHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
#ifndef RIPPLE_APP_MISC_AMMHELPERS_H_INCLUDED
#define RIPPLE_APP_MISC_AMMHELPERS_H_INCLUDED

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/basics/Number.h>
#include <xrpl/beast/utility/Journal.h>
#include <xrpl/protocol/AMMCore.h>
#include <xrpl/protocol/AmountConversions.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Issue.h>
#include <xrpl/protocol/Quality.h>
#include <xrpl/protocol/Rules.h>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/Credit.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define RIPPLE_APP_PATHS_CREDIT_H_INCLUDED

#include <xrpld/ledger/View.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/STAmount.h>

namespace ripple {
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/Flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <xrpld/app/paths/detail/AmountSpec.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/app/paths/detail/StrandFlow.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/XRPAmount.h>

#include <boost/container/flat_set.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/AmountSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef RIPPLE_PATH_IMPL_AMOUNTSPEC_H_INCLUDED
#define RIPPLE_PATH_IMPL_AMOUNTSPEC_H_INCLUDED

#include <xrpl/basics/IOUAmount.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/STAmount.h>
#include <xrpl/protocol/XRPAmount.h>

Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/BookStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/app/tx/detail/OfferStream.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/basics/contract.h>
#include <xrpl/protocol/Book.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Quality.h>
#include <xrpl/protocol/XRPAmount.h>

Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/DirectStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <xrpld/app/paths/detail/StepChecks.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Quality.h>

#include <boost/container/flat_set.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/FlowDebugInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <xrpld/app/paths/detail/AmountSpec.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/XRPAmount.h>

#include <boost/container/flat_map.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/PaySteps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/ledger/ReadView.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/contract.h>
#include <xrpl/json/json_writer.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/XRPAmount.h>

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/StrandFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <xrpld/app/paths/detail/FlatSets.h>
#include <xrpld/app/paths/detail/FlowDebugInfo.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/XRPAmount.h>

#include <boost/container/flat_set.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/paths/detail/XRPEndpointStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include <xrpld/app/paths/detail/StepChecks.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Quality.h>
#include <xrpl/protocol/XRPAmount.h>

Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/ledger/ReadView.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#define RIPPLE_LEDGER_READVIEW_H_INCLUDED

#include <xrpld/ledger/detail/ReadViewFwdRange.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/chrono.h>
#include <xrpl/beast/hash/uhash.h>
#include <xrpl/beast/utility/Journal.h>
#include <xrpl/protocol/FeeUnits.h>
#include <xrpl/protocol/Fees.h>
#include <xrpl/protocol/IOUAmount.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/LedgerHeader.h>
#include <xrpl/protocol/Protocol.h>
Expand Down

0 comments on commit ad16bbd

Please sign in to comment.