xyz.stratalab.consensus.models.ActiveStakerValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.consensus.models
object ActiveStakerValidator extends scalapb.validate.Validator[xyz.stratalab.consensus.models.ActiveStaker] {
def validate(input: xyz.stratalab.consensus.models.ActiveStaker): scalapb.validate.Result =
xyz.stratalab.consensus.models.StakingRegistrationValidator.validate(input.registration) &&
quivr.models.Int128Validator.validate(input.quantity)
}