Skip to content

Commit

Permalink
fetch token list from new url
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparkallas committed Sep 19, 2024
1 parent a75ddc1 commit 91d1cc9
Show file tree
Hide file tree
Showing 8 changed files with 10,140 additions and 611 deletions.
5,051 changes: 5,051 additions & 0 deletions docs/superfluid.extended.tokenlist.json

Large diffs are not rendered by default.

4,469 changes: 4,469 additions & 0 deletions docs/superfluid.tokenlist.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"3.update:version": "ts-node scripts/update-version.ts $1",
"X.attach:solvency": "ts-node scripts/attach-solvency-tags.ts",
"4.split:tags": "ts-node scripts/split-by-tags.ts",
"5.copy:gh-pages": "shx cp ./../../superfluid{,.**}.tokenlist.json ./docs",
"editor": "npx ts-node ./editor/server.ts",
"ipfs:publish": "ts-node scripts/publish.ts $1",
"superfluid-graphql-codegen": "graphclient build --dir ./subgraph"
Expand All @@ -30,6 +31,7 @@
"lodash": "^4.17.21",
"node-fetch": "2.6.3",
"rimraf": "^5.0.10",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"vanilla-jsoneditor": "^0.16.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/tokenlist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export const extendedSuperTokenList = extendedTokenListJSON as SuperTokenList;
const superTokenList = tokenListJSON as SuperTokenList;

export const fetchLatestSuperTokenList = async (): Promise<SuperTokenList> => {
const data = await fetchTokenList("https://raw.githubusercontent.com/superfluid-finance/tokenlist/main/superfluid.tokenlist.json", {
const data = await fetchTokenList("https://superfluid-finance.github.io/tokenlist/superfluid.tokenlist.json", {
fallbackTokenList: superTokenList
});
return data;
};

export const fetchLatestExtendedSuperTokenList = async (): Promise<SuperTokenList> => {
const data = await fetchTokenList("https://raw.githubusercontent.com/superfluid-finance/tokenlist/main/superfluid.extended.tokenlist.json", {
const data = await fetchTokenList("https://superfluid-finance.github.io/tokenlist/superfluid.extended.tokenlist.json", {
fallbackTokenList: extendedSuperTokenList
});
return data;
Expand Down
2 changes: 1 addition & 1 deletion packages/tokenlist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superfluid-finance/tokenlist",
"version": "5.7.0",
"version": "5.7.1",
"license": "MIT",
"type": "module",
"main": "dist/index.cjs",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 91d1cc9

Please sign in to comment.