regen-ledger icon indicating copy to clipboard operation
regen-ledger copied to clipboard

Add missing genesis validation checks

Open ryanchristo opened this issue 2 years ago • 0 comments

Summary

When creating a separate genesis package within the ecocredit module and migrating genesis validation checks for batch, class, and project in #1293, I noticed we are missing validation functions for a lot of state objects to be used in genesis validation.

We should make sure we have validation for all state objects. Also, we should prefix the files with state_ (currently types_).

Problem Definition

When creating a new genesis file or validating an exported genesis file, we should be validating all state.

Proposal

Add validate received methods for all state objects and add validation check to genesis validation.


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

ryanchristo avatar Aug 03 '22 06:08 ryanchristo