feat: Hook up amendment_enabled host function

This commit is contained in:
TimothyBanks
2026-08-10 16:06:05 -04:00
parent 9a6efde771
commit accd0cac6c
11 changed files with 141 additions and 1 deletions

View File

@@ -53,6 +53,12 @@ public:
[[nodiscard]] std::int32_t
getBaseFee(rust::Slice<std::uint8_t> out) const noexcept;
// The amendment is either a 32-byte id or a name; a 32-byte input is tried as an
// id first and falls back to a name lookup. Answers 1 or 0, or a negative
// `HostFunctionError` code.
[[nodiscard]] std::int32_t
isAmendmentEnabled(rust::Slice<std::uint8_t const> amendment) const noexcept;
[[nodiscard]] std::int32_t
getCurrentLedgerObjField(std::int32_t field, rust::Slice<std::uint8_t> out) const noexcept;