Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: remove goerli #199

Merged
merged 3 commits into from
Jan 30, 2024
Merged

feat!: remove goerli #199

merged 3 commits into from
Jan 30, 2024

Conversation

alfetopito
Copy link
Contributor

Summary

Remove Goerli from supported networks

Testing

  • Unit tests
  • Publish a local version and test it on cowswap

@alfetopito alfetopito self-assigned this Jan 29, 2024
@coveralls
Copy link
Collaborator

coveralls commented Jan 29, 2024

Coverage Status

coverage: 78.851% (+0.03%) from 78.826%
when pulling 16c2655 on remove-goerli
into bc5dd33 on main.

@@ -44,7 +44,7 @@ const orderSigningUtils = new OrderSigningUtils()
### Sign, fetch, post and cancel order

For clarity, let's look at the use of the API with a practical example:
Exchanging `0.4 GNO` to `WETH` on `Goerli` network.
Exchanging `0.4 GNO` to `WETH` on `Gnosis chain` network.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Migrated examples to Gnosis chain for future proofing.
Sepolia will eventually die and we'll have to do this all over again.
It was the same with Rinkeby before Goerli.

package.json Outdated Show resolved Hide resolved
@@ -4,7 +4,6 @@
*/
export enum SupportedChainId {
MAINNET = 1,
GOERLI = 5,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the main change

@alfetopito alfetopito marked this pull request as ready for review January 30, 2024 13:39
@alfetopito alfetopito requested a review from a team January 30, 2024 13:39
Comment on lines +13 to +15
export const ALL_SUPPORTED_CHAIN_IDS: SupportedChainId[] = Object.values(SupportedChainId).filter(
(chainId) => typeof chainId === 'number'
) as SupportedChainId[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dynamically generated so this is one less thing to update when new chains are added/removed

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.

Looks good to me

@alfetopito alfetopito merged commit 9d9abb5 into main Jan 30, 2024
9 checks passed
@alfetopito alfetopito deleted the remove-goerli branch January 30, 2024 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants