vega-frontend-monorepo/libs/network-info
botond afeb772702
Feat/718 integrate node validation (#741)
* feat: add node swicther

* chore: remove hook form from node switcher

* feat: generate apollo types and add tests

* fix: format

* fix: types

* fix: remove redundant wrapper

* fix: layout styles

* fix: add controlled value to radio group

* fix: flaky node hook test

* feat: add custom input for node and more tests

* feat: wip refactor config hook to run on init

* fix: dont open node switcher on init

* fix: lint

* fix: lint

* fix: cache key error

* fix: format

* fix: lint

* feat: validate connected node on init WIP

* chore: refactor useconfig and usenodes

* fix: revert custom node branch changes

* feat: fix config loading errors and custom node handling

* feat: add test for nodes init

* fix: env error states

* fix: add more tests

* fix: format

* fix: lint and format

* fix: mock type in test

* fix: clean up queries

* fix: node block heights

* fix: make git variables optional

* fix: dialog width on lg screens

* feat: improve mobile looks

* fix: format

* fix: remove commented out styles

* fix: use node data url instead of key

* fix: clean up node switcher dialog props

* fix: add missing title and subtitle for dialog

* fix: show confiug load errors
2022-07-15 12:00:57 +01:00
..
src Feat/718 integrate node validation (#741) 2022-07-15 12:00:57 +01: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.