Skip to content

Commit

Permalink
Add polygon tokens (#1026)
Browse files Browse the repository at this point in the history
* Add polygon tokens

* Delete package-lock

* Add WETH to polygon and mumbai

* Add MATIC to mainnet, WMATIC to polygon and mumbai
  • Loading branch information
willhennessy authored Dec 21, 2021
1 parent ffbd4c2 commit 8f8ed99
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ 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");

module.exports = function buildList() {
const parsed = version.split(".");
Expand All @@ -18,7 +20,7 @@ module.exports = function buildList() {
tags: {},
logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
keywords: ["uniswap", "default"],
tokens: [...mainnet, ...ropsten, ...goerli, ...kovan, ...rinkeby]
tokens: [...mainnet, ...ropsten, ...goerli, ...kovan, ...rinkeby, ...polygon, ...mumbai]
// sort them by symbol for easy readability
.sort((t1, t2) => {
if (t1.chainId === t2.chainId) {
Expand Down
10 changes: 9 additions & 1 deletion src/tokens/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,13 @@
"decimals": 18,
"chainId": 1,
"logoURI": "https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1616150765"
},
{
"chainId": 1,
"address": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
"name": "Polygon",
"symbol": "MATIC",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"
}
]
]
18 changes: 18 additions & 0 deletions src/tokens/mumbai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"name": "Wrapped Ether",
"address": "0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa",
"symbol": "WETH",
"decimals": 18,
"chainId": 80001,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
{
"name": "Wrapped Matic",
"address": "0xd0A1E359811322d97991E03f863a0C30C2cF029C",
"symbol": "WMATIC",
"decimals": 18,
"chainId": 80001,
"logoURI": "https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"
}
]
290 changes: 290 additions & 0 deletions src/tokens/polygon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
[
{
"name": "Wrapped Ether",
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"symbol": "WETH",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
{
"name": "Dai Stablecoin",
"address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"symbol": "DAI",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
{
"name": "0x Protocol Token",
"address": "0x5559Edb74751A0edE9DeA4DC23aeE72cCA6bE3D5",
"symbol": "ZRX",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xE41d2489571d322189246DaFA5ebDe1F4699F498/logo.png"
},
{
"name": "Curve DAO Token",
"address": "0x172370d5Cd63279eFa6d502DAB29171933a610AF",
"symbol": "CRV",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xD533a949740bb3306d119CC777fa900bA034cd52/logo.png"
},
{
"name": "Uniswap",
"address": "0xb33EaAd8d922B1083446DC23f610c2567fB5180f",
"symbol": "UNI",
"decimals": 18,
"chainId": 137,
"logoURI": "ipfs://QmXttGpZrECX5qCyXbBQiqgQNytVGeZW5Anewvh2jc4psg"
},
{
"name": "Tether USD",
"address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"symbol": "USDT",
"decimals": 6,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
},
{
"name": "USDCoin",
"address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"symbol": "USDC",
"decimals": 6,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
},
{
"name": "Orchid",
"address": "0x9880e3dDA13c8e7D4804691A45160102d31F6060",
"symbol": "OXT",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x4575f41308EC1483f3d399aa9a2826d74Da13Deb/logo.png"
},
{
"name": "Maker",
"address": "0x6f7C932e7684666C9fd1d44527765433e01fF61d",
"symbol": "MKR",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2/logo.png"
},
{
"name": "ChainLink Token",
"address": "0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39",
"symbol": "LINK",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x514910771AF9Ca656af840dff83E8264EcF986CA/logo.png"
},
{
"name": "Reputation Augur v2",
"address": "0x6563c1244820CfBd6Ca8820FBdf0f2847363F733",
"symbol": "REPv2",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x221657776846890989a759BA2973e427DfF5C9bB/logo.png"
},
{
"name": "Kyber Network Crystal",
"address": "0x324b28d6565f784d596422B0F2E5aB6e9CFA1Dc7",
"symbol": "KNC",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdd974D5C2e2928deA5F71b9825b8b646686BD200/logo.png"
},
{
"name": "Compound",
"address": "0x8505b9d2254A7Ae468c0E9dd10Ccea3A837aef5c",
"symbol": "COMP",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xc00e94Cb662C3520282E6f5717214004A7f26888/logo.png"
},
{
"chainId": 137,
"address": "0xA8b1E0764f85f53dfe21760e8AfE5446D82606ac",
"name": "Band Protocol",
"symbol": "BAND",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/9545/thumb/band-protocol.png?1568730326"
},
{
"name": "Numeraire",
"address": "0x0Bf519071b02F22C17E7Ed5F4002ee1911f46729",
"symbol": "NMR",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671/logo.png"
},
{
"name": "UMA Voting Token v1",
"address": "0x3066818837c5e6eD6601bd5a91B0762877A6B731",
"symbol": "UMA",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828/logo.png"
},
{
"name": "LoopringCoin V2",
"address": "0x84e1670F61347CDaeD56dcc736FB990fBB47ddC1",
"symbol": "LRC",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD/logo.png"
},
{
"chainId": 137,
"address": "0xDA537104D6A5edd53c6fBba9A898708E465260b6",
"name": "yearn finance",
"symbol": "YFI",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/11849/thumb/yfi-192x192.png?1598325330"
},
{
"name": "Republic Token",
"address": "0x19782D3Dc4701cEeeDcD90f0993f0A9126ed89d0",
"symbol": "REN",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x408e41876cCCDC0F92210600ef50372656052a38/logo.png"
},
{
"name": "Wrapped BTC",
"address": "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",
"symbol": "WBTC",
"decimals": 8,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"
},
{
"name": "Balancer",
"address": "0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3",
"symbol": "BAL",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xba100000625a3754423978a60c9317c58a424e3D/logo.png"
},
{
"chainId": 137,
"address": "0xD6DF932A45C0f255f85145f286eA0b292B21C90B",
"name": "Aave",
"symbol": "AAVE",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110"
},
{
"chainId": 137,
"address": "0x5fe2B58c013d7601147DcdD68C143A77499f5531",
"name": "The Graph",
"symbol": "GRT",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/13397/thumb/Graph_Token.png?1608145566"
},
{
"name": "Bancor Network Token",
"address": "0xc26D47d5c33aC71AC5CF9F776D63Ba292a4F7842",
"symbol": "BNT",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C/logo.png"
},
{
"name": "Synthetix Network Token",
"address": "0x50B728D8D964fd00C2d0AAD81718b71311feF68a",
"symbol": "SNX",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F/logo.png"
},
{
"chainId": 137,
"address": "0xA1c57f48F0Deb89f569dFbE6E2B7f46D33606fD4",
"name": "Decentraland",
"symbol": "MANA",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/878/thumb/decentraland-mana.png?1550108745"
},
{
"name": "Loom Network",
"address": "0x66EfB7cC647e0efab02eBA4316a2d2941193F6b3",
"symbol": "LOOM",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0/logo.png"
},
{
"chainId": 137,
"address": "0x66Dc5A08091d1968e08C16aA5b27BAC8398b02Be",
"name": "Civic",
"symbol": "CVC",
"decimals": 8,
"logoURI": "https://assets.coingecko.com/coins/images/788/thumb/civic.png?1547034556"
},
{
"name": "Storj Token",
"address": "0xd72357dAcA2cF11A5F155b9FF7880E595A3F5792",
"symbol": "STORJ",
"decimals": 8,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC/logo.png"
},
{
"chainId": 137,
"address": "0x0621d647cecbFb64b79E44302c1933cB4f27054d",
"name": "Amp",
"symbol": "AMP",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/12409/thumb/amp-200x200.png?1599625397"
},
{
"name": "Gnosis Token",
"address": "0x5FFD62D3C3eE2E81C00A7b9079FB248e7dF024A8",
"symbol": "GNO",
"decimals": 18,
"chainId": 137,
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6810e776880C02933D47DB1b9fc05908e5386b96/logo.png"
},
{
"chainId": 137,
"address": "0x42f37A1296b2981F7C3cAcEd84c5096b2Eb0C72C",
"name": "Keep Network",
"symbol": "KEEP",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/3373/thumb/IuNzUb5b_400x400.jpg?1589526336"
},
{
"chainId": 137,
"address": "0x50a4a434247089848991DD8f09b889D4e2870aB6",
"name": "tBTC",
"symbol": "TBTC",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/11224/thumb/tBTC.png?1589620754"
},
{
"chainId": 137,
"address": "0xbD7A5Cf51d22930B8B3Df6d834F9BCEf90EE7c4f",
"name": "Ethereum Name Service",
"symbol": "ENS",
"decimals": 18,
"logoURI": "https://assets.coingecko.com/coins/images/19785/thumb/acatxTm8_400x400.jpg?1635850140"
},
{
"name": "Synth sUSD",
"address": "0xF81b4Bec6Ca8f9fe7bE01CA734F55B2b6e03A7a0",
"symbol": "sUSD",
"decimals": 18,
"chainId": 137,
"logoURI": "https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1616150765"
},
{
"name": "Wrapped Matic",
"address": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
"symbol": "WMATIC",
"decimals": 18,
"chainId": 137,
"logoURI": "https://assets.coingecko.com/coins/images/4713/thumb/matic-token-icon.png?1624446912"
}
]

0 comments on commit 8f8ed99

Please sign in to comment.