xyz.stratalab.indexer.services.GetTransactionByIdRequestValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.indexer.services
object GetTransactionByIdRequestValidator extends scalapb.validate.Validator[xyz.stratalab.indexer.services.GetTransactionByIdRequest] {
def validate(input: xyz.stratalab.indexer.services.GetTransactionByIdRequest): scalapb.validate.Result =
xyz.stratalab.sdk.models.TransactionIdValidator.validate(input.transactionId) &&
scalapb.validate.Result.optional(input.confidenceFactor) { _value =>
xyz.stratalab.indexer.services.ConfidenceFactorValidator.validate(_value)
}
}