diff --git a/include/xrpl/protocol/detail/ledger_entries.macro b/include/xrpl/protocol/detail/ledger_entries.macro index f2d8c07ddc..1817d705af 100644 --- a/include/xrpl/protocol/detail/ledger_entries.macro +++ b/include/xrpl/protocol/detail/ledger_entries.macro @@ -583,7 +583,7 @@ LEDGER_ENTRY(ltLOAN, 0x0089, Loan, loan, ({ // The unrounded true total value of the loan. // // - TrueTotalPrincialOutstanding can be computed using the algorithm - // in the ripple::detail::loanPrincipalFromPeriodicPayment function. + // in the xrpl::detail::loanPrincipalFromPeriodicPayment function. // // - TrueTotalInterestOutstanding = TrueTotalLoanValue - // TrueTotalPrincipalOutstanding diff --git a/src/test/app/HostFuncImpl_test.cpp b/src/test/app/HostFuncImpl_test.cpp index 956c93a653..692b085102 100644 --- a/src/test/app/HostFuncImpl_test.cpp +++ b/src/test/app/HostFuncImpl_test.cpp @@ -4,7 +4,7 @@ #include -namespace ripple { +namespace xrpl { namespace test { static Bytes @@ -2960,7 +2960,7 @@ struct HostFuncImpl_test : public beast::unit_test::suite } }; -BEAST_DEFINE_TESTSUITE(HostFuncImpl, app, ripple); +BEAST_DEFINE_TESTSUITE(HostFuncImpl, app, xrpl); } // namespace test -} // namespace ripple +} // namespace xrpl diff --git a/src/test/app/TestHostFunctions.h b/src/test/app/TestHostFunctions.h index 5eb81cc0cb..0cb010b0e9 100644 --- a/src/test/app/TestHostFunctions.h +++ b/src/test/app/TestHostFunctions.h @@ -9,7 +9,7 @@ #include #include -namespace ripple { +namespace xrpl { namespace test { @@ -1024,7 +1024,7 @@ struct PerfHostFunctions : public TestHostFunctions if (data.size() > maxWasmDataLength) return Unexpected(HostFunctionError::DATA_FIELD_TOO_LARGE); - ripple::detail::ApplyViewBase v( + xrpl::detail::ApplyViewBase v( env_.app().openLedger().current().get(), tapNONE); auto sle = v.peek(leKey); @@ -1326,4 +1326,4 @@ struct PerfHostFunctions : public TestHostFunctions }; } // namespace test -} // namespace ripple +} // namespace xrpl diff --git a/src/test/app/Wasm_test.cpp b/src/test/app/Wasm_test.cpp index 0a8cacca42..c22054fac0 100644 --- a/src/test/app/Wasm_test.cpp +++ b/src/test/app/Wasm_test.cpp @@ -6,7 +6,7 @@ #include -namespace ripple { +namespace xrpl { namespace test { bool @@ -740,7 +740,7 @@ struct Wasm_test : public beast::unit_test::suite } }; -BEAST_DEFINE_TESTSUITE(Wasm, app, ripple); +BEAST_DEFINE_TESTSUITE(Wasm, app, xrpl); } // namespace test -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/HostFunc.h b/src/xrpld/app/wasm/HostFunc.h index 9963754bfb..e59507757c 100644 --- a/src/xrpld/app/wasm/HostFunc.h +++ b/src/xrpld/app/wasm/HostFunc.h @@ -11,7 +11,7 @@ #include #include -namespace ripple { +namespace xrpl { enum class HostFunctionError : int32_t { INTERNAL = -1, @@ -514,4 +514,4 @@ struct HostFunctions // LCOV_EXCL_STOP }; -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/HostFuncImpl.h b/src/xrpld/app/wasm/HostFuncImpl.h index f5ed190230..fccea11252 100644 --- a/src/xrpld/app/wasm/HostFuncImpl.h +++ b/src/xrpld/app/wasm/HostFuncImpl.h @@ -3,7 +3,7 @@ #include #include -namespace ripple { +namespace xrpl { class WasmHostFunctionsImpl : public HostFunctions { ApplyContext& ctx; @@ -271,4 +271,4 @@ public: floatLog(Slice const& x, int32_t mode) override; }; -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/HostFuncWrapper.h b/src/xrpld/app/wasm/HostFuncWrapper.h index 13ed916e82..745bbe9a2c 100644 --- a/src/xrpld/app/wasm/HostFuncWrapper.h +++ b/src/xrpld/app/wasm/HostFuncWrapper.h @@ -2,7 +2,7 @@ #include -namespace ripple { +namespace xrpl { using getLedgerSqn_proto = int32_t(); wasm_trap_t* @@ -531,4 +531,4 @@ using floatLog_proto = wasm_trap_t* floatLog_wrap(void* env, wasm_val_vec_t const* params, wasm_val_vec_t* results); -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/ParamsHelper.h b/src/xrpld/app/wasm/ParamsHelper.h index a0eece7931..508a9438b0 100644 --- a/src/xrpld/app/wasm/ParamsHelper.h +++ b/src/xrpld/app/wasm/ParamsHelper.h @@ -13,10 +13,10 @@ namespace bft = boost::function_types; -namespace ripple { +namespace xrpl { using Bytes = std::vector; -using Hash = ripple::uint256; +using Hash = xrpl::uint256; struct wmem { @@ -247,4 +247,4 @@ wasmParams(Types&&... args) return v; } -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/WasmVM.h b/src/xrpld/app/wasm/WasmVM.h index e8230175a4..c9c8d9c8e0 100644 --- a/src/xrpld/app/wasm/WasmVM.h +++ b/src/xrpld/app/wasm/WasmVM.h @@ -4,7 +4,7 @@ #include -namespace ripple { +namespace xrpl { static std::string_view const W_ENV = "env"; static std::string_view const W_HOST_LIB = "host_lib"; @@ -87,4 +87,4 @@ preflightEscrowWasm( std::string_view funcName = ESCROW_FUNCTION_NAME, std::vector const& params = {}); -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/WasmiVM.h b/src/xrpld/app/wasm/WasmiVM.h index b4148b7dea..06e18ef29e 100644 --- a/src/xrpld/app/wasm/WasmiVM.h +++ b/src/xrpld/app/wasm/WasmiVM.h @@ -5,7 +5,7 @@ #include #include -namespace ripple { +namespace xrpl { template struct WasmVec @@ -345,4 +345,4 @@ private: Types&&... args); }; -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/detail/HostFuncImpl.cpp b/src/xrpld/app/wasm/detail/HostFuncImpl.cpp index d9f3550a7c..7d2136f4f7 100644 --- a/src/xrpld/app/wasm/detail/HostFuncImpl.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncImpl.cpp @@ -9,7 +9,7 @@ // #define DEBUG_OUTPUT 1 #endif -namespace ripple { +namespace xrpl { Expected WasmHostFunctionsImpl::getLedgerSqn() @@ -1302,4 +1302,4 @@ floatLogImpl(Slice const& x, int32_t mode) // LCOV_EXCL_STOP } -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp b/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp index 5dc935735c..b5da69f71d 100644 --- a/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp @@ -6,7 +6,7 @@ #include #include -namespace ripple { +namespace xrpl { using SFieldCRef = std::reference_wrapper; @@ -2182,4 +2182,4 @@ testGetDataIncrement() } // namespace test // LCOV_EXCL_STOP -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/detail/WasmVM.cpp b/src/xrpld/app/wasm/detail/WasmVM.cpp index 9ac91358dc..062e50ba93 100644 --- a/src/xrpld/app/wasm/detail/WasmVM.cpp +++ b/src/xrpld/app/wasm/detail/WasmVM.cpp @@ -13,7 +13,7 @@ #include -namespace ripple { +namespace xrpl { static void setCommonHostFunctions(HostFunctions* hfs, ImportVec& i) @@ -213,4 +213,4 @@ WasmEngine::getJournal() const } // LCOV_EXCL_STOP -} // namespace ripple +} // namespace xrpl diff --git a/src/xrpld/app/wasm/detail/WasmiVM.cpp b/src/xrpld/app/wasm/detail/WasmiVM.cpp index 1a37910105..82c502f63f 100644 --- a/src/xrpld/app/wasm/detail/WasmiVM.cpp +++ b/src/xrpld/app/wasm/detail/WasmiVM.cpp @@ -9,7 +9,7 @@ #endif // #define SHOW_CALL_TIME 1 -namespace ripple { +namespace xrpl { namespace { @@ -963,4 +963,4 @@ WasmiEngine::getJournal() const } // LCOV_EXCL_STOP -} // namespace ripple +} // namespace xrpl