Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/1-addTokenForm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ body:
- AVALANCHE
- BNB
- LENS
- LINEA
- PLASMA
validations:
required: true
- type: input
Expand Down Expand Up @@ -81,6 +83,6 @@ body:
id: reason
attributes:
label: Reason
description: Why should we add this token? How do we know it's not a scam? Does it have enough liquidity on selected chain?
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?
validations:
required: true
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/2-addImageForm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ body:
- AVALANCHE
- BNB
- LENS
- LINEA
- PLASMA
validations:
required: true
- type: input
Expand All @@ -43,7 +45,7 @@ body:
id: imageUrl
attributes:
label: Image URL
description: Ideally a 256x256 PNG or SVG file. But we'll take care of optimizing it later.
description: Ideally a 256x256 PNG or SVG file. SVG is preferred. But we'll take care of optimizing it later.
placeholder: https://gateway.pinata.cloud/ipfs/Qme9B6jRpGtZsRFcPjHvA5T4ugFuL4c3SzWfxyMPa59AMo
validations:
required: true
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/3-removeTokenForm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ body:
- AVALANCHE
- BNB
- LENS
- LINEA
- PLASMA
validations:
required: true
- type: input
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
with:
persist-credentials: false

- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/cowFi-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
with:
persist-credentials: false

- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/executeAction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
with:
persist-credentials: false

- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}

- name: Set environment variables
run: |
ADDRESS=$(echo "$INPUT_ADDRESS" | tr '[:upper:]' '[:lower:]')
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/generateAuxLists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}

- name: Set up node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/updatePermitInfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ jobs:
strategy:
fail-fast: false # continue parallel jobs even if individual parts fail
matrix:
chainId: [ 1, 56, 100, 137, 232, 8453, 42161, 43114 ] # all supported chains
chainId: [ 1, 56, 100, 137, 232, 8453, 9745, 42161, 43114, 59144 ] # all supported chains

steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}

- name: Set up node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ yalc.lock
src/cowFi/TEMP*

# logs
*.log
*.log

# NPM setup
.npmrc
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"license": "(MIT OR Apache-2.0)",
"dependencies": {
"@cowprotocol/cow-sdk": "6.2.0-lens-bsc.0",
"@cowprotocol/cow-sdk": "npm:@cowprotocol/cow-sdk@pr-606",
"@cowprotocol/permit-utils": "^0.7.0-RC.1",
"@uniswap/token-lists": "^1.0.0-beta.33",
"ajv": "^8.17.1",
Expand All @@ -65,4 +65,4 @@
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
}
}
2 changes: 2 additions & 0 deletions scripts/processRequest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const NETWORK_CONFIG = {
BNB: { chainId: 56, blockExplorer: 'bscscan.com' },
LENS: { chainId: 232, blockExplorer: 'explorer.lens.xyz' },
GNOSIS: { chainId: 100, blockExplorer: 'gnosisscan.io' },
LINEA: { chainId: 59144, blockExplorer: 'lineascan.build' },
PLASMA: { chainId: 9745, blockExplorer: 'plasmascan.to' },
}

export const VALIDATION_RULES = {
Expand Down
2 changes: 2 additions & 0 deletions src/permitInfo/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const DEFAULT_RPC_URLS: Record<SupportedChainId, string> = {
[SupportedChainId.POLYGON]: 'https://polygon-rpc.com',
[SupportedChainId.BNB]: 'https://bsc-dataseed.binance.org',
[SupportedChainId.LENS]: 'https://rpc.lens.xyz',
[SupportedChainId.LINEA]: 'https://rpc.linea.build',
[SupportedChainId.PLASMA]: 'https://rpc.plasma.to',
}

export const BASE_PATH = join('..', 'public')
Loading