Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify subgraph queries to display network status and calculate importance score #165

Open
4 of 5 tasks
QYuQianchen opened this issue Oct 1, 2021 · 1 comment · May be fixed by #164
Open
4 of 5 tasks

Modify subgraph queries to display network status and calculate importance score #165

QYuQianchen opened this issue Oct 1, 2021 · 1 comment · May be fixed by #164
Labels
feature New feature or request needs review

Comments

@QYuQianchen
Copy link

QYuQianchen commented Oct 1, 2021

Subgraph and js

In the branch fix/network, a new subgraph endpoint in included.

  • Queries in queries.js need to be modified in order to display:
    - the number of opened channels
    - the number of closed channels
    - address
    - id (multiaddress)
    for each node.
  • add function to calculate importance score in api.js
  • add function to calculate the integration of importance score over time in api.js

Front end

  • getAllAccounts() and getAllData() function need to be adapted to display data in the frontend
  • Add another field of importance score
importance(node) = a scalar value that measures the importance of the node to the network.
                                = stake(node) * sum(weight(channel) for all outgoingChannels(node))
                               ```
@QYuQianchen QYuQianchen added feature New feature or request needs review labels Oct 1, 2021
@QYuQianchen QYuQianchen self-assigned this Oct 1, 2021
@QYuQianchen QYuQianchen linked a pull request Oct 1, 2021 that will close this issue
@QYuQianchen
Copy link
Author

@jjperezaguinaga Importance score's calculation is included and returned to the frontend within getAllData() function, but this field is not yet rendered on the UI. Please invite Obsidien team to work on displaying this value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request needs review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants