Skip to content

Commit

Permalink
berachain
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergiy Dybskiy committed Jul 11, 2023
1 parent 7c9252f commit b6fbc91
Show file tree
Hide file tree
Showing 21 changed files with 134 additions and 2,553 deletions.
20 changes: 10 additions & 10 deletions .github/ISSUE_TEMPLATE/token-request.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
name: Token Request
about: Request a token addition
title: 'Add {TOKEN_SYMBOL}: {TOKEN_NAME}'
title: "Add {TOKEN_SYMBOL}: {TOKEN_NAME}"
labels: token request
assignees: ''
assignees: ""
---

- [ ] I understand that token listing is not required to use the Uniswap Interface with a token.
- [ ] I understand that filing an issue or adding liquidity does not guarantee addition to the Uniswap default token list.
- [ ] I understand that token listing is not required to use the Berachain DEX with a token.
- [ ] I understand that filing an issue or adding liquidity does not guarantee addition to the Berachain default token list.
- [ ] I will not ping the Discord about this listing request.

**Please provide the following information for your token.**

Token Address:
Token Name (from contract):
Token Decimals (from contract):
Token Symbol (from contract):
Uniswap V2 Pair Address of Token:
Token Address:
Token Name (from contract):
Token Decimals (from contract):
Token Symbol (from contract):
Uniswap V2 Pair Address of Token:

Link to the official homepage of token:
Link to CoinMarketCap or CoinGecko page of token:
Link to CoinMarketCap or CoinGecko page of token:
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"name": "@uniswap/default-token-list",
"version": "11.2.0",
"description": "The Uniswap default token list",
"main": "build/uniswap-default.tokenlist.json",
"name": "@berachain/default-token-list",
"version": "0.0.1",
"description": "The Berachain default token list",
"main": "build/berachain-default.tokenlist.json",
"scripts": {
"test": "mocha",
"build": "rimraf build && mkdir -p build && node src/write.js > build/uniswap-default.tokenlist.json",
"build": "rimraf build && mkdir -p build && node src/write.js > build/berachain-default.tokenlist.json",
"prepublishOnly": "npm test && npm run build"
},
"files": [
"build/uniswap-default.tokenlist.json"
"build/berachain-default.tokenlist.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Uniswap/default-token-list.git"
"url": "git+https://github.com/Berachain/default-token-list.git"
},
"keywords": [
"uniswap",
"berachain",
"default",
"token",
"list"
],
"author": "Moody Salem",
"author": "reeeee",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://github.com/Uniswap/default-token-list/issues"
"url": "https://github.com/Berachain/default-token-list/issues"
},
"homepage": "https://github.com/Uniswap/default-token-list#readme",
"homepage": "https://github.com/Berachain/default-token-list#readme",
"devDependencies": {
"@ethersproject/address": "^5.0.2",
"@uniswap/token-lists": "^1.0.0-beta.29",
Expand Down
45 changes: 45 additions & 0 deletions src/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Media assets

Each token will have a folder `{tokenAddress}` that will include:

- info.json
- logo.png

## info.json

```json
{
"name": "",
"website": "",
"description": "",
"explorer": "",
"type": "ERC20",
"symbol": "",
"decimals": 18,
"status": "active",
"id": "",
"tags": [""],
"links": [
{
"name": "github",
"url": ""
},
{
"name": "twitter",
"url": ""
},
{
"name": "telegram",
"url": ""
},
{
"name": "medium",
"url": ""
},
{
"name": "coingecko",
"url": ""
}
]
}
```
26 changes: 8 additions & 18 deletions src/buildList.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
const { version } = require("../package.json");
const mainnet = require("./tokens/mainnet.json");
const ropsten = require("./tokens/ropsten.json");
const rinkeby = require("./tokens/rinkeby.json");
const goerli = require("./tokens/goerli.json");
const kovan = require("./tokens/kovan.json");
const polygon = require("./tokens/polygon.json");
const mumbai = require("./tokens/mumbai.json");
const optimism = require("./tokens/optimism.json");
const celo = require("./tokens/celo.json");
const arbitrum = require("./tokens/arbitrum.json");
const bnb = require("./tokens/bnb.json");
const sepolia = require("./tokens/sepolia.json");
const avalanche = require("./tokens/avalanche.json");

const bridgeUtils = require('@uniswap/token-list-bridge-utils');
const testnet = require("./tokens/testnet.json");
const devnet = require("./tokens/devnet.json");
const bridgeUtils = require("@uniswap/token-list-bridge-utils");

module.exports = function buildList() {
const parsed = version.split(".");
const l1List = {
name: "Uniswap Labs Default",
name: "Berachain Default",
timestamp: new Date().toISOString(),
version: {
major: +parsed[0],
minor: +parsed[1],
patch: +parsed[2],
},
tags: {},
logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
keywords: ["uniswap", "default"],
tokens: [...mainnet, ...ropsten, ...goerli, ...kovan, ...rinkeby, ...polygon, ...mumbai, ...optimism, ...celo, ...arbitrum, ...bnb, ...sepolia, ...avalanche]
// logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
logoURI: "", // TODO: Add IPFS Logo
keywords: ["berachain", "default"],
tokens: [...mainnet, ...testnet, ...devnet]
// sort them by symbol for easy readability
.sort((t1, t2) => {
if (t1.chainId === t2.chainId) {
Expand Down
5 changes: 5 additions & 0 deletions src/tokens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Tokens

Example logoURI:

- "logoURI": "https://raw.githubusercontent.com/berachain/default-token-list/main/assets/{address}/logo.png"
10 changes: 0 additions & 10 deletions src/tokens/arbitrum.json

This file was deleted.

34 changes: 0 additions & 34 deletions src/tokens/avalanche.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/tokens/bnb.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/tokens/celo.json

This file was deleted.

10 changes: 10 additions & 0 deletions src/tokens/devnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "Wrapped Bera",
"address": "",
"symbol": "WBERA",
"decimals": 18,
"chainId": 2061,
"logoURI": ""
}
]
18 changes: 0 additions & 18 deletions src/tokens/goerli.json

This file was deleted.

34 changes: 0 additions & 34 deletions src/tokens/kovan.json

This file was deleted.

Loading

0 comments on commit b6fbc91

Please sign in to comment.