Files
Gala d7e82b075f Network Explorer: add economic dynamics (#1223)
* adding delegators number info on mixnode details

* add PM, Delegators and Avg. Uptime fields to the node list hardcoded

* make delegations number dynamic

* fixing bg color bug

* wip node info statistics

* adding basic tooltip new section and some ui

* tooltip customisation

* progress bar styles

* remove not used import

* fix info icons color

* remove discord icon

* Economic dynamics stats endpoint on the explorer API with dummy fixture data

* fetching economic-dynamics-stats

* Populating the endpoint with real data aggregated from validator api

* Introduced new cache functionalities

* using explorer-api data

* adding marging profit

* adding average update

* Update network-explorer.yml

* adding more info on mix nodes page

* display only part of wallet and node id

* typo

* remove log

* adding new values on node response and fix a typo

* remove delegators number column

* Endpoints for average mixnode uptime

* remove TODO

* Clippy

* some ui fixes for percentage linear progress

* GitHub Actions: build storybook for the Network Explorer and add to notification

* Fix file extension to `.ts`

* Fix up formatting and types

* Add storybook

* Add story for mix node details economics

* Fix unused warning

* adding percentage symbol on uptime in mix nodes

* Change eslint config

* some refactor

* progress bar story

* wip refactoring

* more refactor

* adding empty state to the story

* change default values for empty state

* refactor naming and progress bar contrast

* adding hardcoded selection chance and update the storybook

* adding selection chance stories

* adding the progress bar back

* tooltip button padding fix

* Endpoints for average mixnode uptime

* Fix unused warning

* Rustfmt

* moking selection chance response and new colors

* remove log

* fix camelCases issue

* remove hardcoded code

* remove avg_uptime at mixnodes table

* Add jsonchema to uptimeresponse struct

- add the route for avg_uptimes

* adding space between words

* update selection chance colours

* adding the 2 missing tooltips

* fix up uptimeresponse

* fix duplicate entry

* fmt

* validator-client: use statement

* explorer: PR requests

Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
Co-authored-by: Fouad <fmtabbara@hotmail.co.uk>
Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com>
Co-authored-by: Mark Sinclair <mmsinclair@gmail.com>
Co-authored-by: tommy <tommyvez@protonmail.com>
2022-05-06 20:50:26 +01:00
..
2021-11-08 12:23:27 +00:00
2022-04-01 10:07:02 +01:00
2021-11-08 12:23:27 +00:00
2021-11-08 12:23:27 +00:00
2021-11-08 12:23:27 +00:00
2021-11-08 12:23:27 +00:00
2021-11-08 12:23:27 +00:00

Nym Network Explorer

The network explorer lets you explore the Nym network.

Getting started

You will need:

  • NodeJS (use nvm install to automatically install the correct version)
  • npm
  • yarn

Note

: This project ipart of a mono repo, so you will need to build the shared packages before starting. And any time they change, you'll need to rebuild them.

From the root of the repository run the following to build shared packages:

yarn
yarn build

From the explorer directory of the nym monorepo, run:

cd explorer
yarn start

You can then open a browser to http://localhost:3000 and start development.

Development

Documentation for developers can be found here.

Deployment

Build the UI with (starting in the repository root):

yarn
yarn build
cd explorer
yarn build

The output will be in the dist directory. Serve this with nginx or httpd.

Make sure you have built the explorer-api and are running it as a service proxied through nginx or httpd so that both the UI and API are running on the same host.

License

Please see the project README and the LICENSES directory for license details for all Nym software.

Contributing

If you would like to contribute to the Network Explorer send us a PR or raise an issue on GitHub and tag them with network-explorer.

Development

Please see development docs here for more information on the structure and design of this app.