Skip to content

Commit

Permalink
Merge pull request #629 from maticnetwork/tokenlist-v3
Browse files Browse the repository at this point in the history
add mapped staging tokenlists
  • Loading branch information
py-zoid authored Jul 18, 2024
2 parents 83d28d2 + 6a729b6 commit b7e8e4a
Show file tree
Hide file tree
Showing 5 changed files with 44,854 additions and 319 deletions.
7 changes: 7 additions & 0 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const v2PopularTokensTestnet = require("./tokens/defaultTokensTestnet.json");
const v2PopularTokensTestnetNew = require("./tokens/defaultTokensTestnetNew.json");
const v2MappedTokensTestnet = require("./tokens/mappedTokensTestnet.json");
const v2PopularTokensStaging = require("./tokens/defaultTokensStaging.json");
const v2MappedTokensStaging = require("./tokens/mappedTokensStaging.json");
const v2MappedTokensTestnetNew = require("./tokens/mappedTokensTestnetNew.json");
const polygonTokensTokenList = require("./metadata/polygonTokens.json");
const popularTokenList = require("./metadata/popularTokens.json");
Expand All @@ -29,6 +30,7 @@ const v2PopularTestnetTokenList = require("./metadata/defaultTokensTestnet.json"
const v2MappedTestnetTokenList = require("./metadata/mappedTokensTestnet.json");
const v2PopularTestnetTokenListNew = require("./metadata/defaultTokensTestnetNew.json");
const v2PopularTokenListStaging = require("./metadata/defaultTokensStaging.json");
const v2MappedTokenListStaging = require("./metadata/mappedTokensStaging.json");
const v2MappedTestnetNewTokenList = require("./metadata/mappedTokensTestnetNew.json");

// Remove the project information from lists
Expand Down Expand Up @@ -101,6 +103,10 @@ module.exports = function buildList() {
timestamp,
tokens: v2PopularTokensStaging,
}); // Staging Tokenlist
Object.assign(v2MappedTokenListStaging, {
timestamp,
tokens: v2MappedTokensStaging,
}); // Staging Tokenlist

return {
allPolygonTokenList,
Expand All @@ -113,6 +119,7 @@ module.exports = function buildList() {
testnetTokenList,
blacklistTokenList,
v2PopularTokenListStaging,
v2MappedTokenListStaging,
v2PopularTokenList,
v2MappedTokenList,
v2PopularTestnetTokenList,
Expand Down
45 changes: 45 additions & 0 deletions src/metadata/mappedTokensStaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "Mapped Tokens Staging",
"version": 3,
"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 b7e8e4a

Please sign in to comment.