Skip to content

Commit

Permalink
Revert "Revert "separated sepolia and goerli list to align with both …
Browse files Browse the repository at this point in the history
…v1 and v…"

This reverts commit 6fda715.
  • Loading branch information
vnaysngh-mudrex authored May 20, 2024
1 parent 6461fef commit 32581c1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ const ciVersion = process.env.VERSION;
const { version } = require("../package.json");
const mainnet = require("./tokens/mainnet.json");
const goerli = require("./tokens/goerli.json");
const sepolia = require("./tokens/sepolia.json");

const { getChecksumAddress } = require("starknet");

module.exports = function buildList() {
const parsed = ciVersion ? ciVersion.match(/(\d+).(\d+).(\d+)/)?.[0]?.split(".") : version.split(".");
const parsed = ciVersion
? ciVersion.match(/(\d+).(\d+).(\d+)/)?.[0]?.split(".")
: version.split(".");
return {
name: "Jediswap Labs List",
timestamp: new Date().toISOString(),
Expand All @@ -17,9 +21,9 @@ module.exports = function buildList() {
tags: {},
logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
keywords: ["jediswap", "default"],
tokens: [...mainnet, ...goerli]
tokens: [...mainnet, ...goerli, ...sepolia]
// parse address
.map(token => ({
.map((token) => ({
...token,
address: getChecksumAddress(token.address)
}))
Expand Down
42 changes: 42 additions & 0 deletions src/tokens/sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"name": "Starknet",
"address": "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",
"symbol": "STRK",
"decimals": 18,
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://static.jediswap.xyz/tokens-list/assets/STRK.png"
},
{
"name": "Wrapped BTC",
"address": "0x00c6164da852d230360333d6ade3551ee3e48124c815704f51fa7f12d8287dcc",
"symbol": "WBTC",
"decimals": 8,
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"
},
{
"name": "Dai Stablecoin",
"address": "0x01f3b27e2f13d7d86f7f4c7dceb267290f158ac383803b22b712f7f9e58905ef",
"symbol": "DAI",
"decimals": 18,
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
{
"name": "USDCoin",
"address": "0x03a909c1f2d1900d0c96626fac1bedf1e82b92110e5c529b05f9138951b93535",
"symbol": "USDC",
"decimals": 6,
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
},
{
"name": "Tether USD",
"address": "0x07d83b422a5fee99afaca50b6adf7de759af4a725f61cce747e06b6c09f7ab38",
"symbol": "USDT",
"decimals": 6,
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
}
]

0 comments on commit 32581c1

Please sign in to comment.