Skip to content

Commit 20cac84

Browse files
committed
Merge branch 'feat-heco-tokenlist' into metis-token-list
2 parents 118df20 + 1bfa668 commit 20cac84

File tree

11 files changed

+2441
-12
lines changed

11 files changed

+2441
-12
lines changed

.github/workflows/pancake-top100-sync.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
with:
2020
path: |
2121
node_modules
22-
key: yarn-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
22+
key:
23+
yarn-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
2324

2425
- name: Yarn install
2526
run: yarn install
@@ -48,7 +49,9 @@ jobs:
4849
author: Maskbook maintainer bot <bot@mask.io>
4950
branch: auto-sync-token-list
5051
title: ":chore: sync token list from Pancakeswap"
51-
body: "## (🤖 I am a robot) updates or error report \n\n```diff\n${{ env.GIT_DIFF }}\n```"
52+
body:
53+
"## (🤖 I am a robot) updates or error report \n\n```diff\n${{
54+
env.GIT_DIFF }}\n```"
5255
assignees: |
5356
guanbinrui
5457
unclebill

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx pretty-quick --staged

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- repo: https://github.com/pre-commit/mirrors-prettier
2+
rev: "" # Use the sha or tag you want to point at
3+
hooks:
4+
- id: prettier

.prettierrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"proseWrap": "always"
3+
}

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The token lists for Mask Network.
55
- List Name: Mask Network
66
- Link to the official homepage of the list manager: <https://mask.io>
77

8-
### Versions based on chain id
8+
## Versions based on chain id
99

1010
| Chain | Chain Id | Link | Viewer |
1111
| ---------- | ---------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
@@ -25,8 +25,9 @@ The token lists for Mask Network.
2525
| CELO | 42220 | [latest](https://tokens.r2d2.to/latest/42220/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/42220/tokens.json) |
2626
| Avalanche | 43114 | [latest](https://tokens.r2d2.to/latest/43114/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/43114/tokens.json) |
2727
| Aurora | 1313161554 | [latest](https://tokens.r2d2.to/latest/1313161554/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/1313161554/tokens.json) |
28-
| Metis | 1088 | [latest](https://tokens.r2d2.to/latest/1088/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/1088/tokens.json)
29-
| Stardust | 588 | [latest](https://tokens.r2d2.to/latest/588/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/588/tokens.json)
28+
| Metis | 1088 | [latest](https://tokens.r2d2.to/latest/1088/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/1088/tokens.json) |
29+
| Stardust | 588 | [latest](https://tokens.r2d2.to/latest/588/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/588/tokens.json) |
30+
| HECO | 128 | [latest](https://tokens.r2d2.to/latest/128/tokens.json) | [token-list](https://tokenlists.org/token-list?url=https://tokens.r2d2.to/latest/128/tokens.json) |
3031

3132
## Versions
3233

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"build": "./scripts/build.sh",
1010
"publish": "gh-pages -d ./dist",
11-
"prettier": "prettier -c ."
11+
"prettier": "prettier -c .",
12+
"prepare": "husky install"
1213
},
1314
"dependencies": {
1415
"@uniswap/token-lists": "^1.0.0-beta.24",
@@ -17,7 +18,9 @@
1718
},
1819
"devDependencies": {
1920
"gh-pages": "^3.1.0",
21+
"husky": "^7.0.0",
2022
"node-fetch": "^2.6.1",
21-
"prettier": "2.5.1"
23+
"prettier": "2.5.1",
24+
"pretty-quick": "^3.1.3"
2225
}
2326
}

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ VERSION=$(node -p -e "require('./package.json').version")
55

66
CHAIN[0]=dist/v$VERSION
77

8-
for i in {1,3,4,10,56,97,100,122,137,250,288,588,1088,42161,42220,43114,80001,1313161554}; do
8+
for i in {1,3,4,10,56,97,100,122,128,137,250,288,588,1088,42161,42220,43114,80001,1313161554}; do
99
CHAIN[$i]=dist/v$VERSION/$i
1010
done
1111

scripts/generate-erc20.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const Mumbai = require("../src/erc20/mumbai.json");
1818
const Aurora = require("../src/erc20/aurora.json");
1919
const Avalanche = require("../src/erc20/avalanche.json");
2020
const Boba = require("../src/erc20/boba.json");
21+
const Heco = require("../src/erc20/heco.json");
2122
const Pancake = require("../src/erc20/pancake.json");
2223
const Metis = require("../src/erc20/metis.json");
2324
const Stardust = require("../src/erc20/stardust.json");
@@ -69,6 +70,7 @@ const chainIdToTokensMapping = {
6970
97: [Chapel],
7071
100: [xDai],
7172
122: [Fuse],
73+
128: [Heco],
7274
250: [Fantom],
7375
288: [Boba],
7476
137: [Matic, QuickSwap],

0 commit comments

Comments
 (0)