From c9a9d36bac1e4ef1b42362237466b63b1e1a983b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Longoni?= Date: Fri, 14 Jan 2022 09:59:27 -0300 Subject: [PATCH 1/2] Replace Gnosis Protocol --> CoW Protocol (#2140) # Summary Fixes #2119 ![image](https://user-images.githubusercontent.com/622217/149398774-6088aa29-5e89-4e8d-8dbc-912fa44a4161.png) ![image](https://user-images.githubusercontent.com/622217/149398844-fab60805-3f9d-49c9-8b0d-bce96034e9c6.png) # To Test 1. Open Swap form 2. Connect to Gnosis chain 3. Select token pair: WXDAI-ADAI 4. Enter an amount. 5. Press on the 'Read more about...' link --- .github/workflows/ci.yml | 2 +- README.md | 20 +++++++++---------- package.json | 2 +- public_uniswap/index.html | 2 +- src/custom/api/gnosisProtocol/api.ts | 2 +- .../SearchModal/CurrencyList/index.tsx | 2 +- .../swap/UnsupportedCurrencyFooter/index.tsx | 2 +- .../TermsAndConditions/TermsAndConditions.md | 4 ++-- 8 files changed, 18 insertions(+), 18 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/README.md b/README.md index 269c674a2..e22ca482d 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). @@ -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 | -| ------------------- | ---------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| **Gnosis Protocol** | `REACT_APP_PRICE_FEED_GP_ENABLED` | `boolean` (default = `true`) | [Gnosis 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) @@ -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 68a38410d..cd0f9a8b0 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/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), 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..01c28b4da 100644 --- a/src/custom/pages/TermsAndConditions/TermsAndConditions.md +++ b/src/custom/pages/TermsAndConditions/TermsAndConditions.md @@ -14,11 +14,11 @@ 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. -**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 d49e772613ac7dc821dbc68b6e6259f85aebee04 Mon Sep 17 00:00:00 2001 From: nenadV91 Date: Mon, 17 Jan 2022 13:09:56 +0100 Subject: [PATCH 2/2] 1.9.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3dceb9f05..93c5cff68 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dist" ], "private": true, - "version": "1.9.0-rc.0", + "version": "1.9.0", "engines": { "node": ">=14.0.0" },