-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add fs token list * chore: bump version * refactor: prettier
- Loading branch information
1 parent
6d6623f
commit 053b7ea
Showing
12 changed files
with
228 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,67 @@ | ||
name: Fetch token list | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
fetch-list: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node_modules cache | ||
uses: actions/cache@v2 | ||
id: npm-cache | ||
with: | ||
path: | | ||
node_modules | ||
key: npm-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | ||
fetch-list: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node_modules cache | ||
uses: actions/cache@v2 | ||
id: npm-cache | ||
with: | ||
path: | | ||
node_modules | ||
key: npm-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: NPM install | ||
run: npm install | ||
if: steps.npm-cache.outputs.cache-hit != 'true' | ||
- name: NPM install | ||
run: npm install | ||
if: steps.npm-cache.outputs.cache-hit != 'true' | ||
|
||
- name: Fetch Token Lists | ||
run: | | ||
npx ts-node ./src/index.ts | ||
- name: Fetch Token Lists | ||
run: | | ||
npx ts-node ./src/index.ts | ||
- name: Get Package Version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
- name: Get Package Version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
|
||
- name: Create version folder | ||
run: | | ||
cp -r ./dist/latest ./dist/v${{ steps.package-version.outputs.current-version }} | ||
- name: Create version folder | ||
run: | | ||
cp -r ./dist/latest ./dist/v${{ steps.package-version.outputs.current-version }} | ||
- name: Tag Package Version | ||
run: git tag v${{ steps.package-version.outputs.current-version }} | ||
- name: Tag Package Version | ||
run: git tag v${{ steps.package-version.outputs.current-version }} | ||
|
||
- name: Create Release Package | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: | ||
zip -qq -r v${{ steps.package-version.outputs.current-version }}.zip dist/v${{ | ||
steps.package-version.outputs.current-version }} | ||
- name: Create Release Package | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r v${{ steps.package-version.outputs.current-version }}.zip dist/v${{ | ||
steps.package-version.outputs.current-version }} | ||
|
||
- name: Upload Latest Release | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: v${{ steps.package-version.outputs.current-version }}.zip | ||
path: v${{ steps.package-version.outputs.current-version }}.zip | ||
- name: Upload Latest Release | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: v${{ steps.package-version.outputs.current-version }}.zip | ||
path: v${{ steps.package-version.outputs.current-version }}.zip | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: v${{ steps.package-version.outputs.current-version }}.zip | ||
asset_name: v${{ steps.package-version.outputs.current-version }}.zip | ||
tag: v${{ steps.package-version.outputs.current-version }} | ||
overwrite: true | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: v${{ steps.package-version.outputs.current-version }}.zip | ||
asset_name: v${{ steps.package-version.outputs.current-version }}.zip | ||
tag: v${{ steps.package-version.outputs.current-version }} | ||
overwrite: true | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
keep_files: true | ||
cname: tokens.r2d2.to | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
keep_files: true | ||
cname: tokens.r2d2.to |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "mask-token-lists", | ||
"version": "0.0.75", | ||
"version": "0.0.76", | ||
"repository": "https://github.com/DimensionDev/Mask-Token-Lists.git", | ||
"license": "MIT", | ||
"author": "guanbinrui <[email protected]>", | ||
|
@@ -13,7 +13,8 @@ | |
"lodash": "^4.17.21", | ||
"node-fetch-cache": "^4.1.0", | ||
"semver": "^7.6.0", | ||
"urlcat": "^2.0.4" | ||
"urlcat": "^2.0.4", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.186", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"chainId": 1329, | ||
"address": "0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1", | ||
"decimals": 6, | ||
"name": "USDC", | ||
"symbol": "USDC", | ||
"logoURI": "https://dzyb4dm7r8k8w.cloudfront.net/prod/logos/0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1/logo.png" | ||
}, | ||
{ | ||
"chainId": 1329, | ||
"address": "0xB75D0B03c06A926e488e2659DF1A861F860bD3d1", | ||
"decimals": 6, | ||
"name": "Tether USD", | ||
"symbol": "USDT", | ||
"logoURI": "https://dzyb4dm7r8k8w.cloudfront.net/prod/logos/0xB75D0B03c06A926e488e2659DF1A861F860bD3d1/logo.png" | ||
} | ||
] |
Oops, something went wrong.