Skip to content

Commit c7657ab

Browse files
Merge pull request #179 from cowprotocol/release/2.4.0
* Prevent spaces in token symbols (#169) * Added description about not using token symbols * Failing validation if token symbol contains spaces * Trying to fix validate symbol * Trying a ternary operator in shell to fix exit value * Revert "Trying a ternary operator in shell to fix exit value" This reverts commit 00e6e44. * Revert "Trying to fix validate symbol" This reverts commit a7de559. * Revert "Prevent spaces in token symbols (#169)" This reverts commit 566a6cd. * New attempt at validating token symbols * [addToken] `WETH` to `GNOSIS_CHAIN` (#178) * [addToken] GNOSIS_CHAIN/0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1 * Reverting to original image --------- Co-authored-by: alfetopito <[email protected]> * Bumped version to 2.4.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 parents 5b87020 + 814ddef commit c7657ab

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

.github/ISSUE_TEMPLATE/addTokenForm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body:
3030
id: symbol
3131
attributes:
3232
label: Token Symbol
33+
description: The token symbol cannot contain spaces
3334
placeholder: SYMBOL
3435
validations:
3536
required: true

.github/workflows/processRequest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ jobs:
126126
echo "${{ env.NETWORK }} ${{ env.URL }} ${{ env.ADDRESS }}"
127127
echo "::error title={Validation failed}::{Missing required fields for adding a token}"
128128
exit 1
129+
- name: Validate symbol
130+
if: env.SYMBOL && contains(env.SYMBOL, ' ')
131+
run: |
132+
echo "${{ env.SYMBOL }}"
133+
echo "::error title={Validation failed}::{Symbol cannot contain spaces}"
134+
exit 1
129135
- name: Validate removeToken
130136
if: contains(github.event.issue.labels.*.name, 'removeToken') && (!env.NETWORK || !env.REASON || !env.ADDRESS)
131137
run: |

src/public/CowSwap.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "CoW Swap",
3-
"timestamp": "2023-04-18T10:00:00+00:00",
3+
"timestamp": "2023-04-18T16:30:00+00:00",
44
"version": {
55
"major": 2,
6-
"minor": 3,
7-
"patch": 1
6+
"minor": 4,
7+
"patch": 0
88
},
99
"logoURI": "https://ipfs.cow.fi/ipfs/Qme9B6jRpGtZsRFcPjHvA5T4ugFuL4c3SzWfxyMPa59AMo",
1010
"keywords": [
@@ -644,6 +644,14 @@
644644
"decimals": 18,
645645
"chainId": 1,
646646
"logoURI": "https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/images/1/0x18084fba666a33d37592fa2633fd49a74dd93a88/logo.png"
647+
},
648+
{
649+
"address": "0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1",
650+
"symbol": "WETH",
651+
"name": "Wrapped Ether on Gnosis Chain",
652+
"decimals": 18,
653+
"chainId": 100,
654+
"logoURI": "https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/images/100/0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1/logo.png"
647655
}
648656
]
649657
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"removed": false,
3+
"address": "0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1",
4+
"symbol": "WETH",
5+
"name": "Wrapped Ether on Gnosis Chain",
6+
"logoURI": "https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/images/100/0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1/logo.png",
7+
"reason": "We don't have WETH for gnosis chain in our list",
8+
"decimals": 18,
9+
"chainId": 100
10+
}
2.91 KB
Loading

0 commit comments

Comments
 (0)