feat: XLS-68: Sponsor, #5887 continuation (#7350)

Co-authored-by: tequ <git@tequ.dev>
Co-authored-by: yinyiqian1 <yqian@ripple.com>
Co-authored-by: Mayukha Vadari <mvadari@ripple.com>
Co-authored-by: Mayukha Vadari <mvadari@gmail.com>
Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
Co-authored-by: Peter Chen <34582813+PeterChen13579@users.noreply.github.com>
Co-authored-by: Zhiyuan Wang <96991820+Kassaking7@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <asalikhov@ripple.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: Zhiyuan Wang <1830604455@qq.com>
This commit is contained in:
Olek
2026-07-10 17:58:19 -04:00
committed by GitHub
parent c7adb215ed
commit fd2cc6dcb3
170 changed files with 13151 additions and 660 deletions

View File

@@ -503,7 +503,7 @@ class Ticket_test : public beast::unit_test::Suite
Account const alice{"alice"};
// Fund alice not quite enough to make the reserve for a Ticket.
env.fund(env.current()->fees().accountReserve(1) - drops(1), alice);
env.fund(env.current()->fees().accountReserve(1, 1) - drops(1), alice);
env.close();
env(ticket::create(alice, 1), Ter(tecINSUFFICIENT_RESERVE));
@@ -511,7 +511,8 @@ class Ticket_test : public beast::unit_test::Suite
env.require(Owners(alice, 0), tickets(alice, 0));
// Give alice enough to exactly meet the reserve for one Ticket.
env(pay(env.master, alice, env.current()->fees().accountReserve(1) - env.balance(alice)));
env(pay(
env.master, alice, env.current()->fees().accountReserve(1, 1) - env.balance(alice)));
env.close();
env(ticket::create(alice, 1));
@@ -524,7 +525,7 @@ class Ticket_test : public beast::unit_test::Suite
env(
pay(env.master,
alice,
env.current()->fees().accountReserve(250) - drops(1) - env.balance(alice)));
env.current()->fees().accountReserve(250, 1) - drops(1) - env.balance(alice)));
env.close();
// alice doesn't quite have the reserve for a total of 250
@@ -535,7 +536,8 @@ class Ticket_test : public beast::unit_test::Suite
// Give alice enough so she can make the reserve for all 250
// Tickets.
env(pay(env.master, alice, env.current()->fees().accountReserve(250) - env.balance(alice)));
env(pay(
env.master, alice, env.current()->fees().accountReserve(250, 1) - env.balance(alice)));
env.close();
std::uint32_t const ticketSeq{env.seq(alice) + 1};