-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(listing): improve listing process
- Loading branch information
1 parent
71b7f68
commit b9c4624
Showing
6 changed files
with
258 additions
and
54 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Adding a New Token | ||
|
||
To add a new token to the repository, please follow these steps: | ||
|
||
## Step 1: Fill in the Token Information | ||
|
||
You need to add the relevant information for the new token in the `src/new-token.json` file. The format for the JSON object is as follows: | ||
|
||
```json | ||
{ | ||
"name": "Token Name", | ||
"address": "<tokenAddress>", | ||
"symbol": "TokenSymbol", | ||
"decimals": 18, | ||
"chainId": 122, | ||
"logoURI": "https://raw.githubusercontent.com/voltfinance/swap-default-token-list/master/logos/<tokenAddress>/logo.png", | ||
"oneLiner": "A brief description or tagline for the token.", | ||
"bullishSentence": "A sentence highlighting any bullish aspects of the token, such as utility, burn mechanisms, or airdrops.", | ||
"socials": { | ||
"website": "https://tokenwebsite.com", | ||
"twitter": "https://twitter.com/tokenhandle", | ||
"discord": "https://discord.com/invite/tokeninvite", | ||
"telegram": "https://t.me/tokenhandle" | ||
} | ||
} | ||
``` | ||
|
||
- **name**: The full name of the token. | ||
- **address**: The token contract address in checksum format. | ||
- **symbol**: The ticker symbol of the token. | ||
- **decimals**: Typically, ERC-20 tokens have 18 decimals. If your token is different, specify the correct number of decimals. | ||
- **chainId**: This should be `122` (for Fuse). | ||
- **logoURI**: Replace `<tokenAddress>` with your token's contract address in checksum format. | ||
- **oneLiner**: A brief description or tagline for the token. | ||
- **bullishSentence**: A sentence highlighting any bullish aspects of the token, such as utility, burn mechanisms, or airdrops. | ||
- **socials**: Provide the relevant social media links (optional but recommended). | ||
|
||
## Step 2: Add Token Logo | ||
|
||
You need to add a logo for your token: | ||
|
||
1. Navigate to the `logos/` directory in the repository. | ||
2. Create a new folder named after your token’s address in checksum format. | ||
3. Add a PNG file named `logo.png` with the dimensions 250x250 pixels inside the folder. | ||
|
||
Example: | ||
|
||
``` | ||
logos/<tokenAddress>/logo.png | ||
``` | ||
|
||
## Step 3: Submit a Pair with WFUSE | ||
|
||
For a new token to be accepted, a trading pair with `10,000 WFUSE` as the initial liquidity must exist: | ||
|
||
- Ensure that the pair is live and that liquidity provision is enabled. | ||
|
||
## Example JSON Submission | ||
|
||
```json | ||
{ | ||
"name": "Example Token", | ||
"address": "0x1234567890ABCDEF1234567890ABCDEF12345678", | ||
"symbol": "EXT", | ||
"decimals": 18, | ||
"chainId": 122, | ||
"logoURI": "https://raw.githubusercontent.com/voltfinance/swap-default-token-list/master/logos/0x1234567890ABCDEF1234567890ABCDEF12345678/logo.png", | ||
"oneLiner": "Example Token is revolutionizing decentralized finance.", | ||
"bullishSentence": "With a built-in burn mechanism and upcoming airdrop, Example Token is poised for growth.", | ||
"socials": { | ||
"website": "https://exampletoken.com", | ||
"twitter": "https://twitter.com/exampletoken", | ||
"discord": "https://discord.com/invite/exampletoken", | ||
"telegram": "https://t.me/exampletoken" | ||
} | ||
} | ||
``` | ||
|
||
## Step 4: Submit a Pull Request | ||
|
||
After you've filled out the `src/new-token.json` file and added the logo: | ||
|
||
1. Commit your changes. | ||
2. Push your branch to your forked repository. | ||
3. Open a pull request to the main repository. | ||
|
||
Please ensure that all information is accurate and that the pull request follows the repository's guidelines. The maintainers will review your submission and provide feedback if necessary. |
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,23 +1,60 @@ | ||
name: Analyze | ||
on: [pull_request] | ||
name: Analyze Token | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
# - master | ||
- feat/telegram-bot | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
name: Analyze Token | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 # Use the latest v2 for setup-node | ||
with: | ||
node-version: 14 | ||
- run: npm install | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- id: analyze | ||
name: Analyze PR | ||
name: Run Analysis | ||
run: | | ||
npm run analyze | ||
[ -f summary.txt ] && echo "{SKIP}={false}" >> "$GITHUB_ENV" || echo "{SKIP}={true}" >> "$GITHUB_ENV" | ||
- uses: mshick/add-pr-comment@v2 | ||
if: ${{env.SKIP == true}} | ||
name: Comment on PR | ||
if [ -f summary.txt ]; then | ||
echo "SKIP=false" >> "$GITHUB_ENV" | ||
else | ||
echo "SKIP=true" >> "$GITHUB_ENV" | ||
fi | ||
- name: Comment on PR | ||
if: env.SKIP == 'false' | ||
uses: mshick/add-pr-comment@v2 | ||
with: | ||
message-path: ./summary.txt | ||
message-path: ./summary.txt | ||
|
||
- name: Update build | ||
if: env.SKIP == 'false' | ||
run: | | ||
npm run build | ||
- name: Configure git | ||
if: env.SKIP == 'false' | ||
run: | | ||
git config user.name "GitHub Action" | ||
git config user.email "[email protected]" | ||
- name: Commit changes | ||
if: env.SKIP == 'false' | ||
run: | | ||
git add . | ||
git commit -m "Automated build update" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
Oops, something went wrong.