AleoNet / snarkOS

A Decentralized Operating System for ZK Applications
http://snarkos.org
Apache License 2.0
4.32k stars 2.62k forks source link

[Feature] Support endpoints for querying historical data for the `delegated`, `bonded`, and `unbonding` mappings. #3310

Closed d0cd closed 3 months ago

d0cd commented 3 months ago

This PR exposes endpoints for querying previous states of the delegated, bonded, and unbonding mappings in credits.aleo.

If the history feature is enabled, the node will log data (via a feature-enabled snarkVM) and expose the // GET /{network}/block/{blockHeight}/history/{mapping} endpoint for users to query.

Note. The entirety of this PR is gated under the history feature.

CI ran succesfully here