Skip to content

Commit

Permalink
build: add a testnet environment
Browse files Browse the repository at this point in the history
Add a script to build using the testnet environment
Using the testnet script when releasing to testnet
Add the testnet configuration
  • Loading branch information
antomor committed Dec 2, 2022
1 parent f10e057 commit edea06a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .env.testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
REACT_APP_CONTRACTS_RELAY_HUB=0x506140D6c5D59B5985565E3f865fEDDF514827f4
REACT_APP_CONTRACTS_DEPLOY_VERIFIER=0xB5B4dEbDa08A8328D00bc860441fCD170cED0092
REACT_APP_CONTRACTS_RELAY_VERIFIER=0x7Db1495dF38eAb769C49b6A5066546404596650D
REACT_APP_CONTRACTS_SMART_WALLET_FACTORY=0x4eD1a9afc136cd11176096fb415FF74874091bdC
REACT_APP_CONTRACTS_SMART_WALLET=0xd6E2D2D00c2a28d39126244f7f461b2077AA2172

REACT_APP_RIF_RELAY_CHAIN_ID=31
REACT_APP_RIF_RELAY_GAS_PRICE_FACTOR_PERCENT=0
REACT_APP_RIF_RELAY_LOOKUP_WINDOW_BLOCKS=1e5
REACT_APP_RIF_RELAY_PREFERRED_RELAYS=https://dev.relay.rifcomputing.net:8090
REACT_APP_BLOCK_EXPLORER=https://explorer.testnet.rsk.co
2 changes: 1 addition & 1 deletion .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build site
run: |
npm run build
npm run build:testnet
- name: Deploy site to S3
run: |
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"start": "react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"build:qa": "bash scripts/cli-process-env.sh 'qa' && npm run build",
"build:testnet": "bash scripts/cli-process-env.sh 'testnet' && npm run build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint --ext .ts --ext .tsx .",
Expand Down

0 comments on commit edea06a

Please sign in to comment.