Skip to content

Commit 3c7a9aa

Browse files
authored
Merge branch 'main' into main
2 parents 0ae39be + 3163eed commit 3c7a9aa

File tree

351 files changed

+21861
-14380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

351 files changed

+21861
-14380
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COINGECKO_API_KEY=

.github/ISSUE_TEMPLATE/1-addTokenForm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ body:
3838
- AVALANCHE
3939
- BNB
4040
- LENS
41+
- LINEA
42+
- PLASMA
43+
- INK
4144
validations:
4245
required: true
4346
- type: input
@@ -81,6 +84,6 @@ body:
8184
id: reason
8285
attributes:
8386
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?
87+
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?
8588
validations:
8689
required: true

.github/ISSUE_TEMPLATE/2-addImageForm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ body:
3030
- AVALANCHE
3131
- BNB
3232
- LENS
33+
- LINEA
34+
- PLASMA
35+
- INK
3336
validations:
3437
required: true
3538
- type: input
@@ -46,7 +49,7 @@ body:
4649
id: imageUrl
4750
attributes:
4851
label: Image URL
49-
description: "Ideally a 256x256 PNG or SVG file. But we'll take care of optimizing it later."
52+
description: "Ideally a 256x256 PNG or SVG file. SVG is preferred. But we'll take care of optimizing it later."
5053
placeholder: "https://gateway.pinata.cloud/ipfs/Qme9B6jRpGtZsRFcPjHvA5T4ugFuL4c3SzWfxyMPa59AMo"
5154
validations:
5255
required: true

.github/ISSUE_TEMPLATE/3-removeTokenForm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ body:
3030
- AVALANCHE
3131
- BNB
3232
- LENS
33+
- LINEA
34+
- PLASMA
35+
- INK
3336
validations:
3437
required: true
3538
- type: input
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Setup Dependencies'
2+
description: 'Setup npmrc and node with yarn (assumes code is already checked out)'
3+
4+
inputs:
5+
authToken:
6+
description: 'Authentication token for package registry'
7+
required: true
8+
9+
runs:
10+
using: 'composite'
11+
steps:
12+
- name: Set up npmrc
13+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
14+
with:
15+
script: const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
16+
installSdkPreview(context, core);
17+
env:
18+
PACKAGE_READ_AUTH_TOKEN: ${{ inputs.authToken }}
19+
20+
- name: Set up node
21+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22+
with:
23+
node-version: lts/*
24+
cache: yarn
25+
26+
- name: Install dependencies
27+
run: yarn install --frozen-lockfile
28+
shell: bash

.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ jobs:
1919
with:
2020
persist-credentials: false
2121

22-
- name: Set up Node.js
23-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22+
- name: Setup dependencies
23+
uses: ./.github/actions/setup-dependencies
2424
with:
25-
node-version: lts/*
26-
cache: yarn
27-
28-
- name: Install dependencies
29-
run: yarn install --frozen-lockfile
25+
authToken: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
3026

3127
- name: Run validation
3228
run: yarn validate

.github/workflows/cowFi-tokens.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Cron: cow.fi tokens list'
22

33
on:
44
schedule:
5-
- cron: '0 */3 * * *'
5+
- cron: '0 */3 * * *' # Every 3 hours
66

77
# Required for authenticating with AWS IAM
88
permissions:
@@ -20,14 +20,10 @@ jobs:
2020
with:
2121
persist-credentials: false
2222

23-
- name: Set up Node.js
24-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
23+
- name: Setup dependencies
24+
uses: ./.github/actions/setup-dependencies
2525
with:
26-
node-version: lts/*
27-
cache: yarn
28-
29-
- name: Install dependencies
30-
run: yarn install --frozen-lockfile
26+
authToken: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
3127

3228
- name: Generate token lists for cow.fi
3329
run: USE_CACHE=false yarn cowFi:tokens

.github/workflows/executeAction.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ jobs:
2424
execute:
2525
runs-on: ubuntu-latest
2626
steps:
27-
2827
- name: Checkout code
2928
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3029
with:
3130
persist-credentials: false
3231

32+
- name: Setup dependencies
33+
uses: ./.github/actions/setup-dependencies
34+
with:
35+
authToken: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
36+
3337
- name: Set environment variables
3438
run: |
3539
ADDRESS=$(echo "$INPUT_ADDRESS" | tr '[:upper:]' '[:lower:]')
@@ -64,15 +68,6 @@ jobs:
6468
OPERATION: ${{ inputs.operation }}
6569

6670
# Validation steps
67-
- name: Set up node
68-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
69-
with:
70-
node-version: lts/*
71-
cache: yarn
72-
73-
- name: Install dependencies
74-
run: yarn install --frozen-lockfile
75-
7671
- name: Validate
7772
run: yarn validate
7873

.github/workflows/generateAuxLists.yml

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

19-
- name: Set up node
20-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
19+
- name: Setup dependencies
20+
uses: ./.github/actions/setup-dependencies
2121
with:
22-
node-version: lts/*
23-
cache: yarn
24-
25-
- name: Install dependencies
26-
run: yarn install --frozen-lockfile
22+
authToken: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
2723

2824
- name: Generate auxiliary lists
2925
env:

.github/workflows/s3Deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Deploy to S3
33
on:
44
release:
55
types: [created]
6+
workflow_run:
7+
workflows: ["Update Permit Info"]
8+
types:
9+
- completed
10+
# Allow manual trigger
11+
workflow_dispatch:
612

713
# Required for authenticating with AWS IAM
814
permissions:
@@ -28,11 +34,12 @@ jobs:
2834
- name: Upload to S3
2935
run: |
3036
aws s3 cp src/public/CowSwap.json s3://files.cow.fi/tokens/CowSwap.json
37+
aws s3 sync src/public s3://files.cow.fi/token-lists --delete
3138
3239
- name: Invalidate CloudFront cache
3340
run: |
3441
aws cloudfront create-invalidation \
3542
--distribution-id $DIST_ID \
36-
--paths "/tokens/*"
43+
--paths "/tokens/*" "/token-lists/*"
3744
env:
3845
DIST_ID: ${{ secrets.DISTRIBUTION }}

0 commit comments

Comments
 (0)