mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-23 01:38:12 +00:00
This commit adds Graph.contractNodes, which allows collapsing certain nodes in the graph into each other. This will enable the creation of a SourceCred "identity" plugin, allowing identity resolution between users different accounts on different services. Test plan: Thorough unit tests have been added. `yarn test` passes. Thanks to @wchargin for [review feedback][1] which significantly improved this API. [1]: https://github.com/sourcecred/sourcecred/pull/1380#discussion_r324958055