Skip to main content

ledger_engine/
amendments.rs

1//! Amendments `feature` knows: every amendment of xrpld 3.4.1
2//! (`include/xrpl/protocol/detail/features.macro`, newest first, with
3//! `supported` as there; retired ones are supported), then amendments that
4//! older xrpld versions knew and 3.4.1 dropped, which Clio 2.8 still lists as
5//! not supported. An amendment's ID is SHA-512Half of its name. Update the
6//! table with each xrpld release, together with `definitions.json`.
7
8/// Name and whether xrpld 3.4.1 supports it.
9pub const AMENDMENTS: [(&str, bool); 117] = [
10    ("fixBatchV1_2", true),
11    ("fixCleanup3_4_0", true),
12    ("Sponsor", true),
13    ("BatchV1_1", true),
14    ("LendingProtocolV1_1", true),
15    ("ConfidentialTransfer", true),
16    ("fixCleanup3_3_0", true),
17    ("fixCleanup3_2_0", true),
18    ("MPTokensV2", false),
19    ("fixCleanup3_1_3", true),
20    ("LendingProtocol", true),
21    ("PermissionDelegationV1_1", true),
22    ("fixDirectoryLimit", true),
23    ("fixIncludeKeyletFields", true),
24    ("DynamicMPT", true),
25    ("fixTokenEscrowV1", true),
26    ("fixPriceOracleOrder", true),
27    ("fixMPTDeliveredAmount", true),
28    ("fixAMMClawbackRounding", true),
29    ("TokenEscrow", true),
30    ("fixEnforceNFTokenTrustlineV2", true),
31    ("fixAMMv1_3", true),
32    ("PermissionedDEX", true),
33    ("SingleAssetVault", true),
34    ("fixPayChanCancelAfter", true),
35    ("fixInvalidTxFlags", true),
36    ("fixFrozenLPTokenTransfer", true),
37    ("DeepFreeze", true),
38    ("PermissionedDomains", true),
39    ("DynamicNFT", true),
40    ("Credentials", true),
41    ("AMMClawback", true),
42    ("fixAMMv1_2", true),
43    ("MPTokensV1", true),
44    ("fixNFTokenPageLinks", true),
45    ("fixInnerObjTemplate2", true),
46    ("fixEnforceNFTokenTrustline", true),
47    ("fixReducedOffersV2", true),
48    ("NFTokenMintOffer", true),
49    ("fixAMMv1_1", true),
50    ("fixPreviousTxnID", true),
51    ("fixXChainRewardRounding", true),
52    ("fixEmptyDID", true),
53    ("PriceOracle", true),
54    ("fixFillOrKill", true),
55    ("DID", true),
56    ("XChainBridge", true),
57    ("AMM", true),
58    ("XRPFees", true),
59    ("fixRemoveNFTokenAutoTrustLine", true),
60    ("fix1201", true),
61    ("fix1368", true),
62    ("fix1373", true),
63    ("fix1512", true),
64    ("fix1513", true),
65    ("fix1515", true),
66    ("fix1523", true),
67    ("fix1528", true),
68    ("fix1543", true),
69    ("fix1571", true),
70    ("fix1578", true),
71    ("fix1623", true),
72    ("fix1781", true),
73    ("fixAmendmentMajorityCalc", true),
74    ("fixAMMOverflowOffer", true),
75    ("fixCheckThreading", true),
76    ("fixDisallowIncomingV1", true),
77    ("fixInnerObjTemplate", true),
78    ("fixMasterKeyAsRegularKey", true),
79    ("fixNonFungibleTokensV1_2", true),
80    ("fixNFTokenRemint", true),
81    ("fixNFTokenReserve", true),
82    ("fixPayChanRecipientOwnerDir", true),
83    ("fixQualityUpperBound", true),
84    ("fixReducedOffersV1", true),
85    ("fixRmSmallIncreasedQOffers", true),
86    ("fixSTAmountCanonicalize", true),
87    ("fixTakerDryOfferRemoval", true),
88    ("fixTrustLinesToSelf", true),
89    ("fixUniversalNumber", true),
90    ("Checks", true),
91    ("CheckCashMakesTrustLine", true),
92    ("Clawback", true),
93    ("CryptoConditions", true),
94    ("CryptoConditionsSuite", true),
95    ("DeletableAccounts", true),
96    ("DepositAuth", true),
97    ("DepositPreauth", true),
98    ("DisallowIncoming", true),
99    ("Escrow", true),
100    ("EnforceInvariants", true),
101    ("ExpandedSignerList", true),
102    ("FeeEscalation", true),
103    ("Flow", true),
104    ("FlowCross", true),
105    ("FlowSortStrands", true),
106    ("HardenedValidations", true),
107    ("ImmediateOfferKilled", true),
108    ("MultiSign", true),
109    ("MultiSignReserve", true),
110    ("NegativeUNL", true),
111    ("NonFungibleTokensV1_1", true),
112    ("PayChan", true),
113    ("RequireFullyCanonicalSig", true),
114    ("SortedDirectories", true),
115    ("TicketBatch", true),
116    ("TickSize", true),
117    ("TrustSetAuth", true),
118    // Dropped before xrpld 3.4.1.
119    ("Batch", false),
120    ("InvariantsV1_1", false),
121    ("NonFungibleTokensV1", false),
122    ("OwnerPaysFee", false),
123    ("PermissionDelegation", false),
124    ("fixBatchInnerSigs", false),
125    ("fixDelegateV1_1", false),
126    ("fixNFTokenDirV1", false),
127    ("fixNFTokenNegOffer", false),
128];