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

#724 - update token list references #755

Merged
merged 1 commit into from
Mar 8, 2024
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
6 changes: 3 additions & 3 deletions apps/token-list/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@wormhole-foundation/wormhole-token-list",
"name": "@xlabs/token-list",
"version": "0.0.1",
"description": "A token list for featured markets",
"homepage": "https://wormholenetwork.com",
"repository": "https://github.com/wormhole-foundation/wormhole-token-list",
"homepage": "https://portalbridge.com",
"repository": "https://github.com/xlabs/portal-bridge-ui",
"scripts": {
"test": "jest --config jestconfig.json --verbose",
"gen": "python3 src/gen.py",
Expand Down
2 changes: 1 addition & 1 deletion apps/token-list/src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def get_logo_path(name, wormhole=True):


def get_logo_raw_url(name):
return 'https://raw.githubusercontent.com/wormhole-foundation/wormhole-token-list/main/assets/%s_wh.png' % name
return 'https://raw.githubusercontent.com/xlabs/portal-bridge-ui/main/apps/token-list/assets/%s_wh.png' % name
6 changes: 3 additions & 3 deletions apps/token-list/src/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _link_source_address(source_chain, source_addr):
def _get_img(tok):
filepath = os.path.join(ASSET_PATH, '%s_wh.png' % tok)
if os.path.exists(filepath):
return '![%s](https://raw.githubusercontent.com/wormhole-foundation/wormhole-token-list/main/assets/%s_wh.png)' % (tok, tok)
return '![%s](https://raw.githubusercontent.com/xlabs/portal-bridge-ui/main/apps/token-list/assets/%s_wh.png)' % (tok, tok)
else:
return ''

Expand Down Expand Up @@ -171,7 +171,7 @@ def gen_dest_info(dest):
header = """
Known tokens (wormholed to %s)
===================================
_See [by_dest.csv](by_dest.csv) ([raw](https://raw.githubusercontent.com/wormhole-foundation/wormhole-token-list/main/content/by_dest.csv)) for a superset of this data in csv._
_See [by_dest.csv](by_dest.csv) ([raw](https://raw.githubusercontent.com/xlabs/portal-bridge-ui/main/apps/token-list/content/by_dest.csv)) for a superset of this data in csv._

""" % dest_full
outpath = os.path.join(CONTENT_PATH, 'dest_%s.md' % dest_full.lower())
Expand Down Expand Up @@ -260,7 +260,7 @@ def gen_source_info(source):
txt = df.to_markdown(index=False).replace('symbol_reprise', 'symbol')
header = """
Resultant wrapped-asset addresses (wormholing from %s)
_See [by_source.csv](by_source.csv) ([raw](https://raw.githubusercontent.com/wormhole-foundation/wormhole-token-list/main/content/by_source.csv)) for a superset of this data in csv._
_See [by_source.csv](by_source.csv) ([raw](https://raw.githubusercontent.com/xlabs/portal-bridge-ui/main/apps/token-list/main/content/by_source.csv)) for a superset of this data in csv._
=========================================================================
""" % source_full
outpath = os.path.join(CONTENT_PATH, 'source_%s.md' % source_full.lower())
Expand Down
Loading