Skip to content

Commit

Permalink
feat: add base tokens (#1639)
Browse files Browse the repository at this point in the history
* feat: add base tokens

* fix: ci
  • Loading branch information
just-toby authored Aug 3, 2023
1 parent b3a9704 commit 9fe988f
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 355 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "12"
node-version: "16"

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- run: yarn install --frozen-lockfile
- run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"homepage": "https://github.com/Uniswap/default-token-list#readme",
"devDependencies": {
"@ethersproject/address": "^5.0.2",
"@uniswap/token-list-bridge-utils": "^2.2.0",
"@uniswap/token-lists": "^1.0.0-beta.29",
"@uniswap/token-list-bridge-utils": "^2.0.0",
"ajv": "^6.12.3",
"chai": "^4.2.0",
"mocha": "^8.0.1",
Expand Down
18 changes: 17 additions & 1 deletion src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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 base = require("./tokens/base.json");

const bridgeUtils = require('@uniswap/token-list-bridge-utils');

Expand All @@ -28,7 +29,22 @@ module.exports = function buildList() {
tags: {},
logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
keywords: ["uniswap", "default"],
tokens: [...mainnet, ...ropsten, ...goerli, ...kovan, ...rinkeby, ...polygon, ...mumbai, ...optimism, ...celo, ...arbitrum, ...bnb, ...sepolia, ...avalanche]
tokens: [
...mainnet,
...ropsten,
...goerli,
...kovan,
...rinkeby,
...polygon,
...mumbai,
...optimism,
...celo,
...arbitrum,
...bnb,
...sepolia,
...avalanche,
...base
]
// sort them by symbol for easy readability
.sort((t1, t2) => {
if (t1.chainId === t2.chainId) {
Expand Down
50 changes: 50 additions & 0 deletions src/tokens/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"chainId": 8453,
"address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
"name": "USD Base Coin",
"symbol": "USDbC",
"decimals": 6,
"logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png"
},
{
"chainId": 8453,
"address": "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
"name": "Coinbase Wrapped Staked ETH",
"symbol": "cbETH",
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/cbETH/logo.svg"
},
{
"chainId": 8453,
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"name": "Dai Stablecoin",
"symbol": "DAI",
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/DAI/logo.svg"
},
{
"chainId": 8453,
"address": "0x4200000000000000000000000000000000000006",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/WETH/logo.png"
},
{
"chainId": 8453,
"address": "0x9e1028F5F1D5eDE59748FFceE5532509976840E0",
"name": "Compound",
"symbol": "COMP",
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/COMP/logo.svg"
},
{
"chainId": 8453,
"address": "0x3bB4445D30AC020a84c1b5A8A2C6248ebC9779D0",
"name": "0x Protocol Token",
"symbol": "ZRX",
"decimals": 18,
"logoURI": "https://ethereum-optimism.github.io/data/ZRX/logo.png"
}
]
Loading

0 comments on commit 9fe988f

Please sign in to comment.