mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-12 13:44:41 +00:00
cb1d612f1f
This module has a concise and clean type for storing all the output data from running SourceCred, including: - The graph - The weights - The cred scores and flows - The interval timing info - The plugins used - The parameters used We also have a method `compute` which computes one of these given the weighted graph, parameters, and plugins. It's all quite clean and simple. I feel good about thsi API. Test plan: The main `compute` function is only sanity checked via flow and unit testing, which is appropriate since it's a pure-piping function with little than can go wrong. I've also added JSON serialization; this is tested with round trip testing.