mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-20 01:18:58 +00:00
ad2470e5c6
This modifies `sourcecred load` so that it saves timestamp information for all of the loaded plugins in a single aggregated map. This is quite convenient, as it saves consumers of timestamp information from needing to worry about the (rather hacky) implementation whereby the data is fed from each adapter. Instead, consumers can just load the timestamp map. This will also make it much easier to use timestamp info in the research codebase. Test plan: The timestampMap module has testing around generating the map from the adapter and nodes, writing it, and reading it. I haven't added any testing to the `load` CLI command. I think it would be redundant as the updated snapshot test reveals that the map is getting serialized properly. Tests pass, and I have inspected the snapshot