Skip to content

Commit

Permalink
Add testenet lists to the tokenlist
Browse files Browse the repository at this point in the history
  • Loading branch information
py-zoid committed Jan 12, 2024
1 parent 8dd3cd7 commit ef1b9c9
Show file tree
Hide file tree
Showing 7 changed files with 784 additions and 20 deletions.
14 changes: 14 additions & 0 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const allPolygonPopularTokens = require("./tokens/polygonPopular.json");
const allPolygonTestnetPopularTokens = require("./tokens/polygonTestnetPopular.json");
const v2PopularTokens = require("./tokens/defaultTokens.json");
const v2MappedTokens = require("./tokens/mappedTokens.json");
const v2PopularTokensTestnet = require("./tokens/defaultTokensTestnet.json");
const v2MappedTokensTestnet = require("./tokens/mappedTokensTestnet.json");
const polygonTokensTokenList = require("./metadata/polygonTokens.json");
const popularTokenList = require("./metadata/popularTokens.json");
const testnetTokenList = require("./metadata/testnetTokens.json");
Expand All @@ -20,6 +22,8 @@ const allPolygonPopularTokenList = require("./metadata/polygonPopular.json");
const allPolygonTestnetPopularTokenList = require("./metadata/polygonTestnetPopular.json");
const v2PopularTokenList = require("./metadata/defaultTokens.json");
const v2MappedTokenList = require("./metadata/mappedTokens.json");
const v2PopularTestnetTokenList = require("./metadata/defaultTokensTestnet.json");
const v2MappedTestnetTokenList = require("./metadata/mappedTokensTestnet.json");

// Staging list
const stagingTokenList = JSON.parse(JSON.stringify(polygonTokensTokenList));
Expand Down Expand Up @@ -54,6 +58,14 @@ module.exports = function buildList() {
timestamp,
tokens: v2MappedTokens,
}); //v2 Mapped List
Object.assign(v2PopularTestnetTokenList, {
timestamp,
tokens: v2PopularTokensTestnet,
}); // v2 Default Testnet List
Object.assign(v2MappedTestnetTokenList, {
timestamp,
tokens: v2MappedTokensTestnet,
}); //v2 Mapped Testnet List

Object.assign(allPolygonTokenList, { timestamp, tokens: allPolygonTokens }); // Aggregated Polygon Tokens List
Object.assign(allPolygonPopularTokenList, {
Expand Down Expand Up @@ -91,5 +103,7 @@ module.exports = function buildList() {
stagingTokenList,
v2PopularTokenList,
v2MappedTokenList,
v2PopularTestnetTokenList,
v2MappedTestnetTokenList,
};
};
20 changes: 0 additions & 20 deletions src/metadata/crossChain.json

This file was deleted.

45 changes: 45 additions & 0 deletions src/metadata/defaultTokensTestnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "Popular Tokens Testnet",
"version": 2,
"logoURI": "https://assets.polygon.technology/tokenAssets/matic.svg",
"description": "Contains the top 100 most used tokens on the Polygon chains",
"tags": {
"lxly": {
"name": "lxly",
"description": "Token mapped through lxly bride"
},
"pos": {
"name": "pos",
"description": "Token mapped through pos bride"
},
"plasma": {
"name": "plasma",
"description": "Token mapped through plasma bride"
},
"fx": { "name": "fx", "description": "Token mapped through fx bride" },
"zkevmMessageBridge": {
"name": "zkevmMessageBridge",
"description": "Token mapped through zkevmMessageBridge bride"
},
"customFx": {
"name": "customFx",
"description": "Token mapped through customFx bride"
},
"erc20": {
"name": "erc20",
"description": "Token of ERC20 token type"
},
"nativeToken": {
"name": "nativeToken",
"description": "Native token of the chain"
},
"customWithdrawEventSig": {
"name": "customWithdrawEventSig",
"description": "The token has a custom withdraw event signature"
},
"noDeposit": {
"name": "noDeposit",
"description": "Token not eligible for deposits"
}
}
}
45 changes: 45 additions & 0 deletions src/metadata/mappedTokensTestnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "Mapped Tokens Testnet",
"version": 2,
"logoURI": "https://assets.polygon.technology/tokenAssets/matic.svg",
"description": "Contains tokens that are mapped to Polygon PoS and Polygon zkEVM. Anyone can propose updates to this list.",
"tags": {
"lxly": {
"name": "lxly",
"description": "Token mapped through lxly bride"
},
"pos": {
"name": "pos",
"description": "Token mapped through pos bride"
},
"plasma": {
"name": "plasma",
"description": "Token mapped through plasma bride"
},
"fx": { "name": "fx", "description": "Token mapped through fx bride" },
"zkevmMessageBridge": {
"name": "zkevmMessageBridge",
"description": "Token mapped through zkevmMessageBridge bride"
},
"customFx": {
"name": "customFx",
"description": "Token mapped through customFx bride"
},
"erc20": {
"name": "erc20",
"description": "Token of ERC20 token type"
},
"nativeToken": {
"name": "nativeToken",
"description": "Native token of the chain"
},
"customWithdrawEventSig": {
"name": "customWithdrawEventSig",
"description": "The token has a custom withdraw event signature"
},
"noDeposit": {
"name": "noDeposit",
"description": "Token not eligible for deposits"
}
}
}
Loading

0 comments on commit ef1b9c9

Please sign in to comment.