Class AmmDepositFlags


@Beta public class AmmDepositFlags extends TransactionFlags
A set of TransactionFlags that can be set on AmmDeposit transactions. Exactly one flag must be set on each AmmDeposit transaction, so this class does not allow for combination of multiple flags.

While most other TransactionFlags support empty flags or 0, AmmDeposit transactions must have a Flags field to denote the deposit mode. Therefore, AmmDepositFlags does not support empty or unset flags.

This class will be marked Beta until the AMM amendment is enabled on mainnet. Its API is subject to change.

  • Field Details

  • Method Details

    • tfLpToken

      public boolean tfLpToken()
      Whether the tfLPToken flag is set.
      Returns:
      true if tfLPToken is set, otherwise false.
    • tfSingleAsset

      public boolean tfSingleAsset()
      Whether the tfSingleAsset flag is set.
      Returns:
      true if tfSingleAsset is set, otherwise false.
    • tfTwoAsset

      public boolean tfTwoAsset()
      Whether the tfTwoAsset flag is set.
      Returns:
      true if tfTwoAsset is set, otherwise false.
    • tfOneAssetLpToken

      public boolean tfOneAssetLpToken()
      Whether the tfOneAssetLPToken flag is set.
      Returns:
      true if tfOneAssetLPToken is set, otherwise false.
    • tfLimitLpToken

      public boolean tfLimitLpToken()
      Whether the tfLimitLPToken flag is set.
      Returns:
      true if tfLimitLPToken is set, otherwise false.
    • tfTwoAssetIfEmpty

      public boolean tfTwoAssetIfEmpty()
      Whether the tfTwoAssetIfEmpty flag is set.
      Returns:
      true if tfTwoAssetIfEmpty is set, otherwise false.
    • tfInnerBatchTxn

      public boolean tfInnerBatchTxn()
      Whether the tfInnerBatchTxn flag is set.
      Overrides:
      tfInnerBatchTxn in class TransactionFlags
      Returns:
      true if tfInnerBatchTxn is set, otherwise false.
      See Also:
      • "https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0056-batch"