add prefunded sponsor tests

This commit is contained in:
tequ
2025-10-08 16:48:47 +09:00
parent a65cf6e07d
commit d8dc000488
11 changed files with 1656 additions and 1274 deletions

View File

@@ -454,6 +454,9 @@ areCompatible(
uint32_t
ownerCount(std::shared_ptr<SLE const> const& sponsorSle);
bool
isReserveSponsored(STTx const& tx);
bool
isSponsorReserveCoSigning(STTx const& tx);
@@ -476,12 +479,23 @@ getTxReserveSponsor(ApplyView& view, STTx const& tx);
std::optional<std::shared_ptr<SLE const>>
getTxReserveSponsor(ReadView const& view, STTx const& tx);
std::optional<AccountID>
getLedgerEntryReserveSponsorAccountID(
std::shared_ptr<SLE const> sle,
SF_ACCOUNT const& field = sfSponsorAccount);
std::optional<std::shared_ptr<SLE>>
getLedgerEntryReserveSponsor(
ApplyView& view,
std::shared_ptr<SLE> sle,
SF_ACCOUNT const& field = sfSponsorAccount);
std::optional<std::shared_ptr<SLE const>>
getLedgerEntryReserveSponsor(
ReadView const& view,
std::shared_ptr<SLE const> sle,
SF_ACCOUNT const& field = sfSponsorAccount);
void
addSponsorToLedgerEntry(
std::shared_ptr<SLE> const& sle,