Package Exports
- phragmen-substrate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phragmen-substrate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Phragmen Leaderboard
Nodejs implementation of Phragmén Method for Substrate-base Networks (without edges reduce optimisations).
Check wiki about method here
The example applications runs a simple web server on port 3000, on which you can get the top 20 winners of the election. Also create winners json files in results folder.
To run example
npm update
node ./examples/polkadot/main.js
or
node ./examples/kusama/main.js
To change network
You can set ws uri in env parameters
export NODE_WS=ws://127.0.0.1:9944/
To change port
You can also set web server port in env parameters
export SERVER_PORT=3000