ecda46caa5
* feat: add network-switcher lib * feat: add env variables for some deployed app urls * feat: add network processing to environment hoook * refactor: network handling * refactor: remove dialog from provider and add env setter * feat: add network switcher dialog to the trading app * refactor: add network redirect to dialog connect callback * fix: lint * fix: jsonify env variable for possible networks * fix: add formatter file * fix: assign correct global state to network swicther * feat: add network-switcher lib * feat: add env variables for some deployed app urls * feat: add network processing to environment hoook * refactor: network handling * refactor: remove dialog from provider and add env setter * feat: add network switcher dialog to the trading app * refactor: add network redirect to dialog connect callback * fix: lint * fix: jsonify env variable for possible networks * fix: add formatter file * fix: assign correct global state to network swicther * fix: failing tests from UI changes * fix: lint * fix: lint Co-authored-by: Joe <joe@vega.xyz> Co-authored-by: Dexter <dexter.edwards93@gmail.com>
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# React Environment Variables
|
|
# https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#expanding-environment-variables-in-env
|
|
|
|
# Netlify Environment Variables
|
|
# https://www.netlify.com/docs/continuous-deployment/#environment-variables
|
|
NX_VERSION=$npm_package_version
|
|
NX_REPOSITORY_URL=$REPOSITORY_URL
|
|
NX_BRANCH=$BRANCH
|
|
NX_PULL_REQUEST=$PULL_REQUEST
|
|
NX_HEAD=$HEAD
|
|
NX_COMMIT_REF=$COMMIT_REF
|
|
NX_CONTEXT=$CONTEXT
|
|
NX_REVIEW_ID=$REVIEW_ID
|
|
NX_INCOMING_HOOK_TITLE=$INCOMING_HOOK_TITLE
|
|
NX_INCOMING_HOOK_URL=$INCOMING_HOOK_URL
|
|
NX_INCOMING_HOOK_BODY=$INCOMING_HOOK_BODY
|
|
NX_URL=$URL
|
|
NX_DEPLOY_URL=$DEPLOY_URL
|
|
NX_DEPLOY_PRIME_URL=$DEPLOY_PRIME_URL
|
|
|
|
NX_CHAIN_EXPLORER_URL = "https://explorer.vega.trading/.netlify/functions/chain-explorer-api"
|
|
NX_TENDERMINT_URL = "https://lb.testnet.vega.xyz/tm"
|
|
NX_TENDERMINT_WEBSOCKET_URL = "wss://lb.testnet.vega.xyz/tm/websocket"
|
|
NX_VEGA_URL = "https://lb.testnet.vega.xyz/query"
|
|
NX_VEGA_ENV = 'TESTNET'
|
|
NX_VEGA_REST = 'https://lb.testnet.vega.xyz/datanode/rest'
|
|
NX_VEGA_NETWORKS = '{\"TESTNET\":\"https://explorer.fairground.wtf\",\"MAINNET\":\"https://explorer.vega.xyz\"}'
|
|
CYPRESS_VEGA_TENDERMINT_URL='https://lb.testnet.vega.xyz/tm'
|
|
|
|
# App flags
|
|
NX_EXPLORER_ASSETS = 1
|
|
NX_EXPLORER_GENESIS = 1
|
|
NX_EXPLORER_GOVERNANCE = 1
|
|
NX_EXPLORER_NETWORK_PARAMETERS = 1
|
|
NX_EXPLORER_PARTIES = 1
|
|
NX_EXPLORER_VALIDATORS = 1
|