object Validation
- Alphabetic
- By Inheritance
- Validation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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.DuplicateAssetCodesfailure
- 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.InsufficientFeeFundsfailure
- 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.EmptyInputsfailure
- 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.EmptyRecipientsfailure
- 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
- 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.DifferentInputOutputCodesfailure
- 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.DuplicateInputsfailure
- 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.DuplicateRecipientsfailure
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()