xyz.stratalab.proto.node.EpochDataValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.proto.node
object EpochDataValidator extends scalapb.validate.Validator[xyz.stratalab.proto.node.EpochData] {
def validate(input: xyz.stratalab.proto.node.EpochData): scalapb.validate.Result =
quivr.models.Int128Validator.validate(input.totalTransactionReward) &&
quivr.models.Int128Validator.validate(input.activeStake) &&
quivr.models.Int128Validator.validate(input.inactiveStake)
}