Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add base-goerli tokens to default-token-list #1631

Merged
merged 2 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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-lists": "^1.0.0-beta.29",
"@uniswap/token-list-bridge-utils": "^2.0.0",
"@uniswap/token-lists": "^1.0.0-beta.33",
"@uniswap/token-list-bridge-utils": "file:/tmp/uniswap-token-list-bridge-utils-v2.0.0.tgz",
"ajv": "^6.12.3",
"chai": "^4.2.0",
"mocha": "^8.0.1",
Expand Down
3 changes: 2 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 baseGoerli = require("./tokens/base-goerli.json");

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

Expand All @@ -28,7 +29,7 @@ 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, ...baseGoerli]
// sort them by symbol for easy readability
.sort((t1, t2) => {
if (t1.chainId === t2.chainId) {
Expand Down
10 changes: 10 additions & 0 deletions src/tokens/base-goerli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "Wrapped Ether",
"address": "0x4200000000000000000000000000000000000006",
"symbol": "WETH",
"decimals": 18,
"chainId": 84531,
"logoURI": "https://ethereum-optimism.github.io/data/WETH/logo.png"
}
]
13 changes: 6 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,9 @@
tiny-invariant "^1.1.0"
toformat "^2.0.0"

"@uniswap/token-list-bridge-utils@^2.0.0":
"@uniswap/token-list-bridge-utils@file:../../../../../tmp/uniswap-token-list-bridge-utils-v2.0.0.tgz":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@uniswap/token-list-bridge-utils/-/token-list-bridge-utils-2.0.0.tgz#786fd2c0c029ecf2ccb20d0c045787856d4fa8be"
integrity sha512-QF9Q7DWRO6UWWnMo8R5BQ4THqMHTWRLm9o/BzoPvWRc+8UQxNsR42znbK/iegNYEMEbOWWWwPRNinwN2d84Zjg==
resolved "file:../../../../../tmp/uniswap-token-list-bridge-utils-v2.0.0.tgz#24373aed74ea3f014fd1f1cdec2c091389d53618"
dependencies:
"@arbitrum/sdk" "^1.1.4"
"@uniswap/sdk-core" "^3.0.1"
Expand All @@ -548,10 +547,10 @@
prettier "^2.7.1"
web3 "^1.7.3"

"@uniswap/token-lists@^1.0.0-beta.29":
version "1.0.0-beta.29"
resolved "https://registry.yarnpkg.com/@uniswap/token-lists/-/token-lists-1.0.0-beta.29.tgz#7be3b62aeab84c710a153a115df3bb8480027684"
integrity sha512-b19mDY5G94GW9tKjvoNEbdApWM1GNahh5EFYs7LsBE7J3r7qNsJ6MqZYoPg73KS6GOrp8/2XdcSXRBUt6NHjZg==
"@uniswap/token-lists@^1.0.0-beta.33":
version "1.0.0-beta.33"
resolved "https://registry.yarnpkg.com/@uniswap/token-lists/-/token-lists-1.0.0-beta.33.tgz#966ba96c9ccc8f0e9e09809890b438203f2b1911"
integrity sha512-JQkXcpRI3jFG8y3/CGC4TS8NkDgcxXaOQuYW8Qdvd6DcDiIyg2vVYCG9igFEzF0G6UvxgHkBKC7cWCgzZNYvQg==

accepts@~1.3.8:
version "1.3.8"
Expand Down
Loading