vega-frontend-monorepo/libs/network-info
Joe Tsang 8cd394babd
test: additional test for git info (#779)
* test: additional test for git info

* fix: lint

* fix: failing test due to change in total staked coins
2022-07-18 12:52:26 +02:00
..
src test: additional test for git info (#779) 2022-07-18 12:52:26 +02:00
.babelrc Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
.eslintrc.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
jest.config.js Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
package.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
project.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
README.md Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
tsconfig.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
tsconfig.lib.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00
tsconfig.spec.json Feat/675: Git info (#683) 2022-07-06 15:53:35 +00:00

network-info

This library was generated with Nx.

Prerequisites

The environment variables needed to be present for any app consuming this library.

NX_VEGA_URL OR NX_VEGA_CONFIG_URL - either the network configuration url or a url to a node to directly connect to

NX_VEGA_NETWORKS - JSON object with key-value pairs for environments and their deployed URLs

NX_GITHUB_FEEDBACK_URL - the repository's feedback URL to point to

NX_ETHEREUM_PROVIDER_URL - the Ethereum provider url

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

Running unit tests

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