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

Revert "separated sepolia and goerli list to align with both v1 and v2" #109

Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 3 additions & 7 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ 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 @@ -21,9 +17,9 @@ module.exports = function buildList() {
tags: {},
logoURI: "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
keywords: ["jediswap", "default"],
tokens: [...mainnet, ...goerli, ...sepolia]
tokens: [...mainnet, ...goerli]
// parse address
.map((token) => ({
.map(token => ({
...token,
address: getChecksumAddress(token.address)
}))
Expand Down
24 changes: 16 additions & 8 deletions src/tokens/goerli.json
Original file line number Diff line number Diff line change
@@ -1,34 +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": "0x12d537dc323c439dc65c976fad242d5610d27cfb5f31689a0a319b8be7f3d56",
"address": "0x00c6164da852d230360333d6ade3551ee3e48124c815704f51fa7f12d8287dcc",
"symbol": "WBTC",
"decimals": 8,
"chainId": "0x534e5f474f45524c49",
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png"
},
{
"name": "Dai Stablecoin",
"address": "0x03e85bfbb8e2a42b7bead9e88e9a1b19dbccf661471061807292120462396ec9",
"address": "0x01f3b27e2f13d7d86f7f4c7dceb267290f158ac383803b22b712f7f9e58905ef",
"symbol": "DAI",
"decimals": 18,
"chainId": "0x534e5f474f45524c49",
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
{
"name": "USDCoin",
"address": "0x005a643907b9a4bc6a55e9069c4fd5fd1f5c79a22470690f75556c4736e34426",
"address": "0x03a909c1f2d1900d0c96626fac1bedf1e82b92110e5c529b05f9138951b93535",
"symbol": "USDC",
"decimals": 6,
"chainId": "0x534e5f474f45524c49",
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png"
},
{
"name": "Tether USD",
"address": "0x386e8d061177f19b3b485c20e31137e6f6bc497cc635ccdfcab96fadf5add6a",
"address": "0x07d83b422a5fee99afaca50b6adf7de759af4a725f61cce747e06b6c09f7ab38",
"symbol": "USDT",
"decimals": 6,
"chainId": "0x534e5f474f45524c49",
"chainId": "0x534e5f5345504f4c4941",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png"
}
]
42 changes: 0 additions & 42 deletions src/tokens/sepolia.json

This file was deleted.

Loading