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