chore: merge release/testnet back in develop (#2613)

* chore: add mirror config for trading

* chore: fix url for mainnet mirror in network config

* fix: remove link if no market id

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
This commit is contained in:
m.ray 2023-01-13 09:10:31 -05:00 committed by GitHub
parent 99d338f50a
commit 8864696783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

10
apps/trading/.env.mirror Normal file
View File

@ -0,0 +1,10 @@
NX_ETHEREUM_PROVIDER_URL=https://sepolia.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8
NX_ETHERSCAN_URL=https://sepolia.etherscan.io
NX_HOSTED_WALLET_URL=https://wallet.testnet.vega.xyz
NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/mirror-network.json
NX_VEGA_ENV=MIRROR
NX_VEGA_EXPLORER_URL=https://mainnet-mirror.explorer.vega.xyz
NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"}
NX_VEGA_TOKEN_URL=https://mainnet-mirror.token.fairground.wtf
NX_VEGA_WALLET_URL=http://localhost:1789
NX_VEGA_DOCS_URL=https://docs.vega.xyz/mainnet

View File

@ -118,9 +118,14 @@ export const MarketLiquiditySupplied = ({
<section> <section>
{compiledGrid && <DataGrid grid={compiledGrid} />} {compiledGrid && <DataGrid grid={compiledGrid} />}
<br /> <br />
<Link href={`/#/liquidity/${marketId}`} data-testid="view-liquidity-link"> {marketId && (
{t('View liquidity provision table')} <Link
</Link> href={`/#/liquidity/${marketId}`}
data-testid="view-liquidity-link"
>
{t('View liquidity provision table')}
</Link>
)}
{showMessage && ( {showMessage && (
<p className="mt-4"> <p className="mt-4">
{t( {t(