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