xyz.stratalab.indexer.services.GetBlockByDepthRequestValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.indexer.services
object GetBlockByDepthRequestValidator extends scalapb.validate.Validator[xyz.stratalab.indexer.services.GetBlockByDepthRequest] {
def validate(input: xyz.stratalab.indexer.services.GetBlockByDepthRequest): scalapb.validate.Result =
xyz.stratalab.indexer.services.ChainDistanceValidator.validate(input.depth) &&
scalapb.validate.Result.optional(input.confidenceFactor) { _value =>
xyz.stratalab.indexer.services.ConfidenceFactorValidator.validate(_value)
}
}