vega-frontend-monorepo/apps/explorer
Davide S cafb3b1c57
fix(explorer): liquidity provision fee percentage (#4183)
Co-authored-by: Edd <edd@vega.xyz>
2023-06-28 15:35:38 +00:00
..
src fix(explorer): liquidity provision fee percentage (#4183) 2023-06-28 15:35:38 +00:00
.babelrc migrate stuff into new NX 2022-02-23 08:53:57 +00:00
.browserslistrc migrate stuff into new NX 2022-02-23 08:53:57 +00:00
.env fix(explorer): fix broken protocol upgrade tx link (#4029) 2023-06-07 14:47:55 +01:00
.env.capsule fix(explorer): set explorer url env var in explorer (#3622) 2023-05-09 09:03:35 +01:00
.env.devnet feat(governance): token references to governance (#3657) 2023-05-09 14:17:40 +00:00
.env.mainnet feat(explorer): transaction list filtering 2023-06-15 17:10:17 +01:00
.env.stagnet1 fix(explorer): fix stagnet1 env (#3975) 2023-05-29 17:31:39 +01:00
.env.testnet fix(trading): console.fairground.wtf links update back (#3907) 2023-05-23 15:49:14 +00:00
.env.validators-testnet chore(trading): update environments. add vega.trading to network switcher (#3869) 2023-05-22 15:50:13 +00:00
.env.vegacapsule fix(explorer): set explorer url env var in explorer (#3622) 2023-05-09 09:03:35 +01:00
.eslintrc.json Feat/1334 replace json (#1459) 2022-09-26 10:10:33 +01:00
index.d.ts Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
jest.config.ts fix: fix empty rows on empty collateral list (#2312) 2022-12-05 11:05:31 +01:00
netlify.toml remove old explorer logic 2022-02-23 08:53:57 +00:00
postcss.config.js add basic tailwind setup 2022-03-04 17:11:56 +00:00
project.json feat(explorer): transaction list filtering 2023-06-15 17:10:17 +01:00
README.md chore(explorer,trading,governance): remove stagnet3 (#3608) 2023-05-04 16:50:39 +00:00
tailwind.config.js feat(explorer): asset details (#2882) 2023-02-09 18:12:38 +01:00
tsconfig.app.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
tsconfig.json fix(environment): console not finding node (#3040) 2023-03-01 08:45:57 +01:00
tsconfig.spec.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
webpack.config.js fix: remove redundant env settings from explorer (#732) 2022-07-08 15:23:28 +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 nx run explorer:serve --env={env} # 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