Skip to content

Commit c808c46

Browse files
committed
adds flag definitions
1 parent 1671472 commit c808c46

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/xrpl/protocol/LedgerFormats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ enum LedgerSpecificFlags {
185185

186186
// ltVAULT
187187
lsfVaultPrivate = 0x00010000,
188+
lsfVaultDepositBlocked = 0x00020000, // True, vault deposit is blocked
188189

189190
// ltLOAN
190191
lsfLoanDefault = 0x00010000,

include/xrpl/protocol/TxFlags.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,13 @@ constexpr std::uint32_t const tfBatchMask =
270270
// LoanPay: True, indicates any excess in this payment can be used
271271
// as an overpayment. False, no overpayments will be taken.
272272
constexpr std::uint32_t const tfLoanOverpayment = 0x00010000;
273+
273274
// LoanPay exclusive flags:
274275
// tfLoanFullPayment: True, indicates that the payment is an early
275276
// full payment. It must pay the entire loan including close
276277
// interest and fees, or it will fail. False: Not a full payment.
277278
constexpr std::uint32_t const tfLoanFullPayment = 0x00020000;
279+
278280
// tfLoanLatePayment: True, indicates that the payment is late,
279281
// and includes late interest and fees. If the loan is not late,
280282
// it will fail. False: not a late payment. If the current payment
@@ -291,6 +293,11 @@ constexpr std::uint32_t const tfLoanImpair = 0x00020000;
291293
constexpr std::uint32_t const tfLoanUnimpair = 0x00040000;
292294
constexpr std::uint32_t const tfLoanManageMask = ~(tfUniversal | tfLoanDefault | tfLoanImpair | tfLoanUnimpair);
293295

296+
// VaultSet flags:
297+
constexpr std::uint32_t const tfVaultDepositBlock = 0x00010000;
298+
constexpr std::uint32_t const tfVaultDepositUnblock = 0x00020000;
299+
constexpr std::uint32_t const tfVaultManageMask = ~(tfUniversal | tfVaultDepositBlock | tfVaultDepositUnblock);
300+
294301
// clang-format on
295302

296303
} // namespace xrpl

0 commit comments

Comments
 (0)