This code is an implementation of neurons
from the Neural Quorum Governance.
The data computed by this package is uploaded to the voting contract.
This is the source code used to calculate voting powers for each neuron used in NQG mechanism. It also normalized the votes of voters (converts delegations to final votes) for them to be uploaded to the contract.
Neurons expect the inputs to be provided in json
format. The inputs are loaded from data/
directory.
Computed voting powers and normalized votes are written to result/
directory.
cargo run
Assigns voting power based on voter discord rank.
Assigns voting power based on rounds voter previously participated in.
Assigns voting power based on trust assigned to voter by other voters. It uses min-max normalized PageRank algorithm to compute the score.
cargo test
cargo lint
This is an alias to cargo clippy
with special config. See .cargo/config.toml
for more details.
cargo fmt