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