Add SponsorshipEnd/Create/Reassign flags for SponsorshipTransfer

This commit is contained in:
tequ
2026-02-22 02:41:01 +09:00
parent 178bb8f7e9
commit f86b255e73
9 changed files with 324 additions and 136 deletions

View File

@@ -307,6 +307,12 @@ constexpr std::uint32_t tfDeleteObject = 0
constexpr std::uint32_t tfSponsorshipSetMask = ~(tfUniversal | tfSponsorshipSetRequireSignForFee | tfSponsorshipClearRequireSignForFee | tfSponsorshipSetRequireSignForReserve | tfSponsorshipClearRequireSignForReserve | tfDeleteObject);
constexpr std::uint32_t tfSponsorshipSetPermissionMask = ~(tfUniversal | tfSponsorshipSetRequireSignForFee | tfSponsorshipSetRequireSignForReserve);
// SponsorshipTransfer flags:
constexpr std::uint32_t tfSponsorshipEnd = 0x00000001;
constexpr std::uint32_t tfSponsorshipCreate = 0x00000002;
constexpr std::uint32_t tfSponsorshipReassign = 0x00000004;
constexpr std::uint32_t tfSponsorshipTransferMask = ~(tfUniversal | tfSponsorshipEnd | tfSponsorshipCreate | tfSponsorshipReassign);
// clang-format on
} // namespace xrpl

View File

@@ -13,6 +13,9 @@ public:
{
}
static std::uint32_t
getFlagsMask(PreflightContext const& ctx);
static NotTEC
preflight(PreflightContext const& ctx);