Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
[Rebranding] Update Explorer FE and BE api URLs (#2047)
Browse files Browse the repository at this point in the history
* issue #2011 update explorer URL (Barn and prod only)

* issue #2012 update explorer backend URLs

* Revert BARN urls + update default urls + Add profile URL

* Update .env.production

Co-authored-by: Leandro Boscariol <[email protected]>

* Update src/custom/api/gnosisProtocol/api.ts

Co-authored-by: Leandro Boscariol <[email protected]>

Co-authored-by: Leandro Boscariol <[email protected]>
  • Loading branch information
matextrem and alfetopito authored Jan 6, 2022
1 parent a9b2140 commit 835cc80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ REACT_APP_PATH_REGEX_ENS="/ipfs"
#REACT_APP_SENTRY_AUTH_TOKEN='<sentry_auth_token>'

# API
#REACT_APP_API_URL_PROD_MAINNET=https://protocol-mainnet.gnosis.io/api
#REACT_APP_API_URL_PROD_RINKEBY=https://protocol-rinkeby.gnosis.io/api
#REACT_APP_API_URL_PROD_XDAI=https://protocol-xdai.gnosis.io/api
#REACT_APP_API_URL_PROD_MAINNET=https://api.cow.fi/mainnet/api
#REACT_APP_API_URL_PROD_RINKEBY=https://api.cow.fi/rinkeby/api
#REACT_APP_API_URL_PROD_XDAI=https://api.cow.fi/xdai/api
#REACT_APP_API_URL_STAGING_MAINNET=https://protocol-mainnet.dev.gnosisdev.com/api
#REACT_APP_API_URL_STAGING_RINKEBY=https://protocol-rinkeby.dev.gnosisdev.com/api
#REACT_APP_API_URL_STAGING_XDAI=https://protocol-xdai.dev.gnosisdev.com/api

# EXPLORER
#REACT_APP_EXPLORER_URL_DEV=https://protocol-explorer.dev.gnosisdev.com
#REACT_APP_EXPLORER_URL_STAGING=https://protocol-explorer.staging.gnosisdev.com
#REACT_APP_EXPLORER_URL_PROD=https://gnosis-protocol.io
#REACT_APP_EXPLORER_URL_BARN=https://barn.gnosis-protocol.io
#REACT_APP_EXPLORER_URL_PROD=https://explorer.cow.fi
#REACT_APP_EXPLORER_URL_BARN=https://barn.explorer.cow.fi

# Enables mock mode (default = false)
REACT_APP_MOCK=false
9 changes: 4 additions & 5 deletions src/custom/api/gnosisProtocol/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ function getGnosisProtocolUrl(): Partial<Record<ChainId, string>> {

// Production, staging, ens, ...
return {
[ChainId.MAINNET]: process.env.REACT_APP_API_URL_PROD_MAINNET || 'https://protocol-mainnet.gnosis.io/api',
[ChainId.RINKEBY]: process.env.REACT_APP_API_URL_PROD_RINKEBY || 'https://protocol-rinkeby.gnosis.io/api',
[ChainId.XDAI]: process.env.REACT_APP_API_URL_PROD_XDAI || 'https://protocol-xdai.gnosis.io/api',
[ChainId.MAINNET]: process.env.REACT_APP_API_URL_PROD_MAINNET || 'https://api.cow.fi/mainnet/api',
[ChainId.RINKEBY]: process.env.REACT_APP_API_URL_PROD_RINKEBY || 'https://api.cow.fi/rinkeby/api',
[ChainId.XDAI]: process.env.REACT_APP_API_URL_PROD_XDAI || 'https://api.cow.fi/xdai/api',
}
}

Expand All @@ -55,8 +55,7 @@ function getProfileUrl(): Partial<Record<ChainId, string>> {

// Production, staging, ens, ...
return {
[ChainId.MAINNET]:
process.env.REACT_APP_PROFILE_API_URL_STAGING_MAINNET || 'https://protocol-affiliate.gnosis.io/api',
[ChainId.MAINNET]: process.env.REACT_APP_PROFILE_API_URL_STAGING_MAINNET || 'https://api.cow.fi/affiliate/api',
}
}
const STRATEGY_URL_BASE = 'https://raw.githubusercontent.com/gnosis/cowswap/configuration/config/strategies'
Expand Down

0 comments on commit 835cc80

Please sign in to comment.