4ed623c84c
* feat: update connect dialog to handle api v2 * feat: better error handling * feat: update to only use strings for pubkey, add json rpc connector * feat: make json connector follow same patterns as rest connector * feat: add ability to change wallet location * feat: add chain id fetch * feat: improve types * feat: adjust send tx types * chore: remove dialog title and chain check temporarily * feat: additional UI and error handling * feat: rename keypair and keypairs to pubKey and pubKeys * feat: make rest and json rpc connectors return consistent data * feat: rename derived ids more clearly * feat: update send_transaction response type * chore: fix tests after context name change * feat: add utils for wallet, add encode tx func * feat: return null if tx is rejected * feat: fix up styles for connect buttons * feat: handle wallet version check * feat: add chain id check * chore: rename select pub key function to match, fix tests * fix: tests for rest connector form * feat: add tests for json rpc flow * feat: connect dialog changes * chore: change status to enum to avoid magic strings * feat: add custom icons and handle provided key name * chore: update global wallet connection e2d tests * chore: change zod validation to only expected required values * chore: ignore new generated code files * chore: fix typos and add translations * chore: set hosted wallet via env var and only show if not mainnet * feat: add functionality for try again button * test: fix failing tests * chore: fix lint and test * chore: remove double import * chore: make console-lite-e2e strict so json connector compiles correctly * chore: make token e2e tsconfig strict * chore: make stats-e2e tsconfig strict * feat: update json rpc request namespace * feat: simplify connector setup, support try again * chore: remove comment * fix: build errors * chore: make chainId check optional based on presence of appChainId, mock request for tests * chore: mock chain id request for all apps on all pages * fix: footer border on small screens * fix: use beforeEach for chainId query mock * chore: remove optional chain check, prevent rendering until fetch is complete * chore: update NX_VEGA_WALLET_URLs as the application now appends the base path, adjust token tests * fix: token e2e test that checks for pubkey name * chore: remove duplicated test, update wallet title assertion * fix: token tests * fix: token e2e assertions * fix: withdraw test * feat: enable json RPC for token * fix: sendTx command now accpets pubkey as separate arg * fix: test to use gui option temporarily Co-authored-by: Dexter <dexter.edwards93@gmail.com> |
||
---|---|---|
.. | ||
src | ||
.babelrc | ||
.browserslistrc | ||
.env | ||
.env.capsule | ||
.env.devnet | ||
.env.mainnet | ||
.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_URL |
The GraphQl query endpoint of a Vega data node | |
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