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