t
co.topl.modifier.transaction.validation
SemanticallyValidatable
Companion object SemanticallyValidatable
trait SemanticallyValidatable[T] extends Serializable
- Annotations
- @implicitNotFound("Could not find an instance of SemanticallyValidatable for ${T}")
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- SemanticallyValidatable
- Serializable
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def getClass(): Class[_ <: AnyRef]
- Definition Classes
- Any
- abstract def semanticValidation(t: T, boxReader: BoxReader[ProgramId, Address])(implicit networkPrefix: NetworkPrefix): ValidatedNec[SemanticValidationFailure, T]
Performs semantic validation on the given T.
Performs semantic validation on the given T. Semantic validation needs to consider some sort of context when making decisions. The context in this case is a view/reader of the boxes in the history of the blockchain.
This type of validation is expected to be "computationally expensive"
- t
The item to validate
- boxReader
The context of this validation
- returns
either a non-empty listt of SemanticValidationFailures, or the given value T
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any