diff --git a/.env b/.env.example similarity index 66% rename from .env rename to .env.example index 183a6239d..e3c034a9a 100644 --- a/.env +++ b/.env.example @@ -1,21 +1,23 @@ -REACT_APP_SUPPORTED_CHAIN_ID=1337 -REACT_APP_ETH_HOSTNAME_HTTP=http://localhost:8545 -REACT_APP_ETH_HOSTNAME_WS=ws://localhost:8545 -REACT_APP_MULTICALL_ADDRESS=$MULTICALL_ADDRESS +REACT_APP_SUPPORTED_CHAIN_ID=$CHAIN_ID +REACT_APP_ETH_HOSTNAME_HTTP=$ETH_HOSTNAME_HTTP +REACT_APP_ETH_HOSTNAME_WS=$ETH_HOSTNAME_WS REACT_APP_DAPP_DEVELOPMENT_TESTNET_CONTRACTS=$DAPP_DEVELOPMENT_TESTNET_CONTRACTS +REACT_APP_MULTICALL_ADDRESS=$MULTICALL_ADDRESS REACT_APP_FEATURE_FLAG_TBTC_V2=true REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false -REACT_APP_FEATURE_FLAG_POSTHOG=false -REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true +REACT_APP_FEATURE_FLAG_POSTHOG=$POSTHOG_SUPPORT +REACT_APP_POSTHOG_API_KEY=$POSTHOG_API_KEY +REACT_APP_POSTHOG_HOSTNAME_HTTP=$POSTHOG_HOSTNAME_HTTP +REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT REACT_APP_SENTRY_DSN=$SENTRY_DSN REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL REACT_APP_ELECTRUM_HOST=$ELECTRUM_HOST REACT_APP_ELECTRUM_PORT=$ELECTRUM_PORT -REACT_APP_MOCK_BITCOIN_CLIENT=true +REACT_APP_MOCK_BITCOIN_CLIENT=false REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID diff --git a/.env.production b/.env.production index 6a8c662b3..b55794507 100644 --- a/.env.production +++ b/.env.production @@ -2,16 +2,17 @@ REACT_APP_SUPPORTED_CHAIN_ID=$CHAIN_ID REACT_APP_ETH_HOSTNAME_HTTP=$ETH_HOSTNAME_HTTP REACT_APP_ETH_HOSTNAME_WS=$ETH_HOSTNAME_WS REACT_APP_DAPP_DEVELOPMENT_TESTNET_CONTRACTS=$DAPP_DEVELOPMENT_TESTNET_CONTRACTS +REACT_APP_MULTICALL_ADDRESS= REACT_APP_FEATURE_FLAG_TBTC_V2=true REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false +REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true REACT_APP_FEATURE_FLAG_POSTHOG=$POSTHOG_SUPPORT REACT_APP_POSTHOG_API_KEY=$POSTHOG_API_KEY REACT_APP_POSTHOG_HOSTNAME_HTTP=$POSTHOG_HOSTNAME_HTTP REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT -REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true REACT_APP_SENTRY_DSN=$SENTRY_DSN REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL diff --git a/.env.test b/.env.test index 7fbba3d92..16583d657 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,23 @@ REACT_APP_SUPPORTED_CHAIN_ID=1337 +REACT_APP_ETH_HOSTNAME_HTTP=$ETH_HOSTNAME_HTTP +REACT_APP_ETH_HOSTNAME_WS=$ETH_HOSTNAME_WS +REACT_APP_DAPP_DEVELOPMENT_TESTNET_CONTRACTS=$DAPP_DEVELOPMENT_TESTNET_CONTRACTS REACT_APP_MULTICALL_ADDRESS=0x086813525A7dC7dafFf015Cdf03896Fd276eab60 + +REACT_APP_FEATURE_FLAG_TBTC_V2=true +REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true +REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true +REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false +REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true +REACT_APP_FEATURE_FLAG_POSTHOG=$POSTHOG_SUPPORT +REACT_APP_POSTHOG_API_KEY=$POSTHOG_API_KEY +REACT_APP_POSTHOG_HOSTNAME_HTTP=$POSTHOG_HOSTNAME_HTTP +REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT +REACT_APP_SENTRY_DSN=$SENTRY_DSN + +REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL +REACT_APP_ELECTRUM_HOST=$ELECTRUM_HOST +REACT_APP_ELECTRUM_PORT=$ELECTRUM_PORT +REACT_APP_MOCK_BITCOIN_CLIENT=false + +REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID \ No newline at end of file diff --git a/.gitignore b/.gitignore index 44bc97aeb..1251d00f5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ cypress/plugins # Yarn node_modules/ yarn-error.log + +# Environmental variables +.env \ No newline at end of file diff --git a/README.md b/README.md index d8ca59b2c..38e3538c7 100644 --- a/README.md +++ b/README.md @@ -41,17 +41,16 @@ To make sure the changes made in local depository of `components` lib are implem `yarn add-components-lib` -# Run T dapp against the Görli network +# Run T dapp against the Testnet network -## Update the `.env` file: +## Create local copy of the `.env` file: + +Copy the `.env.example` file, rename it to the `.env` and apply the following changes: ``` REACT_APP_SUPPORTED_CHAIN_ID=5 REACT_APP_ETH_HOSTNAME_HTTP= REACT_APP_ETH_HOSTNAME_WS= -// We can skip this env variable- the dapp uses the correct address -// of Multicall contract for Görli under the hood. -REACT_APP_MULTICALL_ADDRESS=$MULTICALL_ADDRESS ``` ## Setup @@ -62,12 +61,10 @@ REACT_APP_MULTICALL_ADDRESS=$MULTICALL_ADDRESS ``` yarn upgrade @keep-network/coverage-pools@goerli \ - @keep-network/ecdsa@goerli \ @keep-network/keep-core@goerli \ @keep-network/keep-ecdsa@goerli \ @keep-network/random-beacon@goerli \ @keep-network/tbtc@goerli \ - @keep-network/tbtc-v2@goerli \ @keep-network/tbtc-v2.ts@goerli \ @threshold-network/coverage-pools@npm:@keep-network/coverage-pools@goerli \ @threshold-network/solidity-contracts@goerli