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