mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-18 21:10:02 +00:00
refactor: Rename ripple namespace to xrpl (#5982)
This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <xrpl/protocol/TxFlags.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
namespace ripple {
|
||||
namespace xrpl {
|
||||
namespace test {
|
||||
|
||||
class MPToken_test : public beast::unit_test::suite
|
||||
@@ -2349,7 +2349,7 @@ class MPToken_test : public beast::unit_test::suite
|
||||
env.close();
|
||||
|
||||
auto const USD = alice["USD"];
|
||||
auto const mpt = ripple::test::jtx::MPT(
|
||||
auto const mpt = xrpl::test::jtx::MPT(
|
||||
alice.name(), makeMptID(env.seq(alice), alice));
|
||||
|
||||
env(claw(alice, bob["USD"](5), bob), ter(temMALFORMED));
|
||||
@@ -2372,7 +2372,7 @@ class MPToken_test : public beast::unit_test::suite
|
||||
env.close();
|
||||
|
||||
auto const USD = alice["USD"];
|
||||
auto const mpt = ripple::test::jtx::MPT(
|
||||
auto const mpt = xrpl::test::jtx::MPT(
|
||||
alice.name(), makeMptID(env.seq(alice), alice));
|
||||
|
||||
// clawing back IOU from a MPT holder fails
|
||||
@@ -2431,7 +2431,7 @@ class MPToken_test : public beast::unit_test::suite
|
||||
env.close();
|
||||
MPTTester mptAlice(env, alice, {.holders = {bob}});
|
||||
|
||||
auto const fakeMpt = ripple::test::jtx::MPT(
|
||||
auto const fakeMpt = xrpl::test::jtx::MPT(
|
||||
alice.name(), makeMptID(env.seq(alice), alice));
|
||||
|
||||
// issuer tries to clawback MPT where issuance doesn't exist
|
||||
@@ -2470,7 +2470,7 @@ class MPToken_test : public beast::unit_test::suite
|
||||
env.fund(XRP(1000), alice, bob);
|
||||
env.close();
|
||||
|
||||
auto const mpt = ripple::test::jtx::MPT(
|
||||
auto const mpt = xrpl::test::jtx::MPT(
|
||||
alice.name(), makeMptID(env.seq(alice), alice));
|
||||
|
||||
Json::Value jv = claw(alice, mpt(1), bob);
|
||||
@@ -3675,7 +3675,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
BEAST_DEFINE_TESTSUITE_PRIO(MPToken, app, ripple, 2);
|
||||
BEAST_DEFINE_TESTSUITE_PRIO(MPToken, app, xrpl, 2);
|
||||
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
} // namespace xrpl
|
||||
|
||||
Reference in New Issue
Block a user