This PR changes how Checkpointz parses beacon state objects. Previously we just stored the raw bytes that were received from the upstream beacon node. This was becoming more and more painful as we try to comply with the Beacon API Spec as much as possible. We now fetch the state, parse it in to a struct, and marshal it to SSZ when someone requests it, allowing us to be more compliant with the Beacon API Spec.
This PR changes how Checkpointz parses
beacon state
objects. Previously we just stored the raw bytes that were received from the upstream beacon node. This was becoming more and more painful as we try to comply with the Beacon API Spec as much as possible. We now fetch the state, parse it in to a struct, and marshal it to SSZ when someone requests it, allowing us to be more compliant with the Beacon API Spec.