Skip to content

Commit 82d9071

Browse files
authored
feat(new-chains): add q4 chains (#1187)
* chore: add .npmrc to .gitignore * chore: use sdk version with linea/plasma support * feat: add linea/plasma to issue templates * feat: add linea/plasma to permitinfo gh action * feat: add linea/plasma to processrequest gh action script * feat: add linea/plasma to config mappings * feat: add linea/plasma coingecko and uniswap token lists * feat: add linea/plasma permit info * feat: setup gh npm packages on ci * fix: another attempt at setting up the npmrc * Revert "fix: another attempt at setting up the npmrc" This reverts commit 5232665. * fix: another attempt at fixing the npmrc * fix: another attempt * fix: another one * fix: update imports * feat: setup npmrc on all gh actions
1 parent 849bcbb commit 82d9071

21 files changed

+1715
-6
lines changed

.github/ISSUE_TEMPLATE/1-addTokenForm.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ body:
3838
- AVALANCHE
3939
- BNB
4040
- LENS
41+
- LINEA
42+
- PLASMA
4143
validations:
4244
required: true
4345
- type: input
@@ -81,6 +83,6 @@ body:
8183
id: reason
8284
attributes:
8385
label: Reason
84-
description: Why should we add this token? How do we know it's not a scam? Does it have enough liquidity on selected chain?
86+
description: Why should we add this token? How do we know it's not a scam? Does it have enough liquidity on selected chain? Did you test trading it on CoW Swap?
8587
validations:
8688
required: true

.github/ISSUE_TEMPLATE/2-addImageForm.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ body:
3030
- AVALANCHE
3131
- BNB
3232
- LENS
33+
- LINEA
34+
- PLASMA
3335
validations:
3436
required: true
3537
- type: input
@@ -43,7 +45,7 @@ body:
4345
id: imageUrl
4446
attributes:
4547
label: Image URL
46-
description: Ideally a 256x256 PNG or SVG file. But we'll take care of optimizing it later.
48+
description: Ideally a 256x256 PNG or SVG file. SVG is preferred. But we'll take care of optimizing it later.
4749
placeholder: https://gateway.pinata.cloud/ipfs/Qme9B6jRpGtZsRFcPjHvA5T4ugFuL4c3SzWfxyMPa59AMo
4850
validations:
4951
required: true

.github/ISSUE_TEMPLATE/3-removeTokenForm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ body:
3030
- AVALANCHE
3131
- BNB
3232
- LENS
33+
- LINEA
34+
- PLASMA
3335
validations:
3436
required: true
3537
- type: input

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ jobs:
1919
with:
2020
persist-credentials: false
2121

22+
- name: Set up npmrc
23+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
24+
with:
25+
script:
26+
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
27+
installSdkPreview(context, core);
28+
env:
29+
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
30+
2231
- name: Set up Node.js
2332
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2433
with:

.github/workflows/cowFi-tokens.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
with:
2121
persist-credentials: false
2222

23+
- name: Set up npmrc
24+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
25+
with:
26+
script:
27+
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
28+
installSdkPreview(context, core);
29+
env:
30+
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
31+
2332
- name: Set up Node.js
2433
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2534
with:

.github/workflows/executeAction.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
with:
3131
persist-credentials: false
3232

33+
- name: Set up npmrc
34+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
35+
with:
36+
script:
37+
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
38+
installSdkPreview(context, core);
39+
env:
40+
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
41+
3342
- name: Set environment variables
3443
run: |
3544
ADDRESS=$(echo "$INPUT_ADDRESS" | tr '[:upper:]' '[:lower:]')

.github/workflows/generateAuxLists.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818

19+
- name: Set up npmrc
20+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
21+
with:
22+
script:
23+
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
24+
installSdkPreview(context, core);
25+
env:
26+
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
27+
1928
- name: Set up node
2029
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2130
with:

.github/workflows/updatePermitInfo.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,23 @@ jobs:
1616
strategy:
1717
fail-fast: false # continue parallel jobs even if individual parts fail
1818
matrix:
19-
chainId: [ 1, 56, 100, 137, 232, 8453, 42161, 43114 ] # all supported chains
19+
chainId: [ 1, 56, 100, 137, 232, 8453, 9745, 42161, 43114, 59144 ] # all supported chains
2020

2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
with:
2525
persist-credentials: false
2626

27+
- name: Set up npmrc
28+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
29+
with:
30+
script:
31+
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
32+
installSdkPreview(context, core);
33+
env:
34+
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
35+
2736
- name: Set up node
2837
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2938
with:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ yalc.lock
1818
src/cowFi/TEMP*
1919

2020
# logs
21-
*.log
21+
*.log
22+
23+
# NPM setup
24+
.npmrc

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"license": "(MIT OR Apache-2.0)",
4646
"dependencies": {
47-
"@cowprotocol/cow-sdk": "6.2.0-lens-bsc.0",
47+
"@cowprotocol/cow-sdk": "npm:@cowprotocol/cow-sdk@pr-606",
4848
"@cowprotocol/permit-utils": "^0.7.0-RC.1",
4949
"@uniswap/token-lists": "^1.0.0-beta.33",
5050
"ajv": "^8.17.1",
@@ -65,4 +65,4 @@
6565
"prettier": "^3.0.3",
6666
"typescript": "^5.2.2"
6767
}
68-
}
68+
}

0 commit comments

Comments
 (0)