7c8a54b35a
* frontend-monorepo-1263 validator status of pending now named 'candidate' in the ui * feat(1263): validator table updates, calculating penalties * feat(1263): bit of cleanup * feat(1263): tables built and values derived * feat(1263): tweaks * feat(1263): upping site max width to 1500px * feat(1263): tweak to normalised voting power column width * feat(1263): ensure validator rows when hovered have cursor:pointer * feat(1263): consensus validators now have a ranking field by voting power shown in the table * feat(1263): fixed linting errors * feat(1263): a couple of extra tests and correct import of schema to use enums * Update apps/token/src/routes/staking/home/validator-tables/standby-pending-validators-table.tsx Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> * Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> * Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> * Update apps/token/src/routes/staking/home/validator-tables/validator-tables.tsx Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> * feat(1263): tweaks from PR comments, initial push of util to remove 'node' from arrs * feat(1263): updated new util to remove 'node' from 'edges'. Implemented across the monorepo * feat(1263): cleaned up splitting validators into consensus, pending and ersatz to put into tables * feat(1263): used decimals from app state in validator-tables.tsx * feat(1263): removed redundant compact import Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com> |
||
---|---|---|
.. | ||
src | ||
.babelrc | ||
.browserslistrc | ||
.env | ||
.env.capsule | ||
.env.devnet | ||
.env.mainnet | ||
.env.sandbox | ||
.env.stagnet1 | ||
.env.stagnet3 | ||
.env.testnet | ||
.env.vegacapsule | ||
.eslintrc.json | ||
index.d.ts | ||
jest.config.ts | ||
netlify.toml | ||
postcss.config.js | ||
project.json | ||
README.md | ||
tailwind.config.js | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
webpack.config.js |
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. stagnet3
There are a few different configuration options offered for this app:
Flag | Purpose | |
---|---|---|
NX_CHAIN_EXPLORER_URL |
The URL of the chain explorer service for decoding transactions | |
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