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

[Rebranding] Update Explorer FE and BE api URLs #2047

Merged
merged 5 commits into from
Jan 6, 2022
Merged

Conversation

matextrem
Copy link
Contributor

Summary

closes #2011
closes #2012

  • Updated Explorer URLs (only prod and barn environments).
  • Updated Explorer api URLs.

@matextrem matextrem added Protofire Handled by Protofire development team Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt labels Dec 29, 2021
@matextrem matextrem self-assigned this Dec 29, 2021
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@alfetopito
Copy link
Contributor

Looks good, I just won't merge yet as I'm pending on confirmation from DevOps regarding the api.cow.fi domains. They don't seem to be active yet.
Will let you know as soon as I get an answer

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the URL for the API of the profile? (affiliate program)

@alfetopito
Copy link
Contributor

Where is the URL for the API of the profile? (affiliate program)

I completely forgot about that, my bad.

@matextrem could you update line 56 to https://api.cow.fi/affiliate/api

And also update the respective default on lines 39 - 41?

process.env.REACT_APP_API_URL_STAGING_MAINNET || 'https://protocol-mainnet.dev.gnosisdev.com/api',
[ChainId.RINKEBY]:
process.env.REACT_APP_API_URL_STAGING_RINKEBY || 'https://protocol-rinkeby.dev.gnosisdev.com/api',
[ChainId.XDAI]: process.env.REACT_APP_API_URL_STAGING_XDAI || 'https://protocol-xdai.dev.gnosisdev.com/api',
}
}
// 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',
}
}
function getProfileUrl(): Partial<Record<ChainId, string>> {
if (isLocal || isDev || isPr || isBarn) {
return {
[ChainId.MAINNET]:
process.env.REACT_APP_PROFILE_API_URL_STAGING_MAINNET || 'https://protocol-affiliate.dev.gnosisdev.com/api',
}
}
// Production, staging, ens, ...
return {
[ChainId.MAINNET]:
process.env.REACT_APP_PROFILE_API_URL_STAGING_MAINNET || 'https://protocol-affiliate.gnosis.io/api',

And the barn api urls wont be changing yet, could you please revert them?

@matextrem matextrem requested a review from alfetopito January 5, 2022 18:49
matextrem and others added 2 commits January 5, 2022 20:00
Co-authored-by: Leandro Boscariol <[email protected]>
@alfetopito alfetopito merged commit 835cc80 into develop Jan 6, 2022
@alfetopito alfetopito deleted the rebranding branch January 6, 2022 17:34
matextrem added a commit that referenced this pull request Jan 6, 2022
* 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]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt Protofire Handled by Protofire development team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rebranding: Update backend URLs in CowSwap Rebranding: Update Explorer URLs in CowSwap
5 participants