Skip to content

Commit

Permalink
fix: enviromnent variables for graphQL namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
n13 committed Sep 29, 2024
1 parent 38811c0 commit 5535283
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO - Test'
CHAIN_NAME: 'telos'
ENV: 'dev'
IS_TESTNET: 'true'
NETWORK_CHAIN_ID: '1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f'
DAO_CONTRACT: 'mtdhoxhyphaa'
HYPHA_CONTRACT: 'mtrwardhypha'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-eos-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO - EOS TestNet'
CHAIN_NAME: 'eos'
ENV: 'dev'
IS_TESTNET: 'true'
NETWORK_CHAIN_ID: ${{ vars.NETWORK_CHAIN_ID }}
DAO_CONTRACT: 'daoxhypha111'
HYPHA_CONTRACT: 'hyphaxhypha1'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-eos-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO - EOS'
CHAIN_NAME: 'eos'
ENV: 'prod'
IS_TESTNET: 'false'
NETWORK_CHAIN_ID: ${{ vars.NETWORK_CHAIN_ID }}
DAO_CONTRACT: 'dao.hypha'
HYPHA_CONTRACT: 'hypha.hypha'
SUPPLY_CONTRACT: 'voice.hypha'
MULTISIG_CONTRACT: 'msig.hypha'
KV_CONTRACT: 'kv.hypha'
PPP_ENV: ${{ vars.PPP_ENV }}
ENV: 'prod'
HYPHA_AUTH_URL: ${{ vars.HYPHA_AUTH_URL }}
PPP_APP_ID: ${{ vars.PPP_APP_ID }}
ACCOUNT_API_URL: ${{ vars.ACCOUNT_API_URL }}
Expand All @@ -49,7 +51,6 @@ jobs:
BLOCKCHAIN_EXPLORER_BTC: 'https://www.blockchain.com/btc/tx/'
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'
CHAIN_NAME: 'eos'
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DOCUMENTATION: ${{ vars.DOCUMENTATION }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-eos-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO - EOS'
CHAIN_NAME: 'eos'
ENV: 'stage'
IS_TESTNET: 'false'
NETWORK_CHAIN_ID: ${{ vars.NETWORK_CHAIN_ID }}
DAO_CONTRACT: 'dao.hypha'
HYPHA_CONTRACT: 'hypha.hypha'
SUPPLY_CONTRACT: 'voice.hypha'
MULTISIG_CONTRACT: 'msig.hypha'
KV_CONTRACT: 'kv.hypha'
PPP_ENV: ${{ vars.PPP_ENV }}
ENV: 'prod'
HYPHA_AUTH_URL: ${{ vars.HYPHA_AUTH_URL }}
PPP_APP_ID: ${{ vars.PPP_APP_ID }}
ACCOUNT_API_URL: ${{ vars.ACCOUNT_API_URL }}
Expand All @@ -47,7 +49,6 @@ jobs:
BLOCKCHAIN_EXPLORER_BTC: 'https://www.blockchain.com/btc/tx/'
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'
CHAIN_NAME: 'eos'
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DOCUMENTATION: ${{ vars.DOCUMENTATION }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO'
CHAIN_NAME: 'telos'
ENV: 'prod'
IS_TESTNET: 'false'
NETWORK_CHAIN_ID: '4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11'
DAO_CONTRACT: 'dao.hypha'
HYPHA_CONTRACT: 'hypha.hypha'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ jobs:
- run: yarn build
env:
APP_NAME: 'Hypha DHO Staging'
CHAIN_NAME: 'telos'
ENV: 'stage' ## was 'prod'
IS_TESTNET: 'false'
NETWORK_CHAIN_ID: '4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11'
DAO_CONTRACT: 'dao.hypha'
HYPHA_CONTRACT: 'hypha.hypha'
KV_CONTRACT: 'kv.hypha'
ENV: 'prod'
HYPHA_AUTH_URL: ${{ vars.HYPHA_AUTH_URL }}
DECIDE_CONTRACT: 'trailservice'
SEEDS_TOKEN_CONTRACT: 'token.seeds'
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/apollo-client-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const tokenRefreshLink = new TokenRefreshLink({
throw Error('process.env.CHAIN_NAME not defined (eos, telos, pangea)')
}
if (!process.env.ENV) {
throw Error('process.env.ENV not defined (dev or prod)')
throw Error('process.env.ENV not defined (dev or prod or stage)')
}
if (!process.env.IS_TESTNET) {
throw Error('process.env.IS_TESTNET needs to be set (true or false)')
Expand Down

0 comments on commit 5535283

Please sign in to comment.