org.plasmalabs.indexer.services.GetBlockByIdRequestValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.indexer.services
object GetBlockByIdRequestValidator extends scalapb.validate.Validator[org.plasmalabs.indexer.services.GetBlockByIdRequest] {
def validate(input: org.plasmalabs.indexer.services.GetBlockByIdRequest): scalapb.validate.Result =
org.plasmalabs.consensus.models.BlockIdValidator.validate(input.blockId) &&
scalapb.validate.Result.optional(input.confidenceFactor) { _value =>
org.plasmalabs.indexer.services.ConfidenceFactorValidator.validate(_value)
}
}