Description
Setting weights from plugins is useful for dynamic weights, such as based on heuristics, as well as custom logic for minting cred.
The initiative system is one of the first to use this, so we can enable each Initiative to mint an arbitrary amount of cred.
To do so, we needed the abstraction of a WeightedGraph
instead of just a Graph
to be returned by plugins.
Status: Completed
Champion
Dependencies
References
- Closely related: separate cred computation from plugin code
Contributions
- Refactor Weights to remove awareness of types
- Move weights from analysis to core
- Rename
Weights.defaultWeights
toWeights.empty
- Add
Weights.merge
- Add core/weightedGraph
- Add
identity/contractIdentities
- Generate Weights from PluginDeclarations
- add
loadWeightedGraph
methods for plugins - add api/loadWeightedGraph
- Convert load pipeline to pass WeightedGraphs
- Add WeightedGraph.overrideWeights
- Move weights out of TimelineCredParams
- Remove types from TimelinePagerank