vega-frontend-monorepo/libs/network-stats
Sam Keen 3354fbb0c2
frontend-monorepo-267 Reduce total staked to 2 decimal precision (#282)
* frontend-monorepo-267 Reduce total staked to 2 decimal precision

* Tweak to formatNumber to allow fixed decimal specificity

* Setting default value for the 'defaultPrecision' argument in the function signature of 'addDecimal'
2022-04-25 15:28:31 +01:00
..
src frontend-monorepo-267 Reduce total staked to 2 decimal precision (#282) 2022-04-25 15:28:31 +01:00
.babelrc frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
.eslintrc.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
jest.config.js frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
package.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
project.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
README.md frontend-monorepo-190 Add env vars details to stats readme (#202) 2022-04-06 13:19:48 +01:00
tsconfig.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
tsconfig.lib.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00
tsconfig.spec.json frontend-monorepo-127 Generalize stats page to work for all environments 2022-03-24 12:04:01 +00:00

network-stats

This library was generated with Nx.

Prerequisites

Two environment variables need to be present for any app consuming this library.

NX_VEGA_ENV is the name of the environment.

NX_VEGA_REST is the REST endpoint for the environment.

For examples, see Block Explorer's .env files here

Running unit tests

Run nx test network-stats to execute the unit tests via Jest.