vega-frontend-monorepo/libs/network-stats
botond 3a27172e04
feat(#175): ui-toolkit links (#453)
* feat: add enviromnemt provider to the ui-toolkit

* chore: replace etherscan links

* chore: wrap trading app into environment provider

* chore: move env provider to react-helpers and wrap every app

* chore: remove more env variables from libs and replace them with the env hook

* fix: lint

* fix: update readme with correct formatting command

* fix: warnings for web3 hook

* fix: wrap warning in conditional, print message only when env keys are missing

* fix: incorrect condition on deposit manager fauceting param

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>

* fix: cleanup token app ethereum config

* chore: add better error handling to the useEnvironment hook

* fix: lint

* fix: formatting

* fix: more lint

* fix: throw error if required env variables are missing

* fix: remove default eth chain id

* fix: add back etherscan testid to withdrawals links

* fix: imports

* fix: try using babel jest for smart contracts test transpilation

* fix: uniform ts syntax

* chore: set resolveJsonModule in base tsconfig

* fix: add missing data-ids for etherscan links

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-05-31 17:30:02 -07:00
..
src Feat/300 network parameters table (#333) 2022-05-04 18:15:54 +03: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 feat(#175): ui-toolkit links (#453) 2022-05-31 17:30:02 -07: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.