File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
main/java/org/stellar/sdk
test/java/org/stellar/sdk Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 22
33## Pending
44
5+ ### Update:
6+ - feat: add ` AUTH_CLAWBACK_ENABLED_FLAG ` to ` AccountFlag ` .
7+
58## 2.1.0
69
710### Update:
Original file line number Diff line number Diff line change @@ -27,9 +27,13 @@ public enum AccountFlag {
2727 * Authorization immutable (0x4): If this is set then none of the authorization flags can be set
2828 * and the account can never be deleted.
2929 */
30- AUTH_IMMUTABLE_FLAG (AccountFlags .AUTH_IMMUTABLE_FLAG .getValue ());
30+ AUTH_IMMUTABLE_FLAG (AccountFlags .AUTH_IMMUTABLE_FLAG .getValue ()),
3131
32- // TODO: Add Clawback Enabled flag
32+ /**
33+ * Authorization clawback enabled (0x8): Allows the issuing account to clawback its credit held by
34+ * other accounts. This flag requires that {@link #AUTH_REVOCABLE_FLAG} is also set.
35+ */
36+ AUTH_CLAWBACK_ENABLED_FLAG (AccountFlags .AUTH_CLAWBACK_ENABLED_FLAG .getValue ());
3337
3438 private final int value ;
3539
Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ public class SetOptionsOperation extends Operation {
3434
3535 /**
3636 * Indicates which flags to clear. For details about the flags, please refer to the <a
37- * href="https://developers.stellar.org/docs/glossary/accounts/ " target="_blank">accounts doc</a>.
38- * You can also use {@link AccountFlag} enum.
37+ * href="https://developers.stellar.org/docs/learn/glossary#flags " target="_blank">accounts
38+ * doc</a>. You can also use {@link AccountFlag} enum.
3939 */
40+ // TODO: change to EnumSet<AccountFlag> in next major release
4041 @ Nullable private final Integer clearFlags ;
4142
4243 /**
4344 * Indicates which flags to set. For details about the flags, please refer to the <a
44- * href="https://developers.stellar.org/docs/glossary/accounts/ " target="_blank">accounts doc</a>.
45- * You can also use {@link AccountFlag} enum.
45+ * href="https://developers.stellar.org/docs/learn/glossary#flags " target="_blank">accounts
46+ * doc</a>. You can also use {@link AccountFlag} enum.
4647 */
4748 @ Nullable private final Integer setFlags ;
4849
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ public void testValues() {
1010 assertEquals (1 , AccountFlag .AUTH_REQUIRED_FLAG .getValue ());
1111 assertEquals (2 , AccountFlag .AUTH_REVOCABLE_FLAG .getValue ());
1212 assertEquals (4 , AccountFlag .AUTH_IMMUTABLE_FLAG .getValue ());
13+ assertEquals (8 , AccountFlag .AUTH_CLAWBACK_ENABLED_FLAG .getValue ());
1314 }
1415}
You can’t perform that action at this time.
0 commit comments