Skip to content

Commit 0ad0c66

Browse files
authored
fix(rpc): add Polygon and Avalanche env vars to Vercel (#5931)
* fix(rpc): add Polygon and Avalanche env vars to Vercel * chore: empty change to trigger cowswap app build
1 parent 5ecf1b1 commit 0ad0c66

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/workflows/vercel.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ jobs:
4747
REACT_APP_INFURA_KEY=${{ secrets.REACT_APP_INFURA_KEY }}
4848
REACT_APP_NETWORK_URL_1=${{ secrets.REACT_APP_NETWORK_URL_1 }}
4949
REACT_APP_NETWORK_URL_100=${{ secrets.REACT_APP_NETWORK_URL_100 }}
50-
REACT_APP_NETWORK_URL_42161=${{ secrets.REACT_APP_NETWORK_URL_42161 }}
50+
REACT_APP_NETWORK_URL_137=${{ secrets.REACT_APP_NETWORK_URL_137 }}
5151
REACT_APP_NETWORK_URL_8453=${{ secrets.REACT_APP_NETWORK_URL_8453 }}
52+
REACT_APP_NETWORK_URL_42161=${{ secrets.REACT_APP_NETWORK_URL_42161 }}
53+
REACT_APP_NETWORK_URL_43114=${{ secrets.REACT_APP_NETWORK_URL_43114 }}
5254
REACT_APP_NETWORK_URL_11155111=${{ secrets.REACT_APP_NETWORK_URL_11155111 }}
5355
REACT_APP_WC_PROJECT_ID=${{ secrets.REACT_APP_WC_PROJECT_ID }}
5456
REACT_APP_IPFS_READ_URI=${{ secrets.REACT_APP_IPFS_READ_URI }}

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ peer-to-peer among its users or into any on-chain liquidity source while
77
providing MEV protection.
88

99
| **Platform** | **Link** |
10-
| --------------------- | ------------------------------------------------------------------------------------------------------------- |
10+
|-----------------------|---------------------------------------------------------------------------------------------------------------|
1111
| 🐮 **CoW Swap** 🐮 | [swap.cow.fi](https://swap.cow.fi/) |
1212
| CoW Swap (IPFS) | Every release is deployed automatically to IPFS ([Releases](https://github.com/cowprotocol/cowswap/releases)) |
1313
| CoW Swap (ENS) | [ens://cowswap.eth](ens://cowswap.eth) or ([cowswap.eth.limo](https://cowswap.eth.limo)) |
@@ -173,8 +173,10 @@ environment variables:
173173
REACT_APP_NETWORK_URL_1: https://...
174174
REACT_APP_NETWORK_URL_11155111: https://...
175175
REACT_APP_NETWORK_URL_100: https://...
176-
REACT_APP_NETWORK_URL_42161: https://...
176+
REACT_APP_NETWORK_URL_137: https://...
177177
REACT_APP_NETWORK_URL_8453: https://...
178+
REACT_APP_NETWORK_URL_42161: https://...
179+
REACT_APP_NETWORK_URL_43114: https://...
178180
```
179181

180182
Additionally, if you plan to run the integration tests locally you must define:
@@ -243,7 +245,7 @@ All price feeds are enabled by default, but they can be individually disabled by
243245
using an environment variable:
244246
245247
| Name | Environment variable | Type | Description |
246-
| --------- | ------------------------------------ | ---------------------------- | ------------------------------------------------------------------------------------ |
248+
|-----------|--------------------------------------|------------------------------|--------------------------------------------------------------------------------------|
247249
| **1inch** | `REACT_APP_PRICE_FEED_1INCH_ENABLED` | `boolean` (default = `true`) | [Paraswap](https://1inch.exchange) price estimation. Used for all price estimations. |
248250
| **0x** | `REACT_APP_PRICE_FEED_0X_ENABLED` | `boolean` (default = `true`) | [0x](https://0x.org/) price estimation. Used for all price estimation. |
249251
@@ -292,11 +294,13 @@ Since this repo includes multiple apps, we do not want to build all of them on e
292294
Some apps (see the list bellow) are not required to be built on each PR so we run them only a PR is labeled with a specific label.
293295
This label is defined in the project settings on Vercel in `Settings`/`Git`/`Ignored Build Step` script.
294296
For example, the label for the widget-configurator is `preview-widget-cfg`:
297+
295298
```
296299
node tools/scripts/ignore-build-step.js --app=preview-widget-cfg
297300
```
298301
299302
List of applications and their labels:
303+
300304
- widget-configurator: `preview-widget-cfg`
301305
- cosmos: `preview-cosmos`
302306
- sdk-tools: `preview-sdk-tools`

apps/cowswap-frontend/.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# REACT_APP_NETWORK_URL_11155111=https://rpc2.sepolia.org
1111
# REACT_APP_NETWORK_URL_100=https://rpc.gnosischain.com
1212
# REACT_APP_NETWORK_URL_137=https://polygon-rpc.com
13+
# REACT_APP_NETWORK_URL_8453=https://...
14+
# REACT_APP_NETWORK_URL_42161=https://...
1315
# REACT_APP_NETWORK_URL_43114=https://api.avax.network/ext/bc/C/rpc
1416

1517
# INFURA KEY
@@ -130,4 +132,4 @@ INTEGRATION_TESTS_INFURA_KEY=
130132
# REACT_APP_DOMAIN_REGEX_ENS="(:?^cowswap\.eth|ipfs)"
131133

132134
# Path regex (to detect environment)
133-
# REACT_APP_PATH_REGEX_ENS="/ipfs"
135+
# REACT_APP_PATH_REGEX_ENS="/ipfs"

apps/cowswap-frontend/custom-test-env.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
// Custom test environment to provide `TextEncoder`/`TextDecoder`
22

3-
// eslint-disable-next-line @typescript-eslint/no-var-requires
43
const Environment = require('jest-environment-jsdom')
54

65
module.exports = class CustomTestEnvironment extends Environment {
76
async setup() {
87
await super.setup()
98
if (typeof this.global.TextEncoder === 'undefined') {
10-
// eslint-disable-next-line @typescript-eslint/no-var-requires
119
const { TextEncoder, TextDecoder } = require('util')
1210
this.global.TextEncoder = TextEncoder
1311
this.global.TextDecoder = TextDecoder

0 commit comments

Comments
 (0)