From 467072243229a06aea1352353013aade678f2540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Longoni?= Date: Thu, 13 Jan 2022 16:42:36 -0300 Subject: [PATCH 1/4] replace Gnosis Protocol --> CoW Protocol --- README.md | 10 +++++----- package.json | 2 +- public_uniswap/index.html | 2 +- .../components/SearchModal/CurrencyList/index.tsx | 2 +- .../swap/UnsupportedCurrencyFooter/index.tsx | 2 +- .../pages/TermsAndConditions/TermsAndConditions.md | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 269c674a2..31872d39f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Tests](https://github.com/gnosis/dex-swap/workflows/Tests/badge.svg)](https://github.com/gnosis/dex-swap/actions?query=workflow%3ATests) [![Styled With Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/) -CowSwap is the first trading interface built on top of Gnosis Protocol v2. +CowSwap is the first trading interface built on top of CoW Protocol v2. It allows you to buy and sell tokens using gas-less orders that are settled peer-to-peer among its users or into any on-chain liquidity source while providing MEV protection. @@ -25,8 +25,8 @@ It allows you to buy and sell tokens using gas-less orders that are settled peer Please see the: -- [Gnosis Protocol: Smart contracts](https://github.com/gnosis/gp-v2-contracts) -- [Gnosis Protocol: Services](https://github.com/gnosis/gp-v2-services) +- [CoW Protocol: Smart contracts](https://github.com/gnosis/gp-v2-contracts) +- [CoW Protocol: Services](https://github.com/gnosis/gp-v2-services) You can block an entire list of tokens by passing in a tokenlist like [here](./src/constants/lists.ts) or you can block specific tokens by adding them to [unsupported.tokenlist.json](./src/constants/tokenLists/unsupported.tokenlist.json). @@ -100,7 +100,7 @@ All price feeds are enabled by default, but they can be individually disabled by | Name | Environment variable | Type | Description | | ------------------- | ---------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| **Gnosis Protocol** | `REACT_APP_PRICE_FEED_GP_ENABLED` | `boolean` (default = `true`) | [Gnosis Protocol](https://docs.cowswap.exchange/) price estimation. Used for all price estimation. | +| **CoW Protocol** | `REACT_APP_PRICE_FEED_GP_ENABLED` | `boolean` (default = `true`) | [CoW Protocol](https://docs.cowswap.exchange/) price estimation. Used for all price estimation. | | **Paraswap** | `REACT_APP_PRICE_FEED_PARASWAP_ENABLED` | `boolean` (default = `true`) | [Paraswap](https://paraswap.io/) price estimation. Used for all price estimations. | | **0x** | `REACT_APP_PRICE_FEED_0X_ENABLED` | `boolean` (default = `true`) | [0x](https://0x.org/) price estimation. Used for all price estimation. | | **Coingecko** | `REACT_APP_PRICE_FEED_COINGECKO_ENABLED` | `boolean` (default = `true`) | [Coingecko](coingecko.com) price estimation. Used only for USD estimations to calculate the slippage on the trade. | @@ -111,7 +111,7 @@ The app will attach some metadata to all orders. This metadata will be sent to the smart contract as an hexadecimal value in an order field called `AppData`. This value comes from hashing the content of a metadata JSON containing some information about the trade. -Any web app or client using Gnosis Protocol can upload to IPFS a metadata JSON and use the digest hex to attach that +Any web app or client using CoW Protocol can upload to IPFS a metadata JSON and use the digest hex to attach that information to the order. For example, CowSwap uploaded the file https://cloudflare-ipfs.com/ipfs/QmTDarZ47oek1miuRd8uuNCy5AFfjzQbWJ7348izx9N8wQ diff --git a/package.json b/package.json index 3c6dbfcc1..3dceb9f05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gnosis/cowswap", - "description": "CowSwap - Gnosis Protocol", + "description": "CowSwap - CoW Protocol", "homepage": ".", "main": "dist/interface.js", "module": "dist/interface.esm.js", diff --git a/public_uniswap/index.html b/public_uniswap/index.html index 6c67b9869..189e43c19 100644 --- a/public_uniswap/index.html +++ b/public_uniswap/index.html @@ -25,7 +25,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> - Gnosis Protocol + CoW Protocol diff --git a/src/custom/components/SearchModal/CurrencyList/index.tsx b/src/custom/components/SearchModal/CurrencyList/index.tsx index 2550fe99d..d4032832e 100644 --- a/src/custom/components/SearchModal/CurrencyList/index.tsx +++ b/src/custom/components/SearchModal/CurrencyList/index.tsx @@ -17,7 +17,7 @@ import { MenuItem as MenuItemMod } from '@src/components/SearchModal/styleds' const UNSUPPORTED_TOKEN_TAG = [ { name: t`Unsupported`, - description: t`This token is unsupported as it does not operate optimally with Gnosis Protocol. Please refer to the FAQ for more information.`, + description: t`This token is unsupported as it does not operate optimally with CoW Protocol. Please refer to the FAQ for more information.`, id: '0', }, ] diff --git a/src/custom/components/swap/UnsupportedCurrencyFooter/index.tsx b/src/custom/components/swap/UnsupportedCurrencyFooter/index.tsx index a0b51dde5..807a90ad9 100644 --- a/src/custom/components/swap/UnsupportedCurrencyFooter/index.tsx +++ b/src/custom/components/swap/UnsupportedCurrencyFooter/index.tsx @@ -9,7 +9,7 @@ import styled from 'styled-components/macro' const DEFAULT_DETAILS_TEXT = (
CowSwap does not support all tokens. Some tokens implement similar, but logically different ERC20 contract methods - which do not operate optimally with Gnosis Protocol. + which do not operate optimally with CoW Protocol.

For more information, please refer to the FAQ.

diff --git a/src/custom/pages/TermsAndConditions/TermsAndConditions.md b/src/custom/pages/TermsAndConditions/TermsAndConditions.md index 845b9ca10..2f75dd8d5 100644 --- a/src/custom/pages/TermsAndConditions/TermsAndConditions.md +++ b/src/custom/pages/TermsAndConditions/TermsAndConditions.md @@ -14,7 +14,7 @@ Please read these Terms carefully before using our Platform. By using our Platfo GnosisDAO subcategory of forum.gnosis.io. 2. We use open source products and developer materials from Gnosis Limited and affiliated persons and entities (“**Affiliates**”) as - well as other third parties to provide a Platform to Gnosis Protocol + well as other third parties to provide a Platform to CoW Protocol version 2 (the “**Protocol**”). The provision of the Platform and the Protocol is based solely on our independent actions. From da68bf76494f35f25e4d3bf4aab6969e3a743569 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Thu, 13 Jan 2022 19:48:47 +0000 Subject: [PATCH 2/4] Fix code style issues with Prettier --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 31872d39f..e22ca482d 100644 --- a/README.md +++ b/README.md @@ -98,12 +98,12 @@ CowSwap tries to find the best price available onchain using some price feeds. All price feeds are enabled by default, but they can be individually disabled by using an environment variable: -| Name | Environment variable | Type | Description | -| ------------------- | ---------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| **CoW Protocol** | `REACT_APP_PRICE_FEED_GP_ENABLED` | `boolean` (default = `true`) | [CoW Protocol](https://docs.cowswap.exchange/) price estimation. Used for all price estimation. | -| **Paraswap** | `REACT_APP_PRICE_FEED_PARASWAP_ENABLED` | `boolean` (default = `true`) | [Paraswap](https://paraswap.io/) price estimation. Used for all price estimations. | -| **0x** | `REACT_APP_PRICE_FEED_0X_ENABLED` | `boolean` (default = `true`) | [0x](https://0x.org/) price estimation. Used for all price estimation. | -| **Coingecko** | `REACT_APP_PRICE_FEED_COINGECKO_ENABLED` | `boolean` (default = `true`) | [Coingecko](coingecko.com) price estimation. Used only for USD estimations to calculate the slippage on the trade. | +| Name | Environment variable | Type | Description | +| ---------------- | ---------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | +| **CoW Protocol** | `REACT_APP_PRICE_FEED_GP_ENABLED` | `boolean` (default = `true`) | [CoW Protocol](https://docs.cowswap.exchange/) price estimation. Used for all price estimation. | +| **Paraswap** | `REACT_APP_PRICE_FEED_PARASWAP_ENABLED` | `boolean` (default = `true`) | [Paraswap](https://paraswap.io/) price estimation. Used for all price estimations. | +| **0x** | `REACT_APP_PRICE_FEED_0X_ENABLED` | `boolean` (default = `true`) | [0x](https://0x.org/) price estimation. Used for all price estimation. | +| **Coingecko** | `REACT_APP_PRICE_FEED_COINGECKO_ENABLED` | `boolean` (default = `true`) | [Coingecko](coingecko.com) price estimation. Used only for USD estimations to calculate the slippage on the trade. | ### Metadata attached to orders (AppData) From ce53acef0cc951210b75004971b2cb42b4a44402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Longoni?= Date: Thu, 13 Jan 2022 16:50:23 -0300 Subject: [PATCH 3/4] replace GP --> CP in terms and conditions --- src/custom/pages/TermsAndConditions/TermsAndConditions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom/pages/TermsAndConditions/TermsAndConditions.md b/src/custom/pages/TermsAndConditions/TermsAndConditions.md index 2f75dd8d5..01c28b4da 100644 --- a/src/custom/pages/TermsAndConditions/TermsAndConditions.md +++ b/src/custom/pages/TermsAndConditions/TermsAndConditions.md @@ -18,7 +18,7 @@ Please read these Terms carefully before using our Platform. By using our Platfo version 2 (the “**Protocol**”). The provision of the Platform and the Protocol is based solely on our independent actions. -**2. WE PROVIDE A PLATFORM TO INTERACTING WITH THE GNOSIS PROTOCOL** +**2. WE PROVIDE A PLATFORM TO INTERACTING WITH THE COW PROTOCOL** 1. We provide a graphical user interface (the “**Platform**”) to facilitate you interacting with the Protocol. From da8029b89b35b42201ae18286ead206a19b6f0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Longoni?= Date: Thu, 13 Jan 2022 17:15:52 -0300 Subject: [PATCH 4/4] gp to cp on api and ci.yml --- .github/workflows/ci.yml | 2 +- src/custom/api/gnosisProtocol/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43c9ea372..f1fdb07af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,7 +220,7 @@ jobs: uses: mshick/add-pr-comment@v1 with: message: | - * **🔭 [GP Swap](${{ env.REVIEW_FEATURE_URL }})**: Gnosis Protocol v2 Swap UI + * **🔭 [GP Swap](${{ env.REVIEW_FEATURE_URL }})**: CoW Protocol v2 Swap UI repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token-user-login: 'github-actions[bot]' if: env.PR_NUMBER diff --git a/src/custom/api/gnosisProtocol/api.ts b/src/custom/api/gnosisProtocol/api.ts index e3f44b8b4..47ee59e44 100644 --- a/src/custom/api/gnosisProtocol/api.ts +++ b/src/custom/api/gnosisProtocol/api.ts @@ -73,7 +73,7 @@ const DEFAULT_HEADERS = { 'Content-Type': 'application/json', 'X-AppId': APP_DATA_HASH.toString(), } -const API_NAME = 'Gnosis Protocol' +const API_NAME = 'CoW Protocol' const ENABLED = process.env.REACT_APP_PRICE_FEED_GP_ENABLED !== 'false' /** * Unique identifier for the order, calculated by keccak256(orderDigest, ownerAddress, validTo),