vega-frontend-monorepo/apps/explorer
2024-02-05 17:35:12 +00:00
..
src feat(explorer): batch proposal support (#5711) 2024-02-05 17:35:12 +00:00
.babelrc chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
.browserslistrc migrate stuff into new NX 2022-02-23 08:53:57 +00:00
.env feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.capsule feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.devnet feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.mainnet feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.mainnet-mirror feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.stagnet1 chore(trading): add oracle proofs url to all envs (#4793) 2023-09-14 13:57:28 -07:00
.env.testnet feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.validators-testnet feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.env.vegacapsule feat(explorer): support for more external chains (#5687) 2024-01-31 10:36:58 +00:00
.eslintrc.json chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
index.d.ts Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
jest.config.ts chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
postcss.config.js add basic tailwind setup 2022-03-04 17:11:56 +00:00
project.json chore(ci): remove unused netlify configs (#5278) 2023-11-15 13:40:26 -08:00
README.md feat(governance,explorer,trading): add env config for mainnet-mirror apps (#4253) 2023-07-04 16:20:40 +00:00
tailwind.config.js chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
tsconfig.app.json chore(trading,governance,explorer): nx migration to latest (#5246) 2023-11-14 15:25:29 +01:00
tsconfig.json fix(environment): console not finding node (#3040) 2023-03-01 08:45:57 +01:00
tsconfig.spec.json chore(trading,governance,explorer): nx migration to latest (#5246) 2023-11-14 15:25:29 +01:00
webpack.config.js chore(trading): ignore parse source map warnings, fix trading readme (#4252) 2023-07-11 10:41:54 +01:00

Explorer

Features

  • Transactions - Showing all transactions and decoded individual transactions
  • Search - Search for block number or transaction hash
  • Blocks - A list of the blocks on our chain and the transactions within each block
  • Assets - List of all assets on the Vega chain
  • Genesis - The initial Genesis configuration the network was started with
  • Governance - Current and past governance proposals
  • Markets - The markets currently open and expired on the Vega network
  • Network Parameters - The current network parameters
  • Parties - Searching for a specific party and the details for that party
  • Validators - The validator information in Vega and Tendermint

Development

First copy the configuration of the application you are starting:

cp .env.[environment] .env.local

Starting the app:

yarn nx serve explorer

Configuration

Example configurations are provided here:

For convenience, you can boot the app injecting one of the configurations above by running:

yarn env-cmd -f .\apps\explorer\.env.{env} yarn nx run explorer:serve # e.g. stagnet1

There are a few different configuration options offered for this app:

Flag Purpose
NX_TENDERMINT_URL The Tendermint REST URL for the Vega consesus engine
NX_TENDERMINT_WEBSOCKET_URL The Tendermint Websocket URL for the Vega consensus engine
NX_VEGA_ENV The name of the currently connected vega environment
NX_EXPLORER_ASSETS Enable the assets page for the explorer
NX_EXPLORER_GENESIS Enable the genesis page for the explorer
NX_EXPLORER_GOVERNANCE Enable the governance page for the explorer
NX_EXPLORER_MARKETS Enable the markets page for the explorer
NX_EXPLORER_ORACLES Enable the oracles page for the explorer
NX_EXPLORER_TXS_LIST Enable the transactions list page for the explorer
NX_EXPLORER_NETWORK_PARAMETERS Enable the network parameters page for the explorer
NX_EXPLORER_PARTIES Enable the parties page for the explorer
NX_EXPLORER_VALIDATORS Enable the validators page for the explorer

Testing

To run the minimal set of unit tests, run the following:

yarn nx test explorer

To run the UI automation tests with a mocked API, run:

yarn nx run explorer-e2e:e2e