Packages

object Validation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. def validateAssetInputs(assetBoxes: List[(Address, AssetBox)], minting: Boolean): Either[BuildTransferFailure, List[(Address, AssetBox)]]

    Validates that the given list of asset boxes is non-empty, distinct, and has matching asset codes.

    Validates that the given list of asset boxes is non-empty, distinct, and has matching asset codes.

    assetBoxes

    the list of asset boxes to validate

    minting

    whether or not the asset transfer is minting

    returns

    the input list of asset boxes if successful, otherwise a BuildTransferFailures.DuplicateAssetCodes failure

  18. def validateFeeFunds(funds: Int128, feeAmount: Int128): Either[BuildTransferFailure, Int128]

    Validates that the given funds can pay the given fee.

    Validates that the given funds can pay the given fee.

    funds

    the funds to validate

    feeAmount

    the fee amount to pay

    returns

    the remainder after deducting the fee if successful, otherwise a BuildTransferFailures.InsufficientFeeFunds failure

  19. def validateNonEmptyInputs[A <: TokenValueHolder, B <: TokenBox[A]](boxes: List[(Address, B)]): Either[BuildTransferFailure, List[(Address, B)]]

    Validates that a given list of boxes is non-empty.

    Validates that a given list of boxes is non-empty. Fails with BuildTransferFailures.EmptyInputs.

    A

    the type of TokenValueHolder contained by the boxes

    B

    the type of the boxes

    boxes

    the list of boxes to check

    returns

    the input boxes if successful, otherwise a BuildTransferFailures.EmptyInputs failure

  20. def validateNonEmptyRecipients(recipients: List[Tuple2[Address, _]]): Either[BuildTransferFailure, List[Tuple2[Address, _]]]

    Validates that a list of recipients is non empty Fails with BuildTransferFailures.EmptyRecipients.

    Validates that a list of recipients is non empty Fails with BuildTransferFailures.EmptyRecipients.

    recipients

    the list of recipients to validate

    returns

    the recipients if successful, otherwise a BuildTransferFailures.EmptyRecipients failure

  21. def validatePaymentFunds(funds: Int128, paymentAmount: Int128): Either[BuildTransferFailure, Int128]

    Validates that the given funds can pay the given amount.

    Validates that the given funds can pay the given amount.

    funds

    the funds to validate

    paymentAmount

    the amount required to pay

    returns

    the remainder after deducting the payment amount if successful, otherwise a BuildTransferFailures.InsufficientPaymentFunds

  22. def validateSameAssetCode(expectedAssetCode: AssetCode, assetBoxes: List[(Address, AssetBox)], minting: Boolean): Either[BuildTransferFailure, AssetCode]

    Validates that the asset codes of the given boxes match the given asset code.

    Validates that the asset codes of the given boxes match the given asset code.

    expectedAssetCode

    the asset code expected in each box

    assetBoxes

    the list of boxes to validate

    minting

    whether or not the asset transfer is minting

    returns

    the asset code if successful, otherwise a BuildTransferFailures.DifferentInputOutputCodes failure

  23. def validateUniqueInputs[A <: TokenValueHolder, B <: TokenBox[A]](boxes: List[(Address, B)]): Either[BuildTransferFailure, List[(Address, B)]]

    Validates that a given list of boxes contains only unique inputs.

    Validates that a given list of boxes contains only unique inputs. Fails with BuildTransferFailures.DuplicateInputs.

    A

    the type of TokenValueHolder contained by the boxes

    B

    the type of the boxes

    boxes

    the list of boxes to validate

    returns

    the input boxes if successful, otherwise a BuildTransferFailures.DuplicateInputs failure

  24. def validateUniqueRecipients(recipients: List[Tuple2[Address, _]]): Either[BuildTransferFailure, List[Tuple2[Address, _]]]

    Validates that the given recipients are all unique values.

    Validates that the given recipients are all unique values. Fails with BuildTransferFailures.DuplicateRecipients.

    recipients

    the list of recipients to validate

    returns

    the recipients if successful, otherwise a BuildTransferFailures.DuplicateRecipients failure

  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped